[Asterisk-Users] GotoIfTime Discrete weekdays (Mon,Wed,Fri)

Andrew Furey andrew.furey at gmail.com
Fri Feb 18 18:58:56 MST 2005


>         Does anyone know if there is a way to get GotoIfTime to accept
> individual weekdays instead of a range?
> 
>         Example Dr. Office is closed on Thursday and Sunday.

Think the easiest option would be to use two statements:

exten => s,1,GotoIfTime(*|thu|*|*?closed,s,1)
exten => s,2,GotoIfTime(*|sun|*|*?closed,s,1)
exten => s,3,[restofdialplan]

Andrew

-- 
Linux supports the notion of a command line or a shell for the same
reason that only children read books with only pictures in them.
Language, be it English or something else, is the only tool flexible
enough to accomplish a sufficiently broad range of tasks.
                          -- Bill Garrett



More information about the asterisk-users mailing list