[asterisk-users] Simple Time of Day Branching problem

James Hankins jim at allpointsmediaworks.com
Tue Sep 15 08:25:10 CDT 2009


Thanks Doug,

Very helpful.  That was going to be my next attempt.  I'm wondering if  
the & is not supported in 1.4.2 dunno.  But this will work, thanks for  
the assist!

Jim


On Sep 15, 2009, at 8:25 AM, Doug Lytle wrote:

> Jim Hankins wrote:
>>>>
>>>> exten => 345,1,Answer()
>>>> exten => 345,n,GotoIfTime(10:00-17:00|tue&thu&sat|*|*?open,345,1)
>>>> exten => 345,n,GotoIfTime(10:00-19:00|wed&fri|*|*?open,345,1)
>>>> exten => 345,n,Playback(afterhours)
>>>> exten => 345,n,Hangup()
>>>>
>>>>
>
> exten => 345,1,Answer()
>
> ; *******************
> ; * 10am to 5pm schedule
> ;********************
> exten => 345,n,GotoIfTime(10:00-17:00|tue|*|*?open,345,1)
> exten => 345,n,GotoIfTime(10:00-17:00|thu|*|*?open,345,1)
> exten => 345,n,GotoIfTime(10:00-17:00|sat|*|*?open,345,1)
>
> ; *******************
> ; * 10am to 7pm schedule
> ;********************
> exten => 345,n,GotoIfTime(10:00-19:00|wed|*|*?open,345,1)
> exten => 345,n,GotoIfTime(10:00-19:00|fri|*|*?open,345,1)
> exten => 345,n,Playback(afterhours)
> exten => 345,n,Hangup()
>
> Or you could make a database entry via a cron job and check for that
> entry to see if it's after hours.
>
> Doug
>
> -- 
>
> Ben Franklin quote:
>
> "Those who would give up Essential Liberty to purchase a little  
> Temporary Safety, deserve neither Liberty nor Safety."
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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