_messageComposer.IsLastSegment(data) always returns false

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

_messageComposer.IsLastSegment(data) always returns false

Post by sreekala »

Im trying to retrieve long message using following code

Code: Select all

 if (data.Concatenation != null)
                {
                    _messageComposer.AddMessage(data);

                    if (_messageComposer.IsLastSegment(data))
                    {
                        messageText = _messageComposer.GetFullMessage(data);
                        AddUILog("last segment" + messageText);
                    }
}
. But when i debug i always get (_messageComposer.IsLastSegment(data)) as false.. How can i retrieve full message?
alt
Site Admin
Posts: 992
Joined: Tue Apr 25, 2006 9:45 am

Re: _messageComposer.IsLastSegment(data) always returns fals

Post by alt »

Could you show trace file? what do you receive from server?
IsLastSegment is true only when all concatenated parts are received.
It can be that you receive wrong concatenation parameters.
Locked