Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i m new in c# facing a problem when i receive multipart or long sms in pdu format..i knew every long sms have a reference no like

sms#1
part 1 ref=00
part 2 ref=00
part 3 ref=00

sms#2
part 1 ref=01
part 2 ref=01
part 3 ref=01

problem is when i recieve sms its sequence shows like this

sms#1
part 1 ref=00

sms#2
part 3 ref=01

sms#1
part 2 ref=00
part 3 ref=00

sms#2
part 2 ref=01
part 1 ref=01

please explain me how can i set the sequence like sms#1 all parts recieve first then sms#2 recieve all parts...and one more thing most of time recieve sms reference no=00 how to set every incoming sms different reference no..
Posted
Comments
[no name] 30-Jun-10 2:26am    
It will be very nice if you explain how you manage the sequence, and post your code snippets as well.

1 solution

You can't.

The whole idea of the sequence numbers is that the parts can arrive in any order and do not have to be received sequentially. If they were guaranteed to arrive in the order
(SMS1, P1) 
(SMS1, P2) 
(SMS1, P3) 
(SMS2, P1) 
(SMS2, P2) 
(SMS2, P3) 
Then there would be no point at all in having sequence numbers and separate message ids at all!
See Wiki[^] for a description...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900