Troy Settle wrote:
They told me not to feed the trolls, but here goes anyways.

The difference between 9AM and 9PM is 12.

12 + 9 = 21

So, if you want 9PM, use 21:00 (which you cleverly did include in the
example you asked about).

Now, as for different schedules on different days, here's what I have:

; First, let's do the holidays
include => holiday|*|*|1|jan
include => holiday|*|*|31|may
include => holiday|*|*|4|jul
include => holiday|*|*|6|sep
include => holiday|17:00-23:59|*|24|nov
include => holiday|*|*|25|nov
include => holiday|17:00-23:59|*|24|dec
include => holiday|*|*|25|dec
include => holiday|17:00-23:59|*|31|dec

; these are the days we're open

include => day|09:00-19:59|mon-fri|*|*
include => day|10:00-14:59|sat|*|*

; if we're not open, we're closed (duh!)

include => night

Thank you, Troy! Now documented on
http://www.voip-info.org/tiki-index.php?page=Asterisk+tips+openhours

/Olle

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to