Page 1 of 1

Setting TON and NPI for the source address in a long message

Posted: Fri Sep 06, 2013 4:56 pm
by utkuferuz
Hi Guys;

I've been doing some tests on your demo application and I ran into an issue.

I'm trying to send a long message by using the method "Client.Submit(SMS.ForSubmit())" in your help document. However, I cannot set TON and NPI values for the source address.Therefore, I'm getting "invalid source address" error from smsc.

Is there any way to set those values? Or, Am I missing any point in the function?

Client.Submit(SMS.ForSubmit()
.ServiceType("test")
.Text("Test Test Test Test Test Test Test Test Test Test")
.From("1111")
.To("2222")
.DeliveryReceipt()
.Coding(DataCodings.Default)
);

Re: Setting TON and NPI for the source address in a long mes

Posted: Thu Sep 12, 2013 7:21 am
by alt
You can use methods
From(string sourceAddr, byte ton, byte npi);
To(string destAddr, byte ton, byte npi);

Re: Setting TON and NPI for the source address in a long mes

Posted: Thu Sep 19, 2013 4:40 am
by jeeny123
i would like to appreciate you for sharing such a great info with us
:(