[Asterisk-Users] Asterisk with SMS

Nguyen Quang Hoa hoa.nguyen at softgalaxy.com
Thu Dec 2 08:22:28 MST 2004


Hi all,

I am trying to setup the SMS of Asterisk. I have a Siemens SMS enable 
fixed phone which connects to my Asterisk through PSTN. Currently, I 
can use my fixed phone to edit and send messages to the Asterisk. 
However, I cannot make my Asterisk to send messages to the fixed phone. 
The SMS command displays TX and RX records, hang for a while and then 
stops with non-zero exits.

I read somewhere in the technical manual of the phone that the phone 
should be able to identify the caller id in order to receive messages. 
My telephone line for the fixed phone has the callerid feature, but I 
guess I should config the phone as well to identify the SMS calls from 
the Asterisk, but I don't know how.

Have anyone tried Asterisk with SMS?
Thanks,
Hoa

This is part of the extensions.conf to send messages:
   [smsdial]
   exten => s,1,SMS(${CALLERIDNUM},s,${EXTEN},${CALLERIDNAME})
   exten => s,2,SMS(${CALLERIDNUM},s)
   exten => s,3,Hangup
   
And this is the .call file I use to send test messages
   
   Channel: Zap/g1/9,5375345
   CallerID: Test Message <5375321>
   MaxRetries: 2
   RetryTime: 60
   WaitTime: 30
   Context: smsdial
   Extension: <5375321>
   Priority: 1
   
This is output on CLI screen:
   
   -- Attempting call on Zap/g1/9,5375345 for <5375321>@smsdial:1 
(Retry 1)
   > Channel Zap/3-1 was answered.
   == Starting Zap/3-1 at smsdial,<5375321>,1 failed so falling back to 
   exten 's'
   -- Executing SMS("Zap/3-1", "5375321|s|s|Test Message") in new stack
   -- Executing SMS("Zap/3-1", "5375321|s") in new stack
   -- SMS TX 92 01 FF 6E 00 00...
   -- SMS RX 92 01 FF 6E 00 00...
   -- SMS TX 92 01 FF 6E 00 00...
   -- SMS RX 92 01 FF 6E 00 00...
   -- SMS TX 92 01 FF 6E 00 00...
   -- SMS TX 92 01 FF 6E 00 00...
   -- SMS RX 92 01 FF 6E 00 00...
   -- SMS TX 92 01 FF 6E 00 00...
   -- Executing Hangup("Zap/3-1", "") in new stack
   == Spawn extension (smsdial, s, 3) exited non-zero on 'Zap/3-1'
   -- Hungup 'Zap/3-1'
   Dec  2 09:46:45 NOTICE[9188]: pbx_spool.c:242 attempt_thread: Call 
   completed to Zap/g1/9,5375345
   
And this is logdata from /var/log/asterisk/event_log:
   
   Dec  2 09:45:46 asterisk[8554]: Received to
   /var/spool/asterisk/sms/sc-me.5375321/2004-12-02_09:45:46-00
   Dec  2 09:46:45 asterisk[8554]: No data, hanging up
   Dec  2 09:46:45 asterisk[8554]: Queued call to Zap/g1/9,5375345
   completed
   




More information about the asterisk-users mailing list