<br><br><div class="gmail_quote">2009/12/18 Barry Miller <span dir="ltr"><<a href="mailto:asterisk-users@notanet.net">asterisk-users@notanet.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, Dec 18, 2009 at 12:23:22AM +0100, Olivier wrote:<br>
><br>
> Today, this IVR is using function AEL GotoIfTime in several places.<br>
> The problem is if it's 11pm at the moment I'm testing this IVR, I can't<br>
> nicely test the 9am or 2pm branch.<br>
><br>
</div>> Suggestions ?<br>
<br>
How about setting, say, LUNCHTIME to "23:00-23:59" and using<br>
GotoIfTime(${LUNCHTIME},...) until you're ready to go live?<br>
<br>
I try to do this when there are multiple GotoIfTime's referencing<br>
the same interval in a dialplan. Companies change their minds about<br>
things like lunch times, working hours, shift changes all the time,<br>
and this makes it easier to change down the road.<br></blockquote><div><br>You're right.<br><br>In my case I've got a dozen of opening and closing times :<br>9h00 - 12h00 for service1<br>9h00 - 13h00 for service2<br>
...<br><br>When 2 services MUST share the same opening and closing times, then your suggestion is very interesting.<br>When 2 services HAPPEN to share the same opening and closing times, IMHO, keeping separate variables seems more adapted.<br>
<br>What makes me express this Feature Request is that, for testing purpose, changing 10 time variables without any mistake is possible but difficult : having a separate offset parameter you can change at will, seems more secure and easy.<br>
<br><br>Chad's suggestion (focusing on an offset for hours) is very smart as it relies on existing dialplan functions and serves my original goal (create artificial conditions for testing without changing a line in dialplan after testing).<br>
<br>I will also patch my Asterisk source code and report here, my experience to Tilghman's patch.<br><br>Thanks for all<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
--Barry<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>