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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Dec 29 17:10:10 CST 2016


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

Rusty Newton updated ASTERISK-26677:
------------------------------------

    Assignee: Lubos Dolezel
      Status: Waiting for Feedback  (was: Triage)

The 11 branch is in Security Fix Only mode. Can you reproduce the issue on 13 or 14?

Once you are able to test it on 13 or 14..
Can you attach an Asterisk log file with warning,error,notice,verbose and debug channels? Make sure verbose and debug are both turned up to 5 or above.

I assume the phone's SMS is compatible with "ETSI ES 201 912" as mentioned in the documentation?

> 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: 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