Mandi! Alejandro Donato
In chel di` si favelave...
> When chan_dongle takes dongles control, cannot be used by another
> app (in practical environment without modifying it) In the SMS
> server, i don't use Asterisk. So, i suggest you to test with
> smstools3 the modem functionality, to check if the error is
> something in the modem operation/configuration or a "missdecode" in
> chan_dongle.
Ah, ok, now it is clear.
> In other way, asterisk dialplan allows you to run external scripts
> and process the results. The sequence can be:
> chan_dongle SMS in -> send it to external script decoder from
> dialplan and waits for result -> chan_dongle process the result.
Exactly. My addon/idea is to arrange that work ONLY for ''complex''
messages, leaving SMS decoder of chan_dongle do their work simple
tasks.
I suppose that it is not so simple to distinguish ''simple'' from
''complex''... i've tried to send a simple message (that decode
perfectly):
-- Executing [sms@dongle:4] NoOp("Local/sms@dongle-bd2a;1", "Incoming SMS from XXXXXXXXXX: Scusate. Prova.") in new stack
-- Executing [sms@dongle:5] NoOp("Local/sms@dongle-bd2a;1", "Incoming SMS(b64) from XXXXXXXXXX: Scusate. Prova.") in new stack
-- Executing [sms@dongle:6] NoOp("Local/sms@dongle-bd2a;1", "Incoming SMS(raw) from XXXXXXXXXX: +CMGR: 0,,33 0791932350591211040C919323785327460000417013715490800FD3717D1EA6975D20A8FC6D0FBB00") in new stack
and the smstools online PDU decoder
http://smstools3.kekekasvi.com/topic.php?id=288
say me:
SMS DELIVER (receive)
Receipt requested: no
SMSC: 393205952111
Sender: 39XXXXXXXXXX
TOA: 91 international, Numbering Plan: unknown
TimeStamp: 31/07/14 17:45:09 GMT +02:00
TP-PID: 00
TP-DCS: 00
TP-DCS-desc: Uncompressed Text, No class
Alphabet: Default (7bit)
Scusate. Prova.
Length: 15
while if i try to decode the ''multipart'' messages of my original email, i get:
(part 1)
SMS DELIVER (receive)
Receipt requested: no
SMSC: 393205952111
Sender: 39XXXXXXXXXX
TOA: 91 international, Numbering Plan: unknown
TimeStamp: 29/07/14 00:11:15 GMT +02:00
TP-PID: 00
TP-DCS: 00
TP-DCS-desc: Uncompressed Text, No class
Alphabet: Default (7bit)
User Data Header: 05 00 03 22 02 01
Provo a mandare un sms molto lungo e pieno zeppo di lettere che è difficile rappresentare in pochi caratteri. Purtroppo devo scrivere molto di più poiché
Length: 160
(part 2)
MS DELIVER (receive)
Receipt requested: no
SMSC: 393205952111
Sender: 39XXXXXXXXXX
TOA: 91 international, Numbering Plan: unknown
TimeStamp: 29/07/14 00:11:16 GMT +02:00
TP-PID: 00
TP-DCS: 00
TP-DCS-desc: Uncompressed Text, No class
Alphabet: Default (7bit)
User Data Header: 05 00 03 22 02 02
solo ora ho superato i centosessanta caratteri.
Length: 55
So, seems to me that a difference came from the presence of a 'UDH'
part in the message:
http://smstools3.kekekasvi.com/index.php?p=udh
http://en.wikipedia.org/wiki/User_Data_Header
> Michael Toop offers to do it, if you can determine the problem is
> the builtin decoder in chan_dongle. And maybe, both of you can help
> to solve the issue definitively.
...now that i've understood what you mean, i can safely reply that this
is surely not needed: provided the fact that chan_dongle can emit the
raw PDU, and that the raw PDU decode correctly with external tools,
surely there's some trouble in the PDU parser of chan_dongle.
And, again, i think that a better approach would be not to try to
''fix'' it, but simply offload complex decoding to external tools.
Thanks.