google-code-export / smslib

Automatically exported from code.google.com/p/smslib
1 stars 0 forks source link

Multipart SMS, sending status is SENT even if 1 part is missing #428

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We are using SMSLib 3.3.2 for sending SMS. When sending long SMS, the SMS will 
break down into multiple parts by the SMSLib automatically. It is found that, 
if the first part of the message cannot be delivered, user cannot receive the 
SMS on the phone, but the SMSLib, getMessageStatus will return SENT status. 

Here are the log file, some data are removed.

30458571 [main] DEBUG org.smslib - GTW: My Gateway ID: 
=================================================
<< SmsSubmitPdu >>
Raw Pdu: x

SMSC Address: [Length: 0 octets]
First Octet: 71 [TP-MTI: (SMS-SUBMIT), TP-RD: (allow duplicates), TP-VPF: 
(validity format, integer, TP-SRR: (Requests Status Report), TP-UDHI: (has UDH)]
Message Reference: 00
Destination Address: [Length: 8 (08), Type: 81 (10000001), Address: 9]
TP-PID: 00 (00000000)
TP-DCS: 08 (UCS2 encoding) (00001000)
TP-VPF: 8 hours

User Data Length: 140 (8C) octets
User Data (pdu) : x
User Data Header (pdu) : x
User Data Header Length: 5 (05) octets

UDH Information Elements:
ConcatInformationElement[00, 03, 520401][MpRefNo: 82, MpMaxNo: 4, MpSeqNo: 1]

Non UDH Data (pdu) : x
Non UDH Data (decoded): [x]
=================================================

30458571 [main] DEBUG org.smslib - GTW: My Gateway ID: Sending Pdu: x
30458571 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=152(cr)
30458777 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30459781 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30462182 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMS ERROR: 500
30462182 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMS ERROR: 500(cr)
30462182 [main] WARN org.smslib - GTW: My Gateway ID: CMS Error 500: Retrying...
30464638 [SMSLib-WatchDog] INFO org.smslib - WatchDog running...
30465186 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=152(cr)
30465446 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30466450 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30467078 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMS ERROR: 500
30467078 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMS ERROR: 500(cr)
30467078 [main] WARN org.smslib - GTW: My Gateway ID: CMS Error 500: Retrying...
30470082 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=152(cr)
30470342 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30471346 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30473811 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMS ERROR: 500
30473811 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMS ERROR: 500(cr)
30473811 [main] ERROR org.smslib - GTW: My Gateway ID: CMS Error 500: Quit 
retrying, message lost...
30473811 [main] DEBUG org.smslib - GTW: My Gateway ID: 
=================================================
<< SmsSubmitPdu >>
Raw Pdu: x

SMSC Address: [Length: 0 octets]
First Octet: 71 [TP-MTI: (SMS-SUBMIT), TP-RD: (allow duplicates), TP-VPF: 
(validity format, integer, TP-SRR: (Requests Status Report), TP-UDHI: (has UDH)]
Message Reference: 00
Destination Address: [Length: 8 (08), Type: 81 (10000001), Address: 9]
TP-PID: 00 (00000000)
TP-DCS: 08 (UCS2 encoding) (00001000)
TP-VPF: 8 hours

User Data Length: 140 (8C) octets
User Data (pdu) : x
User Data Header (pdu) : x
User Data Header Length: 5 (05) octets

UDH Information Elements:
ConcatInformationElement[00, 03, 520402][MpRefNo: 82, MpMaxNo: 4, MpSeqNo: 2]

Non UDH Data (pdu) : x
Non UDH Data (decoded): [x]
=================================================

30473819 [main] DEBUG org.smslib - GTW: My Gateway ID: Sending Pdu: x
30473819 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=152(cr)
30474022 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30475026 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30475647 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMS ERROR: 500
30475647 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMS ERROR: 500(cr)
30475647 [main] WARN org.smslib - GTW: My Gateway ID: CMS Error 500: Retrying...
30478651 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=152(cr)
30478911 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30479643 [SMSLib-WatchDog] INFO org.smslib - WatchDog running...
30479915 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30480543 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMS ERROR: 500
30480543 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMS ERROR: 500(cr)
30480543 [main] WARN org.smslib - GTW: My Gateway ID: CMS Error 500: Retrying...
30483548 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=152(cr)
30483807 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30484811 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30489112 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMGS: 87
OK
30489112 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMGS: 87(cr)OK(cr)
30489113 [main] DEBUG org.smslib - GTW: My Gateway ID: 
=================================================
<< SmsSubmitPdu >>
Raw Pdu: x

SMSC Address: [Length: 0 octets]
First Octet: 71 [TP-MTI: (SMS-SUBMIT), TP-RD: (allow duplicates), TP-VPF: 
(validity format, integer, TP-SRR: (Requests Status Report), TP-UDHI: (has UDH)]
Message Reference: 00
Destination Address: [Length: 8 (08), Type: 81 (10000001), Address: 9]
TP-PID: 00 (00000000)
TP-DCS: 08 (UCS2 encoding) (00001000)
TP-VPF: 8 hours

User Data Length: 140 (8C) octets
User Data (pdu) : x
User Data Header (pdu) : x
User Data Header Length: 5 (05) octets

UDH Information Elements:
ConcatInformationElement[00, 03, 520403][MpRefNo: 82, MpMaxNo: 4, MpSeqNo: 3]

Non UDH Data (pdu) : x
Non UDH Data (decoded): [x]
=================================================

30489115 [main] DEBUG org.smslib - GTW: My Gateway ID: Sending Pdu: x
30489115 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=152(cr)
30489319 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30490323 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30494648 [SMSLib-WatchDog] INFO org.smslib - WatchDog running...
30494824 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMGS: 88
OK
30494824 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMGS: 88(cr)OK(cr)
30494848 [main] DEBUG org.smslib - GTW: My Gateway ID: 
=================================================
<< SmsSubmitPdu >>
Raw Pdu: x

SMSC Address: [Length: 0 octets]
First Octet: 71 [TP-MTI: (SMS-SUBMIT), TP-RD: (allow duplicates), TP-VPF: 
(validity format, integer, TP-SRR: (Requests Status Report), TP-UDHI: (has UDH)]
Message Reference: 00
Destination Address: [Length: 8 (08), Type: 81 (10000001), Address: 9]
TP-PID: 00 (00000000)
TP-DCS: 08 (UCS2 encoding) (00001000)
TP-VPF: 8 hours

User Data Length: 132 (84) octets
User Data (pdu) : x
User Data Header (pdu) : x
User Data Header Length: 5 (05) octets

UDH Information Elements:
ConcatInformationElement[00, 03, 520404][MpRefNo: 82, MpMaxNo: 4, MpSeqNo: 4]

Non UDH Data (pdu) : x
Non UDH Data (decoded): [x]
=================================================

30494848 [main] DEBUG org.smslib - GTW: My Gateway ID: Sending Pdu: x
30494848 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :AT+CMGS=144(cr)
30495052 [main] DEBUG org.smslib - GTW: My Gateway ID: clearBuffer() called.
30496056 [main] DEBUG org.smslib - GTW: My Gateway ID: SEND :x
30499924 [main] DEBUG org.smslib - GTW: My Gateway ID: BUFFER: +CMGS: 89
OK
30499924 [main] DEBUG org.smslib - GTW: My Gateway ID: RECV :+CMGS: 89(cr)OK(cr)

Message Sending Status OutboundMessage.getMessageStatus : SENT OutboundMessage.getRefNo:89 OutboundMessage.getFailureCause : NO_ERROR


Original issue reported on code.google.com by `ylmas...@gmail.com` on 14 Jul 2011 at 1:18
GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 14 Jul 2011 at 5:22

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 6 Aug 2011 at 7:59

GoogleCodeExporter commented 9 years ago
r2310 - thanks.

Original comment by T.Delenikas on 6 Aug 2011 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by T.Delenikas on 31 Mar 2012 at 8:03