Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: issue in SMS Connectivity

by davido (Archbishop)
on Dec 11, 2012 at 08:52 UTC ( #1008242=note: print w/ replies, xml ) Need Help??


in reply to issue in SMS Connectivity

It's a message from the SMPP gateway, and I think it's coming from your new_transmitter() call. Why don't you change your error message "print" statements to "warn", so that a line number gets reported. That will help to disambiguate what point along the way the message is being generated.

Out of curiosity, is it intentional that your "system_type" and "system_id" are being set to the same value?


Dave


Comment on Re: issue in SMS Connectivity
Download Code
Re^2: issue in SMS Connectivity
by rammoorthi (Novice) on Dec 11, 2012 at 09:51 UTC
    hi, i was getting error in the following code only
    $resp_pdu = $smpp->submit_sm( destination_addr => '9610985672', short_message => 'Hello World. via SMPP' ) or die; print "PDU_resp ERROR: " . $resp_pdu->explain_status()

    i tried with country code as well like +91 before the mobile number. still same error.

    There is no intention that system type and id is same. i got this from system admin.

    thanks in advance ram

      The error isn't about the destination address so why change that? It sounds like the server is expecting a non-null source address so pass one with source_addr in the call to submit_sm.

      $resp_pdu = $smpp->submit_sm( source_addr => '', # add your source address here destination_addr => '9610985672', short_message => 'Hello World. via SMPP' ) or die; print "PDU_resp ERROR: " . $resp_pdu->explain_status()

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008242]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-01 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls