How are you passing the timezone info to the dialplan? Are you using an offset? Are you using the timezone name? These are important questions. If you use the timezone name then the strftime_tz API command will let you compute the local time for the given time zone using the time zone database, including any known DST values. From there it's just some basic string manipulation and calculations. Note: The dialplan TOD conditions do not account for TZ so you'd need to do your own calculations. It's completely doable, though, as long as there is a valid TZ name supplied somehow.<div>
-MC<br><div>
<br></div><div><br><br><div class="gmail_quote">On Sat, Nov 5, 2011 at 9:12 AM, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">The general thing is a GUI that allows users to create a time condition. If you're running an ITSP, rather than a PBX for one company, then your customers will likely be spanning across time zones.<div>
It's one thing to normalize the times to your local time zones.. But that doesn't take DST into account.</div>
<div>So basically, the best way would seem to be to pass the time zone to the condition that evaluates TOD.</div><div>When I looked at this a while ago, I couldn't figure out how to do it..</div><div><br clear="all">
<font color="#888888">
<div dir="ltr">
<span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-size:small">-Avi</span></span></div></font><div><div></div><div>
<br><br><div class="gmail_quote">On Fri, Nov 4, 2011 at 7:20 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you expand upon this question a bit? My guess is that "anything's possible" but I'd like to know more about what you're doing before making any suggestions.<span><font color="#888888"><div>
<br></div></font></span><div><span><font color="#888888">-MC</font></span><div><div><br><br><div class="gmail_quote">
On Thu, Nov 3, 2011 at 2:11 AM, Spencer Thomason <span dir="ltr"><<a href="mailto:spencer@5ninesolutions.com" target="_blank">spencer@5ninesolutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
Has anyone found an elegant solution to using time conditions with multiple locations? For example suppose you have a multi tenant system with time conditions, is there any way to set the call time zone on a per call basis?<br>
<br>
Thanks,<br>
Spencer<br>
<br>
<br>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div></div>
<br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div></div>
<br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div>