[Asterisk-Users] GotoIfTime help

Osvaldo Mundim osvaldo at ilinksolutions.com
Fri Dec 19 12:08:04 MST 2003


Hey All,

I need to forward an extension to an other depending on the current 
time but I could not get it done with GotoIfTime.

What I'm trying to do is ring on the extension 1 if time is between 
8:00AM and 2:00PM and on extension 2 if is between
2:01PM 11:00PM.

exten => 111,1,GotoIfTime(8:00-14:00|*|*|1-12?333)
exten => 111,2,Dial(${Person1})
exten => 111,3,Dial(Hangup)

exten => 333,1,Dial(${Person2})
exten => 333,2,Dial(Hangup)

When I ring on the extension 111, the call is not being forward to the 
extension 333..

And the extensions are all in the same context.

regards
Oz




More information about the asterisk-users mailing list