[Asterisk-Users] after hours
Troy Settle
troy at psknet.com
Fri Dec 26 11:01:01 MST 2003
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
--
Troy Settle
Pulaski Networks
http://www.psknet.com
540.994.4254 ~ 866.477.5638
Pulaski Chamber 2002 Small Business Of The Year
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of
> mick at netexpress.com.au
> Sent: Thursday, December 18, 2003 3:27 AM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] after hours
>
> When setting
>
> include => daytime|9:00-21:00|mo-fri|*|*
>
> How does this determine what is different between 9 AM and 9 PM
>
> And after hours ???
>
> I want different hours on Saturday and Sunday
>
> And a different welcome message after hours
>
> Any help appreciated
>
> Regards Mick
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list