Skip to content

Asterisk and AstLinux Wake Up Call AGI Script

by Jon on October 21st, 2014

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 ( and made some improvements to. I have tested it pretty well but there could still be some issues.

AstLinux & Asterisk Wake Up Call

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/
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.

From → Linux, VOIP

One Comment
  1. Lam permalink

    Hi, I make follow your guide but It not work.
    When I call 999, I say “googbye” only. Please help.

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

%d bloggers like this: