Message getting truncated

.NET library for SMPP protocol
Locked
kolawole
Posts: 3
Joined: Thu Jun 20, 2019 4:17 pm

Message getting truncated

Post by kolawole » Mon Jun 24, 2019 8:54 am

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

Re: Message getting truncated

Post by alt » Mon Jun 24, 2019 4:21 pm

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.
kolawole
Posts: 3
Joined: Thu Jun 20, 2019 4:17 pm

Re: Message getting truncated

Post by kolawole » Tue Jun 25, 2019 12:51 pm

I have sent the trace log from wireshark
Locked