Choose trunk based on time condition

How do I program following in freePBX?

I want to choose a trunk, based on a time condition:

[code:1]
exten => _0[12356789].,1,GotoIfTime(19:00-08:00|mon-fri||?telenet)
exten => _0[12356789].,n,GotoIfTime(|sat-sun||*?telenet)
exten => _0[12356789].,n,Dial(SIP/vyke-out/0032${EXTEN:1})
exten => _0[12356789].,n(telenet),Dial(ZAP/4/${EXTEN})
exten => _0[12356789].,n,Congestion
[/code:1]

In ‘Time conditions -> Destination if time matches’, I can’t find any trunks.

Henk

doesn’t exist today. In the future we will probably add time conditions to routes (which you can put what ever trunk under a route you want). in the mean time, you could do it with some custom code.

take a look at this for some ideas:

http://freepbx.org/trac/wiki/TimeConditionsChange

[quote=“p_lindheimer”]doesn’t exist today. In the future we will probably add time conditions to routes (which you can put what ever trunk under a route you want). in the mean time, you could do it with some custom code.

take a look at this for some ideas:

http://freepbx.org/trac/wiki/TimeConditionsChange[/quote]

Thanks…

I’m really hoping this feature will be implemented soon. :slight_smile:

Rgds
Henk