Chapter 7 Sending And Receiving Sms - ATCOM AX4G User Manual

Hide thumbs Also See for AX4G:
Table of Contents

Advertisement

AX4G User Manual

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 13728701234 using the first channel:
localhost*CLI> sendsms dahdi/1 13728737752 Welcome to ATCOM
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
outgoing/
3. The Format of the *.xml file
*.xml file name: customer can name whatever name you want.
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. For one
AX-2G4A, it should be 1 or 2.
Content: input or paste the SMS content that you need to send out.
4. Check the SMS result
1)
Users can get the following output in the asterisk CLI.
If users can see the characters: "result=1", it means that the SMS has been sent out
successfully; If users get "result=-1", it means that the SMS fails to send out.
www.atcom.cn
Email: support@atcomemail.com
14

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AX4G and is the answer not in the manual?

Questions and answers

Table of Contents