Page 1 of 1

Message getting truncated

Posted: Mon Jun 24, 2019 8:54 am
by kolawole
We are currently using the Inetlab.SMPP for a USSD application, currently the application can receive request and send request. When the message gets to the user end, it always truncated at the 102nd character.

Below is the code currently being used.

Code: Select all


var text = string.Format("1|121:{0}|123:{1}|110:{2}|116:{3}", Util.ToBase64(sessOut.Message),
                        Util.ToBase64(resp),  Util.ToBase64(sessionId), Util.ToBase64("1"));
                   
var builder = SMS.ForSubmit().From(data.DestAddr)
                        .To(data.SourceAddr)
                        .Text(text).ServiceType(data.ServiceType).Coding(data.DataCoding)
                        .AddParameter(OptionalTags.UssdServiceOp, new byte[] { respOut })
                        .AddParameter(OptionalTags.ItsSessionInfo, sessionString);

Re: Message getting truncated

Posted: Mon Jun 24, 2019 4:21 pm
by alt
It can be limit on SMPP server side.
Let's make sure that library sends what you are expecting.

Can you provide a network trace from library log or wireshark?
https://docs.inetlab.com/smpp/v2/articles/tracing.html

You can send files on support@ email.

Re: Message getting truncated

Posted: Tue Jun 25, 2019 12:51 pm
by kolawole
I have sent the trace log from wireshark