AXE2G4AN User Manual
www.atcom.cn
Email: [email protected]
15
Chapter 7 Sending and Receiving SMS
There are two ways for users to send SMS.
1. Sending SMS by asterisk CLI command directly.
In the following example, it sends a message to 13743211234 using the first channel:
centos6*CLI> gsm send sms 1 13743211234 Welcome to ATCOM
Usage: gsm send sms <span> <number> <sms>
Send a sms on <span> <number> <sms>
For example, users can send out via the 1, 3, 5, or 7 channels.
2. Sending bulk SMS
Before sending the SMS, please start Asterisk. Users can edit a *.xml file under the
“/var/spool/asterisk/” file as the following format, and 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
/var/spool/asterisk/xmlsms/
3. The Format of the *.xml file
*.xml file name: customer can rename the file.
Receiver: add the destination phone number, one line for one destination phone number, the
example above add two destination phone numbers.
Channel: choose the GSM channel by which the system send the SMS out.
Content: input or paste the SMS content to send out.