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

.NET library for SMPP protocol
Locked
utkuferuz
Posts: 1
Joined: Fri Sep 06, 2013 4:47 pm

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

Post by utkuferuz » Fri Sep 06, 2013 4:56 pm

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)
);
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

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

Post by alt » Thu Sep 12, 2013 7:21 am

You can use methods
From(string sourceAddr, byte ton, byte npi);
To(string destAddr, byte ton, byte npi);
jeeny123
Posts: 1
Joined: Thu Sep 19, 2013 4:37 am

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

Post by jeeny123 » Thu Sep 19, 2013 4:40 am

i would like to appreciate you for sharing such a great info with us
:(
ccnp tshoot ccnp tshoot
pmp certification online pmp certification online
act prep test act prep test
act sample test act sample test
Locked