Product guide
www.atcom.cn 17
Chapter 6 Send SMS
There are two ways for users to send SMS by ATCOM AX-2G4A.
1. Sending SMS by asterisk CLI command directly.
In the following example, it sends a message to 13728737752 using the first channel:
localhost*CLI> sendsms dahdi/1 13728737752 Welcome to ATCOM
== Using SIP RTP CoS mark 5
-- Launching Sendsms(dahdi/1,13728737752,Welcome to ATCOM) on
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 your 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>13728731752</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/