[asterisk-users] Dialplans & Holiday Dates

Cary Fitch caryf at usawide.net
Thu Dec 31 10:04:07 CST 2009


Perhaps make the dates a database entry?  The fixed dates would stay the
same each year and you would adjust only the floating dates.

Or, there are really few holidays in the year. (Unless you are a government
or a bank)  Simple intercept code in the dialplan would handle most
businesses.  

"Just" write 5-10 cloned lines of date traps in the code to pass the calls
or send them to a "closed" handler.  That is less disk/system intensive that
doing a disk access, except they would likely be in cache anyway.

Cary Fitch



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Myles Wakeham
Sent: Thursday, December 31, 2009 9:46 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Dialplans & Holiday Dates

I have a working dialplan for our phone system with Mon-Fri, business 
hours identification, etc.  But what I'm lacking right now is support 
for company holiday dates.

What I'd like to do is to create a database of these dates and just 
update them as new years rollover.

I suspect others have done this sort of thing with Asterisk before, but 
I've not found any resources so far.

Does anyone have a suggestion as to how to approach this?  I'm running 
Asterisk 1.4.2.

Thanks
Myles
-- 
=======================
Myles Wakeham
Director of Engineering
Tech Solutions USA, Inc.
Scottsdale, Arizona  USA
http://www.techsolusa.com
Phone +1-480-451-7440


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list