[Asterisk-Users] Trouble getting SMS working

Mick mick at wow.nailed.org
Fri Jun 9 14:38:02 MST 2006


Hi,

I have been trying to get my asterisk box to send SMS's to my Panasonic dect phone via
a Linksys pap2. I believe I have the message centers setup correctly
between * and the phone. 
The pap2 is configured to only use G711a.
The Asterisk version is 1.0.7.

In my /etc/asterisk/extensions.conf I have
[smsphone]
exten = 199,1,Goto(smsmorx,${CALLERIDNUM},1)

[smsmorx]
exten = _X.,1,SMS(${EXTEN}|sa)
exten = _X.,2,System(/tmp/smstest ${EXTEN} ${CALLERIDNUM} ${CALLERIDNAME})
exten = _X.,3,Hangup


When trying to send an SMS from the phone to *, I get the following:

/var/log/asterisk/event_log:
    asterisk[15345]: No data, hanging up

asterisk -grv with verbosity set to 7 shows this:

    -- Executing Goto("SIP/phone1-3037", "smsmorx|101|1") in new stack
    -- Goto (smsmorx,101,1)
    -- Executing SMS("SIP/phone1-3037", "101|sa") in new stack
    -- SMS TX 93 00 6D 00 00 00...
    -- Executing System("SIP/phone1-3037", "/tmp/smstest 101 101 Office") in new stack 
    -- Executing Hangup("SIP/phone1-3037", "") in new stack
    == Spawn extension (smsmorx, 101, 3) exited non-zero on 'SIP/phone1-3037'


When trying to send an SMS to the phone with the command:
smsq -o19900 -q101 --mttx-callerid 19900 --mttx-channel sip/phone1 --ud "test"

/var/log/asterisk/event_log:
asterisk[15493]: Queued call to sip/phone1 completed

asterisk -grv
    -- Attempting call on sip/phone1 for application SMS(101|s) (Retry 1)
    > Channel SIP/phone1-8c85 was answered.
    > Lauching SMS(101|s) on SIP/phone1-8c85
    -- SMS RX 93 00 6D 00 00 00...
    -- SMS TX 94 00 6C 00 00 00...
May 10 06:16:47 NOTICE[15493]: pbx_spool.c:242 attempt_thread: Call completed to sip/phone1

The phone shows "Receiving Message" for a short while, then nothing.

It appears that * is able to receive messages from the phone, but the phone isn't receiving the messages from * ?

Would anyone have any ideas on how to get this going ?

Thanks

Mick.





More information about the asterisk-users mailing list