Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^2: issue in SMS Connectivity

by rammoorthi (Novice)
on Dec 11, 2012 at 09:51 UTC ( #1008254=note: print w/replies, xml ) Need Help??

in reply to Re: issue in SMS Connectivity
in thread issue in SMS Connectivity

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

Replies are listed 'Best First'.
Re^3: issue in SMS Connectivity
by Mr. Muskrat (Canon) on Dec 12, 2012 at 22:58 UTC

    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008254]
[erix]: swedes in winter have too much time on their hands

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2018-02-22 15:25 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (294 votes). Check out past polls.