<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I try both "tz-offset" (per tag) and
"tod_tz_offset" and it doesn't seem to have any effect can someone
please confirm that I'm doing the right thing and is someone else
using it successfully?<br>
Here is my test dialplan:<br>
<font color="#3333ff"><tt> <section name="dialplan"
description="Regex/XML Dialplan"></tt><tt><br>
</tt><tt> <context name="public"></tt><tt><br>
</tt><tt> <extension name="test"></tt><tt><br>
</tt><tt> <condition break="never"></tt><tt><br>
</tt><tt> <action application="set"
data="ringback=$${us-ring}"/></tt><tt><br>
</tt><tt> <action application="set"
data="timezone=America/New_York" inline="true"/></tt><tt><br>
</tt><tt> <action application="set"
data="tod_tz_offset=-4" inline="true"/></tt><tt><br>
</tt><tt> <action application="log" data="CRIT
${strftime_tz(America/New_York %b %d %Y %H:%M:%S)}"/></tt><tt><br>
</tt><tt> </condition></tt><tt><br>
</tt><tt> <condition tz-offset="-4" mon="9" mday="24"
minute-of-day="900-1200" break="on-true"></tt><tt><br>
</tt><tt> <action application="transfer" data="30
XML default" /></tt><tt><br>
</tt><tt> </condition></tt><tt><br>
</tt><tt> </extension></tt><tt><br>
</tt><tt> </context></tt><tt><br>
</tt><tt> </section></tt><tt><br>
</tt></font>I see the log logging the correct time, however the
second condition is never getting matched based on the
tod_tz_offset variable or tz-offset tag. if anyone can point me in
the right direction I will update the documentation.<br>
<br>
<br>
On 11/30/2011 7:10 AM, Avi Marcus wrote:<br>
</div>
<blockquote
cite="mid:CALNZuw=wYUrgL5SYttrR9=0U8iFq8ehz0f6ALU5s0Y67hAMBRg@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks Anthony!
<div><br>
</div>
<div>I update the wiki at <a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Tod" target="_blank">http://wiki.freeswitch.org/wiki/Tod</a> if
anyone else can test and confirm this feature (on git >
2011-11-08 / revision <span class="Apple-style-span"
style="font-family: sans-serif; font-size: 13px;
line-height: 19px; background-color: rgb(255, 255, 255); ">65a756643a45a9462270a83238a396d742b7103f)</span>
<div>
<br>
</div>
<div>The TOD doc page could be streamlined a bit, too..</div>
<div><br clear="all">
<div dir="ltr"><span
style="font-family:Verdana,Arial,Helvetica,sans-serif"><span
style="font-size:small">-Avi</span></span></div>
<br>
<div class="gmail_quote">On Tue, Nov 8, 2011 at 12:39 AM,
Anthony Minessale <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:anthony.minessale@gmail.com"
target="_blank">anthony.minessale@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I
looked into what the code would require and decided to
push a patch, now you get to test and document it.
<div><br>
</div>
<div>if you get the variable tod_tz_offset set on the
channel before it hits the dialplan extension in
question it will apply that offset to gmt so you can
set it to say, -6 for central time.</div>
<div><br>
</div>
<div>Note, you must have it set first so you either need
to use inline set or maybe it will work if you have
already defined it in your user directory.</div>
<div><br>
</div>
<div>also on a per-tag basis, you can do tz-offset attr
...</div>
<div>
<div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<br>
<div class="gmail_quote">On Mon, Nov 7, 2011 at
4:20 PM, Anthony Minessale <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:anthony.minessale@gmail.com"
target="_blank">anthony.minessale@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">on multi home you are
better off exploring xml_curl to do time of
day stuff, what you suggest would require some
new code for sure.
<div>
<br>
<br>
<div class="gmail_quote">
<div>
<div>On Mon, Nov 7, 2011 at 4:10 PM,
Michael Collins <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:msc@freeswitch.org"
target="_blank">msc@freeswitch.org</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div>
<div><br>
<div class="gmail_quote">
<div>On Mon, Nov 7, 2011 at 11:37
AM, Avi Marcus <span dir="ltr"><<a
moz-do-not-send="true"
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">
<div>
<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
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Note:
The dialplan TOD
conditions do not
account for TZ </span></blockquote>
</div>
<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>
</blockquote>
<div><br>
</div>
</div>
<div>No, the issue is a matter of
supply and demand. The skills
needed to add TZ directly into
the dialplan are in short
supply, whereas doing TZ stuff
manually in the dialplan is all
but trivial and does not require
C coding skills. Also, the
demand for TZ checking is
relatively low. </div>
<div><br>
</div>
<div>If it's really desired then a
bounty should be put up.</div>
<div><br>
</div>
<font color="#888888">
<div>-MC</div>
</font></div>
<br>
<br>
</div>
</div>
<div>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a moz-do-not-send="true"
href="http://www.freeswitch.org/"
target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true"
href="http://www.cluecon.com/"
target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a moz-do-not-send="true"
href="http://twitter.com/FreeSWITCH_wire"
target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a moz-do-not-send="true"
href="mailto:MSN%3Aanthony_minessale@hotmail.com"
target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com"
target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true"
href="http://irc.freenode.net"
target="_blank">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a moz-do-not-send="true"
href="mailto:sip%3A888@conference.freeswitch.org"
target="_blank">sip:888@conference.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:<a moz-do-not-send="true"
href="tel:%2B19193869900"
value="+19193869900" target="_blank">+19193869900</a><br>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a moz-do-not-send="true"
href="http://www.freeswitch.org/"
target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true"
href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a moz-do-not-send="true"
href="http://twitter.com/FreeSWITCH_wire"
target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a moz-do-not-send="true"
href="mailto:MSN%3Aanthony_minessale@hotmail.com"
target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com"
target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true"
href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a moz-do-not-send="true"
href="mailto:sip%3A888@conference.freeswitch.org"
target="_blank">sip:888@conference.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:<a moz-do-not-send="true"
href="tel:%2B19193869900" value="+19193869900"
target="_blank">+19193869900</a><br>
</div>
</div>
</div>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>