Skip Menu |

This queue is for tickets about the Net-SMPP CPAN distribution.

Report information
The Basics
Id: 4169
Status: new
Priority: 0/
Queue: Net-SMPP

People
Owner: Nobody in particular
Requestors: mgarcia [...] mentesvirtuais.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.03
Fixed in: (no value)



Subject: Error handling enquire_link's
Perl and OS description: $ perl -v This is perl, v5.6.1 built for i386-linux $ uname -a Linux host 2.4.18-27.7.xsmp #1 SMP Fri Mar 14 05:52:30 EST 2003 i686 unknown Bug description: I had detected a problem when using the SMPP Server, the sequence of the problem is: SMPP Server SMS-C (Listen) <-------------------------------- Bind Receiver Bind_Receiver_Resp --------------> Deliver_SM------------------------> <-------------------------------- Deliver_SM_RESP . . . Deliver_SM------------------------> <-------------------------------- Deliver_SM_RESP Deliver_SM------------------------> Show quoted text
>>>>>>>>>>>>>>( Here is the problem) <<<<<<<<<<<<<<<<< <-------------------------------- Enquire_Link
The handler for the enquire link is not found, because the "CMD_enquire_link" is interpreted as a string and not as a value. To solve this problem I've changed the Net::SMPP module as shown in the next lines: --------------- start line = 348 ----------------------------------- ### Table of PDU handlers. These PDUs are automatically ### handled during wait_pdu() (as opposed to being discarded). ### they are called as ### $smpp->handler($pdu); handlers => { 0x00000015 => \&handle_enquire_link, CMD_enquire_link => \&handle_enquire_link, CMD_enquire_link_v4 => \&handle_enquire_link, #4 }, };
--- /usr/lib/perl5/site_perl/5.6.1/Net/SMPP.pm Fri Oct 17 22:55:11 2003 +++ SMPP.pm Mon Oct 20 12:04:59 2003 @@ -351,6 +351,7 @@ ### $smpp->handler($pdu); handlers => { + 0X00000015 => \&handle_enquire_link, CMD_enquire_link => \&handle_enquire_link, CMD_enquire_link_v4 => \&handle_enquire_link, #4 },