Wake-up call utility.
Introduction
This is a short howto for a php based wake-up call utility which was contributed to voip-info.
The files can be found here:
http://www.voip-info.org/tiki-index.php?page=Asterisk+tips+Wake-Up+Call+PHP
- The files (wakeup.php and wakeconfirm.agi) should be saved into in /var/lib/asterisk/agi-bin
- Make sure that wakeup.php is executable (chmod +x wakeup.php)
- Run dos2unix on wakeup.php (dos2unix wakeup.php)
- If you are running asterisk native sounds (the American voiceovers), make sure that you have the additional asterisk sounds installed (ATrpms have them - yum install asterisk-extra-sounds --enablerepo=atrpms)
- Create a custom-app with a span of internal in server-manager and name it whatever you want. Paste these lines in there (you can change the actual extension number to anything you like as long as it doesn't conflict with any existing extension):
Code:
exten => 77,1,agi,wakeup.php
exten => 77,n,Hangup
Finally, stop and start asterisk (use the stop/start button in globals panel).
And that should get the script going. The README file contains most of the information you need to get you on the road