Anybody know how to implement a hotel wake-up call feature with *? -- Bill Michaelson - COS, Incorporated - Software Development - bill@cosi.com Thanks for putting up with my spam filter!
On Sat, Feb 28, 2004 at 08:39:26PM -0500, Bill Michaelson wrote:> Anybody know how to implement a hotel wake-up call feature with *?I just wrote an AGI for it. I literally just got it working the day before yesterday, so it's not really 'pretty' yet. I also don't have all of the voice prompts I need, so it's a little rough there, too. I don't have time to go into more detail at the moment, but send me a message directly if you're interested... Rob -- Rob Fugina, Systems Guy robf@geekthing.com -- http://www.geekthing.com My firewall filters MS Office attachments. Psychoceramics: The study of crackpots.
Bill, tell us about your system! How many rooms, what kind of extension set in the rooms, number of "outside" lines, front desk capabilities, how you bill back tel charges to the room, etc. Have you worked-out the ratio of guests to outside lines? IVR? Do you use the directory function for guests? Wow, what a market this could be! Bill Michaelson wrote:> Anybody know how to implement a hotel wake-up call feature with *? >-- Michael Welter Introspect Consulting, Inc. Denver, Colorado +1 303 674 2575 mike@introspect.com www.introspect.com
On Sat, 2004-02-28 at 19:39, Bill Michaelson wrote:> Anybody know how to implement a hotel wake-up call feature with *?You could modify my callback script. It would require some pretty significant changes, but it's a good place to start. You can find it, and other scripts, (some good, some bad) at http://www.fnords.org/~eric/asterisk/ -- Eric Wieling <eric@fnords.org> BTEL Consulting
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. <Plug>If this sounds too complicated, email me off list; I could write this very inexpensively for you.</Plug> Nick
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). -- Bob Knight [-w] the work option bk@minusw.com 925-449-9163
I haven't figured out yet how to make * wait until the call in answered before playing a recording (without the recipient pressing #). Show application dial. Use option A -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Rob Fugina Sent: Sunday, February 29, 2004 6:16 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Hotel wake-up On Sat, Feb 28, 2004 at 11:03:41PM -0600, Robert Lawrence wrote:> I would be interested in the AGI Script. As for the voice prompts, I > am having Allison record some stuff for me on Monday, including > prompts for such a wake up system, that I plan to donate back to the > Asterisk community.Sound great!> Will these prompts be compatible with your script?Yes, absolutely! In brief, the AGI script handle the prompting, and creates the call file in a 'pending wakeup calls' directory. The name of the call file is formateed as HHMM.EXTEN.call. The call scheduling is handled by running the following via cron every minute: /bin/mv $PENDING/$(/bin/date +%H%M).*.call $OUTGOING/ 2>/dev/null I haven't figured out yet how to make * wait until the call in answered before playing a recording (without the recipient pressing #). Also, I was thinking of adding a snooze feature. This would require the outgoing wakeup call to run another AGI that says something like "to acknowlege the wakeup call, press 1; to snooze 5 minutes, press 2; to snooze 15 minutes, press 3". I'll cleanup the AGI and post in the next 24 hours... Rob -- Rob Fugina, Systems Guy robf@geekthing.com -- http://www.geekthing.com My firewall filters MS Office attachments. paranoia: believing this tagline is about you. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
That's right, my mistake. Forgot you were using a call file. Sorry :) Definitely looking forward to previewing your script though! Good luck. -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Rob Fugina Sent: Sunday, February 29, 2004 6:52 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Hotel wake-up On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:> > I haven't figured out yet how to make * wait until the call in > answered before playing a recording (without the recipient pressing#).> > Show application dial. > > Use option AUnfortunately, there doesn't seem to be anywhere to put options such as that in a call file. I've tried several things, but haven't found the majick yet... Rob -- Rob Fugina, Systems Guy robf@geekthing.com -- http://www.geekthing.com My firewall filters MS Office attachments. !edis gnorw eht morf siht ta gnikool era uoY _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
I never tried out call files so I just tried one out and when I tried it as soon as I picked up on my cell phone the audible file started to play and didn't require a # to start playing. I wonder why yours operates differently -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Matthew B Marlowe Sent: Sunday, February 29, 2004 6:58 PM To: asterisk-users@lists.digium.com Subject: RE: [Asterisk-Users] Hotel wake-up That's right, my mistake. Forgot you were using a call file. Sorry :) Definitely looking forward to previewing your script though! Good luck. -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Rob Fugina Sent: Sunday, February 29, 2004 6:52 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Hotel wake-up On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:> > I haven't figured out yet how to make * wait until the call in > answered before playing a recording (without the recipient pressing#).> > Show application dial. > > Use option AUnfortunately, there doesn't seem to be anywhere to put options such as that in a call file. I've tried several things, but haven't found the majick yet... Rob -- Rob Fugina, Systems Guy robf@geekthing.com -- http://www.geekthing.com My firewall filters MS Office attachments. !edis gnorw eht morf siht ta gnikool era uoY _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users