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