Ronald Hartmann
2005-Feb-18 14:45 UTC
[Asterisk-Users] GotoIfTime Discrete weekdays (Mon,Wed,Fri)
Good Day list, 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. Ron
Andrew Furey
2005-Feb-18 18:58 UTC
[Asterisk-Users] GotoIfTime Discrete weekdays (Mon,Wed,Fri)
> 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