Hi, I have and issue when I use Net::smpp in case of enquire_link_resp, I get the bind with no problem and I send messages... ok, but when SMSc request enquire_link_resp sometho\ing happen the loop is :
while (1) {
warn "Waiting for PDU";
$pdu = $smpp->read_pdu() or die "$$: PDU not read. Closing connect
+ion";
print "Received #$pdu->{seq} $pdu->{cmd}:". Net::SMPP::pdu_tab->{$
+pdu->{cmd}}{cmd} ."\n"
;
warn Dumper($pdu) if $trace;
if (defined reply_tab->{$pdu->{cmd}}) {
&{reply_tab->{$pdu->{cmd}}{reply}}($c, $pdu);
warn "Replied";
} else {
warn "Don't know to reply to $pdu->{cmd}";
sleep 1;
}
}
That mach with
0x00000015 => { cmd => 'enquire_link',
reply => sub { my ($me, $pdu) = @_;
$me->enquire_link_resp(seq => $pdu->{seq}) }, },
But when an enquire_link is recived I get this:
Received #2 21:enquire_link
$VAR1 = bless( {
'known_pdu' => 1,
'cmd' => 21,
'status' => 0,
'data' => '',
'reserved' => undef,
'seq' => 2
}, 'Net::SMPP::PDU' );
Can't call method "enquire_link_resp" on an undefined value at .....es
+me-re.pl line 89.
20061213 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.