Send message with different ton & npi

Send message with different ton & npi SearchSearch
Author Message
bara
New member
Username: Bara9181

Post Number: 6
Registered: 02-2014
Posted on Tuesday, April 29, 2014 - 10:10 am:   

HI,

I have problem with operator that i must change the TON and NPI for each send :
for example
if i put the sender = 9999 i must put the Source TON=0,Source NPI=1
if the sender =adv-9999 the TON=5,NPI=1

how i can make this in nowsms
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4876
Registered: 08-2008
Posted on Tuesday, April 29, 2014 - 01:01 pm:   

Hi,

NowSMS will apply those settings automatically ... but you do need a configuration setting.

sender=adv-9999 would be considered alphanumeric, so NowSMS would automatically set TON=5, NPI=0.

sender=9999 would be considered a short code, so NowSMS would automatically set TON=3, NPI=0.

By default, a number is considered to be a short code if the length of the number is 5 digts or less. You can change this length setting by editing SMSGW.INI, and under the [SMSGW] header specifying MaxSMPPShortCodeLen=#, where # is the max length of a short code.

So if you set MaxSMPPShortCodeLen=1, sender=9999 would automatically set TON=0, NPI=1.

The only thing that doesn't match your instructions is that for alphanumeric, NowSMS uses TON=5, NPI=0, but your instructions want NPI=1. I'd be really surprised if NPI=1 was required here because it means the number is part of the standard telephone numbering plan, when it obviously is not.

So my suggestion is to leave the TON/NPI settings (under Properties/Advanced Settings) for the SMPP connection as default. Add MaxSMPPShortCodeLen=1 under [SMSGW] in SMSGW.INI to change TON/NPI for the 9999 sender.

IF you still have problems with sender=adv-9999, set the sender NPI in the NowSMS config to 1, and leave sender TON as default.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4877
Registered: 08-2008
Posted on Tuesday, April 29, 2014 - 01:02 pm:   

P.S. - More info here: http://www.nowsms.com/ton-and-npi-settings-for-smpp-and-ucpemi