[Asterisk-Dev] SMS App error foreign chars

Gary Ruddock (Swift Drinks) garyruddock at hotmail.com
Tue Jan 4 05:15:53 MST 2005


I Sent a text message "swift drinks smstest 1" and all is ok

here is the text file created (for privacy I changed the sender number oa=)

    mr=77
    oa=07793999999
    dcs=0
    scts=2005-01-04 11:38:59
    ud=Swift drinks smstest 1
    mr=78

here is the sms arriving in asterisk

    -- Executing Goto("Zap/1-1", "local|s|1") in new stack
    -- Accepting call from '8005875290' to '077777' on channel 0/1, span 1
    -- Goto (local,s,1)
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing GotoIf("Zap/1-1", "0?14:4") in new stack
    -- Goto (local,s,4)
    -- Executing GotoIf("Zap/1-1", "1?10:5") in new stack
    -- Goto (local,s,10)
    -- Executing SMS("Zap/1-1", "sms|a") in new stack
    -- SMS TX 93 00 6D 00 00 00...
    -- SMS RX 91 27 04 0B 81 70...
    -- SMS TX 95 02 00 00 69 00...
    -- SMS RX 94 00 6C 0B 81 70...
    -- Executing System("Zap/1-1", "/usr/lib/asterisk/smsin ") in new stack
    -- Executing System("Zap/1-1", "play 
/var/lib/asterisk/sounds/sms.wav -v1 &") in new stack
    -- Executing Hangup("Zap/1-1", "") in new stack
  == Spawn extension (local, s, 13) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'

I sent another sms message "Thanks For the text Could I change it to 47 
cases of rèmy Martin a.s.a.p & @ ỳ¶±°œ". I sent it from an XDA2 using 
standard characters on the Pocket PC keyboard as a quick test.

Instead of 1 file created I got 2 and they are a bit messed up;

mr=78
oa=07793999999
dcs=8
scts=2005-01-04 11:46:36
ud=é@øò  @@T@ ¥¿ø@7 at V£¿ì@ò@F@<¥ Å@¿@h£¡ù ¿@ 
@P¥Pø@<@h£@$¿¿@o at T¥¡\r at 2@¡@Hè@ò@c@ ¥
¿ø@7 at N£(ù@ò@i at P¥@è@:@Ü£@$@\r at 7@@£0ø¡0 at f£(ù¿Æ@ @<¥¿ø@¿@d£HÅ  @y@@£

mr=79
oa=077935999999
dcs=8
scts=2005-01-04 11:46:36
ud=é@øò ¡@@s at 8£¿ø@¿@¿£@$¡Ç@ @@$@è¡ü@l$ò


Asterisk output looks different as well. There's extra SMS TX and SMS RX 
lines.

    -- Executing Goto("Zap/1-1", "local|s|1") in new stack
    -- Accepting call from '8005875290' to '077777' on channel 0/1, span 1
    -- Goto (local,s,1)
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing GotoIf("Zap/1-1", "0?14:4") in new stack
    -- Goto (local,s,4)
    -- Executing GotoIf("Zap/1-1", "1?10:5") in new stack
    -- Goto (local,s,10)
    -- Executing SMS("Zap/1-1", "sms|a") in new stack
    -- SMS TX 93 00 6D 00 00 00...
    -- SMS RX 91 9F 44 0B 81 70...
    -- SMS TX 96 03 00 FF 00 68...
    -- SMS RX 91 37 44 0B 81 70...
    -- SMS TX 96 03 00 FF 00 68...
    -- SMS RX 94 00 6C 0B 81 70...
    -- Executing System("Zap/1-1", "/usr/lib/asterisk/smsin ") in new stack
    -- Executing System("Zap/1-1", "play 
/var/lib/asterisk/sounds/sms.wav -v1 &") in new stack
    -- Executing Hangup("Zap/1-1", "") in new stack
  == Spawn extension (local, s, 13) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1' 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20050104/97b044e3/attachment.htm


More information about the asterisk-dev mailing list