Getting part info from multi-part sms

.NET library for SMPP protocol
Locked
armagan
Posts: 1
Joined: Fri Sep 14, 2012 8:01 am

Getting part info from multi-part sms

Post by armagan » Wed Sep 19, 2012 1:49 pm

I'm receiving long sms messages in multi-parts and I'd like merge them before processing. I was going to try AddMessageSegmentToCollector() and other methods used in the demo app but it seems that either the SMSC service is not using part info or Inetlab can't parse it. I have the deliver_sm logs, can you please check and tell me which?

SAR* values are found out using ByteArrayToHexString()

Part 1
16:18:07 | Acknowledgement: NotRequested
Command: DeliverSm
DataCoding: byte: 8, encoding: UCS2
MessageFeature: No
MessageMode: Default
MessageReferenceNumber: 0
MessageType: Default
Notification: NotRequested
OptionalTLV.SARReferenceNumber: Length: 2::Tag: 524::TagValue: SARReferenceNumber::Value: 0031
OptionalTLV.SARTotalSegments: Length: 1::Tag: 526::TagValue: SARTotalSegments::Value: 02
OptionalTLV.SARSequenceNumber: Length: 1::Tag: 527::TagValue: SARSequenceNumber::Value: 01
Response.Sequence: 10
Response.Status: ESME_ROK
SegmentNumber: 0
Sequence: 10
ServiceType:
SMSCReceipt: NotRequested
Status: ESME_ROK
TotalSegments: 0
UserPdu.Headers.Count: 0,
MessageText:правда виполатмьбва олуркпот опои орпаов моррпо мротпьбват тилоа

Part 2
16:18:09 | Acknowledgement: NotRequested
Command: DeliverSm
DataCoding: byte: 8, encoding: UCS2
MessageFeature: No
MessageMode: Default
MessageReferenceNumber: 0
MessageType: Default
Notification: NotRequested
OptionalTLV.SARReferenceNumber: Length: 2::Tag: 524::TagValue: SARReferenceNumber::Value: 0031
OptionalTLV.SARTotalSegments: Length: 1::Tag: 526::TagValue: SARTotalSegments::Value: 02
OptionalTLV.SARSequenceNumber: Length: 1::Tag: 527::TagValue: SARSequenceNumber::Value: 02
Response.Sequence: 11
Response.Status: ESME_ROK
SegmentNumber: 0
Sequence: 11
ServiceType:
SMSCReceipt: NotRequested
Status: ESME_ROK
TotalSegments: 0
UserPdu.Headers.Count: 0,
MessageText:олдати

Code: Select all

16:18:07 | Data: 000000c700000005000000000000000a000101333735323537393830303635000001333933390000000000000000080086043f04400430043204340430002004320438043f043e043b04300442043c044c04310432043000200020043e043b04430440043a043f043e044200200020043e043f043e04380020043e0440043f0430043e04320020043c043e04400440043f043e0020043c0440043e0442043f044c04310432043004420020002004420438043b043e0430020c00020031020e000102020f000101

16:18:09 | Data: 0000004f00000005000000000000000b00010133373532353739383030363500000133393339000000000000000008000e043e043b04340430044204380020020c00020031020e000102020f000102
alt
Site Admin
Posts: 918
Joined: Tue Apr 25, 2006 9:45 am

Re: Getting part info from multi-part sms

Post by alt » Thu Oct 04, 2012 6:21 pm

I suggest you to use MessageComposer class in Inetlab.SMPP v.1.1.
Locked