- Schedule or delete a single wake-up call
- No means to edit an entry
- No CRON job or daemon needed, scheduling works by .call file timestamp
Ubuntu 13.10 - After upgrading to Ubuntu 13.10 wakeup calls stopped working, they ended up being created for 20 hours into the future... The fix was to set the timezone in /etc/php5/cli/php.in
Updated 2008-Nov-23 Andy Wysocki awysocki -at- absoftware dot_here com
- WakeUp Call program set the time up to 23:59 minutes in the future
- Lots of error checking to make sure its done correctly
- Some fun prompts if the user pressed the wrong DTMFs
- allow DTMF'ing over the prompts, to speed up the process
- Allow for # key option when entering time. ie: 700# or 0700 both now work
- Tested with Asterisk 1.6.0.1
- Some of the FXO FXS devices use *77 to block the last caller ID so you may need to change the example extension number
- Option to prompt for AM/PM all the time or Military time and not prompt, or the mixed mode.
- Operator mode. List the extensions that can act as a wake up operator to set wake up's for other extensions
- Changed the call to AGI(wakeup.php) from the agi,wakeup.php
NOTE: It was suggested that the TOUCH and MOVE command in the PHP script be swapped. So the move is done first then the touch. This might work some of the time but there is a chance that Asterisk will pick up the CALL FILE before the touch command can be run on it. The betst way to do is to have the TMP directory be on the same physical drive as the Asterisk OUTGOING directory. This way when the move command is run it just moves the pointer and the file date and time stay the same. If the tmp directory is on a different physical drive then the file is copied and the date and time stamp are updated, asterisk could grab the file before touch is called.
I made a tar file http://qod.com/wakeup.2.0.tar
Ver 2.0 ->
Go Back to: Asterisk tips and tricks - Asterisk AGI
Here is the README from the TAR file:
2008/06/25 - Version 2.0
This code was tested with ASTERISK Rel 1.4.11
1 - Copy the wakeup.php file into
the /var/lib/asterisk/agi-bin
make sure the PHP file is executable. You might have to run DOS2UNIX against it since I'm lazy and use my windows editor on it
2 - Next update your extensions file to include an extension to call to schedule your wakeup calls.
exten => 77,1,AGI(wakeup.php)
exten => 77,n,Hangup
3 - Reload your extensions table in asterisk with "dialplan reload" or stop and start asterisk.
When you call into Extension 77 you should be prompted for all your wakeup call time. This program uses the standard and additional sound files. So nothing else should be needed.
(Extra Credit:)
If you want your wakeup calls to annoy you where you can not go back to sleep until you answer a match question. Jon Radon gave me this PERL script you can use to have it quiz you with a match question to make sure you are awake.
Just uncomment the parm_application and parm_data lines for wakeconfirm.agi
Make sure you have the AGI.pm file loaded. I got a copy from http://asterisk.gnuinter.net/
CHANGES:
2.0 - Jun 25, 2008
Added in an operator mode. So one or many extensions can create wakeup calls for other
extensions. ...