[Asterisk-Users] Hotel wake-up

Nicholas Bachmann asterisk at not-real.org
Sun Feb 29 11:21:17 MST 2004


Bob Knight wrote:

> Nicholas Bachmann wrote:
>
>> Bill Michaelson wrote:
>>
>>> Anybody know how to implement a hotel wake-up call feature with *?
>>
>>
>>
>> It seems like it could be accomplished with an AGI and a script that 
>> wrote call files.  Have the AGI prompt for the wakeup time (or have a 
>> web interface for a front-desk person do it) and write a file to a 
>> directory indicating when the wakeup call should occur.  Then, have a 
>> Perl script that goes through those files and generates a call file 
>> in /var/spool/asterisk/outgoing at the right time.  Call files make 
>> retries simple as well, allowing you to space them and choose how 
>> many you want.  If you wanted to get fancy, you could use a database 
>> (perhaps with triggers?), voice recognition, or mp3s for the user to 
>> wake up to. 
>
>
> Good old at job may be able to help with this (man at).

I thought about cron, but not about at, since I usually turn atd off on 
servers, but you're right, it would great here:

[root at asterisk root]# echo wakeup 1234 | at 6:30
        or in Perl
open(AT, "|at 6:30") or die "$!";
print AT "wakeup 1234";
close( AT);

Nick




More information about the asterisk-users mailing list