kannel howto define source-addr-npi and source-addr-ton in sendsms URL?

0

I have some problem with kannel application. To one of SMSC I send messages with alpha, numeric and shortcode sender id. Every type of sender id requires different source-addr-npi/source-addr-ton. I can set it only static in config, so I have created 3 simiar config in my kannel.conf file with different ton/npi settings. Supplier was give me below data as correct:

alpha: ton = 5, npi = 0
numeric: ton = 1, npi = 1
shortcode: ton = 3, npi = 13

3 binds as transceiver with the same login and password, with the same IP adress and port. I can send SMS and it works but now, I have another trouble, because when I send SMS via connection1, dlr is returned by SMSC to connection1, 2 or 3 (it's random). Kannel generate error like below:

 ERROR: SMPP[SMSC1]: got DLR but could not find message or was not interested in it id<80FA5E7200000002> dst<xxxxxxxx>, type<1>

Is it possible to set source-addr-npi and source-addr-ton values via HTTP request when I'am sending SMS to kannel from my application as below?

~/cgi-bin/sendsms?smsc=aaa&username=bbb&password=ccc&source-addr-npi=1&(...)

Supplier says, that he can't do anything by his side. I have found "source-addr-autodetect" parameter but it didn't work because return for shortcode and numeric sender:

source-addr-ton = 2
source-addr-npi = 1

and my supplier return error code as below:

ERROR: SMPP[SMSC1]: SMSC returned error code 0x0000000b (Invalid Destination Address) in response to submit_sm.

Anyone can help me?

kannel
asked on Stack Overflow Aug 2, 2013 by user2646110

1 Answer

0

Do You know is there any "ready to use" patch for kannel for as You say "explicit TON and NPI in sendsms API"?

answered on Stack Overflow Aug 3, 2013 by user2646110

User contributions licensed under CC BY-SA 3.0