AXE2G4AN User Manual
www.atcom.cn
Email: [email protected]
16
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.
For example:
localhost*CLI>
[Sep 9 16:08:23] NOTICE[3593]: pbx_spool.c:166 apply_sms_outgoing: pbx_spool find called
name=15012871900
[Sep 9 16:08:23] NOTICE[3593]: pbx_spool.c:166 apply_sms_outgoing: pbx_spool find called
name=13728731752
-- Attempting call on sms/ for application queuesms(dahdi/1,15012871900&13728731752,hello! welcom
to ATCOM!) (Retry 1)
-- Launching queuesms(dahdi/1,15012871900&13728731752,hello! welcom to ATCOM!) on
type/data-00000001
[Sep 9 16:08:23] NOTICE[3823]: pbx_spool.c:531 attempt_thread: Call completed to sms/
-- Launching DoSms(15012871900&13728731752 hello! welcom to ATCOM!) on DAHDI/1-1
[Sep 9 16:08:27] NOTICE[3825]: chan_dahdi.c:18205 sms_queue_send: sessionid=1315555703.3
channum=1 time=2011/09/09 16:08:27 send to called=15012871900
result=1
[Sep 9 16:08:31] NOTICE[3825]: chan_dahdi.c:18205 sms_queue_send: sessionid=1315555703.3
channum=1 time=2011/09/09 16:08:31 send to called=13728731752
result=1
-- Hungup 'DAHDI/1-1'
2)
Check the SMS status with log file
Users can also check SMS result by checking the “
/var/log/asterisk/sms/sendsms
” directory.
The system will generate a log file each day if the SMS is sent successfully or not.
For example,
sendsms_2013-12-02.log
It is created on Dec 02th, 2013, which writes down all the sent SMS results on Dec 02th,
2013.
5. Receiving SMS
When one SMS is received, the system will generate a file for storing the SMS under
“
/var/log/asterisk/sms/recvsms
” directory.
The format of the file name: recvsms_channel numbecell phone number.log
The format of SMS content: channo:channel >>date time|+cell phone number| SMS content