[asterisk-users] how to incorporate open hours

Sydney Web Hosting inbox at sydneywebhosting.com.au
Wed Jul 16 01:37:00 CDT 2008


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



_______________________________________________
-- 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




More information about the asterisk-users mailing list