User Tools

Site Tools


wake_up_call

Differences

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

Link to this comparison view

wake_up_call [2016/06/14 18:35] (current)
Line 1: Line 1:
 +===== Make a wakeup call after a sent message =====
 +This how-to explains how to set up your Foxbox to receive a miss-call everytime an SMS is sent.
  
 +To configure the device you just need to refer to two very known configuration files. ​
 +\\ The first thing is to modify the //​Eventhandler//,​ in order to launch the new procedure everytime an SMS is sent, adding these rows under 'if [ "​$1"​ = "​SENT"​ ]; then':
 +<​code>​
 +if [ "​$2"​ != "/​mnt/​flash/​spool/​sent/​dial.txt"​ ]; then
 +    echo "From: dialing"​ > /​mnt/​flash/​spool/​outgoing/​dial.txt
 +    echo "To: #​YOURNUM#"​ >> ​ /​mnt/​flash/​spool/​outgoing/​dial.txt
 +    echo "​Voicecall:​ true" >> ​ /​mnt/​flash/​spool/​outgoing/​dial.txt
 +    echo ""​ >> /​mnt/​flash/​spool/​outgoing/​dial.txt
 +    echo "TONE: 1,2" >> /​mnt/​flash/​spool/​outgoing/​dial.txt
 +fi
 +</​code>​
 +where #YOURNUM# is the phone number to contact.
 +
 +:id1: In this way the eventhandler will do the wakeup call for every message sent, if you are interested in the received ones just add this code under 'if [ "​$1"​ = "​SENT"​ ]; then'.
 +
 +Now, the second and last configuration has to be done in the SMS engine. In order to activate this feature on the modem we will add this row to the "Modem properties":​
 +<​code>​
 +phonecalls = yes
 +</​code>​
 +
 +The configuration is now complete! Everytime a message is sent, the mobile phone associated to #YOURNUM# will receive a wakeup call.
wake_up_call.txt ยท Last modified: 2016/06/14 18:35 (external edit)