Sometimes don't work IsLastSegment
Example in trace file
Sometimes don't work IsLastSegment
Sometimes don't work IsLastSegment
- Attachments
-
- trace.zip
- (506 Bytes) Downloaded 2546 times
Re: Sometimes don't work IsLastSegment
and GetFullMessage not work on this message
Re: Sometimes don't work IsLastSegment
Hello Alexf
Which version do you use?
Which version do you use?
Re: Sometimes don't work IsLastSegment
If you want, I can send more logs
Re: Sometimes don't work IsLastSegment
I have tested messages from dump file. I can read whole Russian text.
What did you get with GetFullMessage method?
What did you get with GetFullMessage method?
Re: Sometimes don't work IsLastSegment
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
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
You should call GetFullMessage when IsLastSegemt is true.
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
Code: Select all
if (composer.IsLastSegment(data))
{
fullMessage = composer.GetFullMessage(data);
}
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