[asterisk-users] how to incorporate open hours

Lee, John (Sydney) John.Lee at compuware.com
Wed Jul 16 01:07:46 CDT 2008


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





More information about the asterisk-users mailing list