I would use a cron job to set the number in the AstDB such as

 

Asterisk –rx “database add weeklynumber 3055551212” every Sunday PM, Monday AM or  whatever works for you

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Brummer
Sent: Monday, August 07, 2006 12:15 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] By week extension dialing

 

Hello,

I have been given the task of setting up an extension in asterisk that would dial an outside number based on the week.  For example:

 

Week 1 - Dial extension #1

Week 2 - Dial extension #2

Week 3 - Dial extension #1

Week 4 - Dial extension #2

etc...

 

I found the function GotoIfTime but I'm not sure how to apply it to weekly (instead of mapping out the actual days, 1-7, 8-15, etc).

 

Any ideas?

 

Thank you,

Dan

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to