C C C C hapter
hapter
hapter 6 6 6 6 Sending
hapter
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
localhost*CLI>
localhost*CLI>
localhost*CLI> sendsms
sendsms dahdi/1
sendsms
== 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>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 cp cp cp bulksms
outgoing/
outgoing/
outgoing/
outgoing/
www.atcom.cn
Sending
Sending
and
and
Sending and
and Receiving
dahdi/1
1372873
13728737 7 7 7 752
752
Welcome
Welcome to to to to ATCOM
dahdi/1
dahdi/1 1372873
1372873
752 Welcome
752
Welcome
Sendsms(dahdi/1,13728737752,Welcome
Receiving
Receiving
SMS
SMS
Receiving SMS
SMS
ATCOM
ATCOM
ATCOM
to
ATCOM)
on
bulksms
.xml
bulksms.xml
bulksms
.xml
.xml
17
Need help?
Do you have a question about the AX-2G4A and is the answer not in the manual?
Questions and answers