Asterisk wrote:
If I have different opening hours on different days, can I accomodate that in a single gotoiftime, or will I need to filter them out one by one ?

For example, our hours are Mon-Fri 9:00-17:00 and Sat 09:00-13:00

can this be done something like

GotoIfTime([9:00-17:00|mon-fri][9:00-13:00|sat]|*|*?open,s,1) or something like that, or do I have to do:

GotoIfTime(9:00-17:00|mon-sat]|*|*?openweek,s,1)

[openweek]
s,1,GotoIfTime(9:00-13:00|sat|*|*?opensat,s,1)

It gets really complicated if you are open different hours of each day of the week :(

Julian

Short answer is no - you have to use multiple GotoIfTime statements. I would simply put them one right after the other in one extension - your initial 's' extension.


I like your syntax for letting GotoIfTime process multiple times - really good idea. Maybe post a feature request on the bug tracker and myself or some * developer will implement it - don't count on a fast response though. Shouldn't be a hard one, just provide plenty of syntax examples on the bug tracker.

-Chris

--
Christopher L. Wade                     Unistar-Sparco Computers, Inc.
Senior Systems Administrator                            dba Sparco.com
Email: [EMAIL PROTECTED]                             7089 Ryburn Drive
Phone: (901) 872 2272 / (800) 840 8400            Millington, TN 38053
Fax:   (901) 872 8482                                              USA

        ~ Everyone's brain started out as a single cell. ~

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to