[asterisk-bugs] [JIRA] (ASTERISK-26677) Short SMS messages are garbled

Lubos Dolezel (JIRA) noreply at issues.asterisk.org
Sat Dec 31 08:06:10 CST 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lubos Dolezel updated ASTERISK-26677:
-------------------------------------

    Attachment: asterisk.log

Yes, the phone should be compatible with the "ETSI ES 201 912" standard.

I've retried with Asterisk 13 (14 is not available on Gentoo) and enabled full logging as you described. The log is attached - the Gigaset SIP phone in question is referred to as "telefon".

I don't think there is much useful information in the logs. My personal bet is that something is possibly broken in the FSK demodulator in Asterisk or maybe the decoded data is later incorrectly parsed.

I believe the most useful piece of information is the wav recording of the call  I attached.

> Short SMS messages are garbled
> ------------------------------
>
>                 Key: ASTERISK-26677
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26677
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 11.25.1
>            Reporter: Lubos Dolezel
>            Assignee: Lubos Dolezel
>            Severity: Minor
>         Attachments: asterisk.log, smsrec-in.wav, smsrec-out.wav
>
>
> I'm playing with receiving SMS messages sent by Gigaset C530 IP phones. I've set the SMS Center number to *88 and this is the configuration I'm using:
> {code}
> exten => *880,1,Verbose(Receiving SMS)
> exten => *880,n,Answer()
> exten => *880,n,Wait(2)
> exten => *880,n,SMS(sms_gigaset,as)
> exten => *880,n,Hangup
> {code}
> Long messages are delivered just fine, but short messages are messed up with 100% reproducibility. Examples:
> ud=@@ # This was "OK" 
> ud=Ah¥@ # This was "Ahoj"
> I don't know what else to provide. I've attached a debugger and tried to figure it out. At this point in the call stack (when sending a message with text "Ok"):
> {code}
> #2  0x00007fe1c3014d78 in sms_handleincoming (h=0x7fe1b4f28fa0) at app_sms.c:1134
> 1134                            p += unpacksms(h->dcs, h->imsg + p, h->udh, &h->udhl, h->ud, &h->udl, h->udhi);
> {code}
> there are these interesting values set:
> {code}
> (gdb) p p
> $19 = 13 '\r'
> (gdb) p/x h->imsg
> $20 = {0x91, 0xe, 0x21, 0x8, 0x9, 0x81, 0x37, 0x67, 0x56, 0x64, 0xf9, 0x0, 0x0, 0x2, 0x0, 0x0, 0x5b, 0x0 <repeats 233 times>}
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list