Asterisk and AstLinux Wake Up Call AGI Script
I recently added a wake up call to my AstLinux system at home so I could use it as an alarm clock I wouldn’t ignore. I downloaded a script written by Jonas (http://www.voip-info.org/wiki/view/Asterisk+tips+Wake-Up+Call+Perl) and made some improvements to. I have tested it pretty well but there could still be some issues.
First download the script to the /var/lib/asterisk/agi-bin/ directory, change the filename and make it an executable.
cd /var/lib/asterisk/agi-bin/ wget http://jonathanmanning.com/wp-content/uploads/2014/10/wake_up_call.agi_.txt mv wake_up_call.agi.txt wake_up_call.agi chmod +x wake_up_call.agi
Then your extensions need to dial the script by putting the following code in the default context of the extensions.
exten => 999,1,Answer exten => 999,n,NoOp(wakeup-call-dialed) exten => 999,n,AGI(wake_up_call.agi) exten => 999,n,Hangup
Finally dial 999 or whatever you made the context from an extension and it will walk you through a series of prompts. Press 1 to create a new wake up call, then enter the time you would like such as 0630. You will then be asked if this is AM or PM and it will create the wake up call.