I have several trunks registered, Voipfone, Voicehost and Sipgate to name a few. I have had issues with the Voipfone trunk where everything appears to work ok for a few days then out of nowhere inbound calls fail. The caller will hear one ring then the engaged tone. :-/
I have setup the following script to run as a cron job every minute - it will watch for the failure and reload asterisk to resolve it. Just follow the instructions! :P
#!/bin/bash asterisk -rx "sip show registry" | grep -q "No Authentication" if [ $? == 0 ]; then amportal a r fi
Next we need to set the permissions of the file we just created, to do this type:
chmod +x /home/pi/scripts/asterisk-reload-watchdog.sh
sudo crontab -e
*/1 * * * * /usr/bin/sudo /home/pi/scripts/asterisk-reload-watchdog.sh >> /home/pi/scripts/asterisk-reload-watchdog.log
- Appreciate my support? Feel free to buy me a beer.
- Voipfone are offering you the chance to trial their VoIP service for free for 30 days. Sign me up!
- Sign up for a Dropbox account using my referral link and get an extra 500 MB of bonus space. Sign me up!
- UK's #1 Reliable VoIP Telephone System Solutions. Hosted PBX, SIP Trunking and Toll Free numbers. Free Trial. 14 Days. Try Now! — VoIPLine Telecom