Chapter 6 Sending and Receiving SMS
There are three ways for users to send SMS by ATCOM AX4G.
1. Sending SMS by asterisk CLI command directly.
Before sending SMS, customer should register a sip phone. 600 is a sip user, 13728737752 is
a destination phone number, the following example sends a message from sip 600 to
13728737752 using the first channel:
localhost*CLI> sendsms sip/600 dahdi/1 13728737752 Welcome to ATCOM
== Using SIP RTP CoS mark 5
--
Launching
SIP/600-0000002c
-- Launching DoSms(13728737752 Welcome to ATCOM) on DAHDI/1-1
[Apr 25 14:32:32] WARNING[22660]: chan_dahdi.c:5827 dahdi_handle_event: gsm send
sms sucess
-- Hungup 'DAHDI/1-1'
2. Sending bulk SMS
Before sending the SMS, please start Asterisk.
In /var/spool/asterisk directory, please edit a xml file like the following format, then copy the
content to outgoing file, after that the SMS will be send out.
bulksms.xml
---------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<sms>
<receiver>15012871900</receiver>
<receiver>13728731755</receiver>
<channel>1</channel>
<content>
hello! welcom to ATCOM!
</content>
</sms>
-----------------------------------------------------------------------------------------------------------------
Please copy the bulksms.xml content to outgoing file, run the command: cp bulksms.xml
outgoing/
www.atcom.cn
Sendsms(dahdi/1,13728737752,Welcome
to
ATCOM)
on
15
Need help?
Do you have a question about the AX-4G and is the answer not in the manual?
Questions and answers