Error in Unicode Long Message

.NET library for SMPP protocol
Locked
sreekala
Posts: 2
Joined: Tue Jun 10, 2014 12:36 pm

Error in Unicode Long Message

Post by sreekala » Wed Jun 11, 2014 8:21 am

I was testing the client application version 1.1.15.3. When i send long English message(msg count 2) with the following code,message delivers fine..but when i send Unicode long message (msg count 2) the following conditions occurred.
1..it takes it as 5 or more different messages and gets throttled error
2..Once it got Delivered as Unicode
3..most of the times does not deliver at all

Code: Select all

Code for English:
IList<SubmitSmResp> resp = client.Submit(
                   Inetlab.SMPP.SMS.ForSubmit()
                   .Text(message)
                   .From(srcaddr, s_addr_ton, s_addr_npi)
                   .To(destination, d_addr_ton, d_addr_npi)
                   .DeliveryReceipt()
                   .Coding(DataCodings.Default)
                   .ExpireIn(TimeSpan.FromDays(2))
                   );

Code for Unicode:
IList<SubmitSmResp> resp = client.Submit(
                   Inetlab.SMPP.SMS.ForSubmit()
                   .Text(message.ToString())
                   .From(srcaddr, s_addr_ton, s_addr_npi)
                   .To(destination, d_addr_ton, d_addr_npi)
                   .DeliveryReceipt()
                   .Coding(DataCodings.UCS2)
                   .ExpireIn(TimeSpan.FromDays(2))
                   
                   );
Awaiting your earliest response.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Error in Unicode Long Message

Post by alt » Wed Jun 11, 2014 7:36 pm

In unicode each character represented as 2 bytes. Therefore client sends more concatenated parts.

When you receive throttled error you need to set correct client.SendSpeedLimit property

http://wiki.inetlab.com/doku.php/smpp/throttling
Locked