Hi All, I have got my voice menus setup. "open hours" and "after hours". What do I have to code in the main menu to do the following. If between the hours of 9am - 5pm go to "open hours" All other hours go to "after hours" I've read all of the docs but don't quite understand it? Cheers David. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080716/5836ff48/attachment.htm
> What do I have to code in the main menu to do the following. > If between the hours of 9am - 5pm go to "open hours" > All other hours go to "after hours"You can do something like: exten => <main switch no>,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn)
OK Ive done this. exten=7000,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) 7000 is the extension of "main menu" Where do I put the reference to "open hours menu" in the statement above. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Lee, John (Sydney) Sent: Wednesday, 16 July 2008 3:02 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] how to incorporate open hours> What do I have to code in the main menu to do the following. > If between the hours of 9am - 5pm go to "open hours" > All other hours go to "after hours"You can do something like: exten => <main switch no>,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
> exten=7000,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) > > 7000 is the extension of "main menu" > > Where do I put the reference to "open hours menu" in the statementabove.>exten=7000,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) [...code for office close...] exten => 7000,n(rcl_off_opn), ... ; code for office open Actually, you should consider the extension a) able to detect public holidays b) able to detect a night switch which is used to override the normal operations hours.
Do you do contract work? -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Lee, John (Sydney) Sent: Wednesday, 16 July 2008 4:08 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] how to incorporate open hours> exten=7000,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) > > 7000 is the extension of "main menu" > > Where do I put the reference to "open hours menu" in the statementabove.>exten=7000,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) [...code for office close...] exten => 7000,n(rcl_off_opn), ... ; code for office open Actually, you should consider the extension a) able to detect public holidays b) able to detect a night switch which is used to override the normal operations hours. _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
> Do you do contract work?Thanks for making my day :-) I am sure there are lots of much more experienced Asterisk people out there who will respond to your email.
Lee, John (Sydney) wrote:>> exten=7000,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) >> >> 7000 is the extension of "main menu" >> >> Where do I put the reference to "open hours menu" in the statement >> > above. > > exten=7000,n,GotoIfTime(9:00-17:00,mon-fri,*,*?rcl_off_opn) > > [...code for office close...] > > exten => 7000,n(rcl_off_opn), ... ; code for office open > > Actually, you should consider the extension a) able to detect public > holidays b) able to detect a night switch which is used to override the > normal operations hours. > > >Agreed - we generally set db keys in the asterisk db to look after settable night switches. http://www.voip-info.org/wiki/index.php?page=Asterisk+func+db later, PaulH