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

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Mar 15 06:24:10 CDT 2017


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

Asterisk Team updated ASTERISK-26677:
-------------------------------------

    Status: Waiting for Feedback  (was: Waiting for Feedback)

> app_sms: 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
>          Components: Applications/app_sms
>    Affects Versions: 13.13.1
>            Reporter: Lubos Dolezel
>            Assignee: Asterisk Team
>            Severity: Minor
>         Attachments: asterisk.log, sms, 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