User Tools

Site Tools


delivery_notifications

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

delivery_notifications [2016/06/14 16:35] (current)
Line 1: Line 1:
 +===== How to enable delivery notifications on sent messages =====
 +This article illustrates how to enable the Delivery Reports (DLR) on outgoing SMS.
 +\\ These are particular messages that your air carrier will send you back to notify the delivery status of the SMS you just sent, and it is a very common feature if you need to be sure that it has reached the destination.
  
 +Firstly you will have to place the script //​report.sh//,​ downloadable [[http://​www.smsfoxbox.it/​fb/​report.sh.tar.tar|here]],​ inside of the folder// /​etc/​sms/​scripts/​ //. Remember to make the file executable, giving it right permissions.
 +\\ Moreover, you have to create a new folder in// /​mnt/​flash/​spool/​ //called //report//. Its permissions should be the same of the others in that position.
 +
 +Then, the Eventhandler needs to be modified inserting these new rows:
 +<​code>​
 +if [ "​$1"​ = "​REPORT"​ ]; then 
 +    /​etc/​sms/​scripts/​report.sh
 +fi 
 +</​code>​
 +
 +Finally you have to edit the SMS engine configuration,​ in order to manage the DLRs. This is done by adding the middle lines between the two shown (that should be already present):
 +<​code>​
 +rtscts = no
 +report = yes
 +routed_status_report_cnma = no
 +cs_convert = yes
 +</​code>​
 +
 +Just for FoxBox Racks, you have to add also the parameter:
 +<​code>​
 +init = AT+CNMI=2,​2,​2,​1,​0
 +</​code>​
 +
 +The procedure is now complete. After a system reboot, each time you will send an SMS you should receive a notification message in the folder// /​mnt/​flash/​spool/​report/​ //with the same name as the sent message. If this doesn'​t happen, probably the delivery failed.
delivery_notifications.txt ยท Last modified: 2016/06/14 16:35 (external edit)