Page 1 of 1

Sometimes don't work IsLastSegment

Posted: Thu Jun 16, 2016 10:43 am
by alexf
Sometimes don't work IsLastSegment

Example in trace file

Re: Sometimes don't work IsLastSegment

Posted: Fri Jun 17, 2016 8:11 am
by alexf
and GetFullMessage not work on this message

Re: Sometimes don't work IsLastSegment

Posted: Fri Jun 17, 2016 11:22 am
by alt
Hello Alexf

Which version do you use?

Re: Sometimes don't work IsLastSegment

Posted: Mon Jun 20, 2016 2:10 am
by alexf
1.1.22.2

Re: Sometimes don't work IsLastSegment

Posted: Mon Jun 20, 2016 6:36 am
by alexf
If you want, I can send more logs

Re: Sometimes don't work IsLastSegment

Posted: Tue Jun 21, 2016 7:55 pm
by alt
I have tested messages from dump file. I can read whole Russian text.
What did you get with GetFullMessage method?

Re: Sometimes don't work IsLastSegment

Posted: Wed Jun 22, 2016 2:28 am
by alexf
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

Re: Sometimes don't work IsLastSegment

Posted: Fri Jun 24, 2016 10:18 pm
by alt
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