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

Lubos Dolezel (JIRA) noreply at issues.asterisk.org
Sun Dec 25 07:07:11 CST 2016


Lubos Dolezel created ASTERISK-26677:
----------------------------------------

             Summary: 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
            Severity: Minor


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