Sometimes don't work IsLastSegment

.NET library for SMPP protocol
Locked
alexf
Posts: 7
Joined: Thu Jun 16, 2016 10:40 am

Sometimes don't work IsLastSegment

Post by alexf » Thu Jun 16, 2016 10:43 am

Sometimes don't work IsLastSegment

Example in trace file
Attachments
trace.zip
(506 Bytes) Downloaded 622 times
alexf
Posts: 7
Joined: Thu Jun 16, 2016 10:40 am

Re: Sometimes don't work IsLastSegment

Post by alexf » Fri Jun 17, 2016 8:11 am

and GetFullMessage not work on this message
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Sometimes don't work IsLastSegment

Post by alt » Fri Jun 17, 2016 11:22 am

Hello Alexf

Which version do you use?
alexf
Posts: 7
Joined: Thu Jun 16, 2016 10:40 am

Re: Sometimes don't work IsLastSegment

Post by alexf » Mon Jun 20, 2016 2:10 am

1.1.22.2
alexf
Posts: 7
Joined: Thu Jun 16, 2016 10:40 am

Re: Sometimes don't work IsLastSegment

Post by alexf » Mon Jun 20, 2016 6:36 am

If you want, I can send more logs
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Sometimes don't work IsLastSegment

Post by alt » Tue Jun 21, 2016 7:55 pm

I have tested messages from dump file. I can read whole Russian text.
What did you get with GetFullMessage method?
alexf
Posts: 7
Joined: Thu Jun 16, 2016 10:40 am

Re: Sometimes don't work IsLastSegment

Post by alexf » Wed Jun 22, 2016 2:28 am

1. smpp client connect (window size=200)
2. some messages triggered IsLastSegment
on the other does not work IsLastSegment/GetFullMessage (such as in the file)

3. call event OnFullMessageTimedout
I changed the timeout. no result

4. In the logs (Inetlab) I see that all segments come and see all submit_sm_resp sent to the client


if (composer.IsLastSegment(data))
{
} //It does not work on some sms


if doing so

try
{
fullMessage = composer.GetFullMessage(data);
}
catch
{

}

nullreferenceexception




data.MessageText

well-received by each segment
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Sometimes don't work IsLastSegment

Post by alt » Fri Jun 24, 2016 10:18 pm

You should call GetFullMessage when IsLastSegemt is true.

Code: Select all

if (composer.IsLastSegment(data))
{
    fullMessage = composer.GetFullMessage(data);
} 
What did you mean under "IsLastSegement doesn't work on some sms"?
With example in the file it works perfect.

Also you may try to use MessageComposer only with events.
http://wiki.inetlab.com/doku.php/smpp/messagecomposer
Locked