[asterisk-users] Feature Request: GotoIfTimeWithOffset

Barry Miller asterisk-users at notanet.net
Thu Dec 17 20:47:33 CST 2009


On Fri, Dec 18, 2009 at 12:23:22AM +0100, Olivier wrote:
> 
> Today, this IVR is using function AEL GotoIfTime in several places.
> The problem is if it's 11pm at the moment I'm testing this IVR, I can't
> nicely test the 9am or 2pm branch.
> 
> Suggestions ?

How about setting, say, LUNCHTIME to "23:00-23:59" and using
GotoIfTime(${LUNCHTIME},...) until you're ready to go live?

I try to do this when there are multiple GotoIfTime's referencing
the same interval in a dialplan.  Companies change their minds about
things like lunch times, working hours, shift changes all the time,
and this makes it easier to change down the road.

--Barry



More information about the asterisk-users mailing list