Multiple time conditions to a simple phone number

This is my plan…, one phone number looking at custom app which has 3 time conditions that state where the call will go if time matches condition or if it doesn’t match condition if they do or dont they will go to a ring group…

The question is…, where can I find information on how to do this…, or if anyone have done it…, how? do what?, the custom app!, everything else I know how…, but as far as ( if condition x = yes goto 1 if other goto 2 if null goto y ) that is basiccly all I need to know how to do on this time condition custom app…

Hi,

Do you mean like GotoIfTime()

voip-info.org/wiki-Asterisk+cmd+GotoIfTime

Sean Browne
Cardiff IT Support Ltd
0800 011 2931
www.cardiffitsupport.com

Here is an example;

  1. If it is the 25th April
  2. If it is 8:30AM To 5:00PM Monday to Friday
  3. If the above two don’t match

[condition_1]
exten => 1,1,SayDigits(111)
exten => 2,HangUp()

[condition_2]
exten => 1,1,SayDigits(222)
exten => 2,HangUp()

[condition_3]
exten => 1,1,SayDigits(333)
exten => 2,HangUp()

[incoming]
exten => s,1,Answer()
exten => s,2,GotoIfTime(||25|Apr?condition_1,1,1)
exten => s,3,GotoIfTime(8:30-17:00|mon-fri||?condition_2,1,1)
exten => s,4,Goto(condition_3,1,1)
exten => s,5,Congestion()