<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 9:50 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

anti-actions are like the xml file equiv of else<br>
<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">the actions are executed when the condition is matched<br>
the anti-actions are executed when it does not match<br>
<br>
are you aware that there is time of day matching built right into the<br>
xml that does not require doing regex?<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/Time_of_Day_Routing" target="_blank">http://wiki.freeswitch.org/wiki/Time_of_Day_Routing</a></blockquote><div>It seems that was a typo of an added (). I don&#39;t have the file so I can&#39;t be sue, but it must have been. (as I figured out in the last email)</div>

<div>Thanks,</div><div>Avi</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<div><div></div><div class="h5"><br>
On Sun, Dec 26, 2010 at 5:49 PM, Avi Marcus &lt;<a href="mailto:Avi@amarcus.com">Avi@amarcus.com</a>&gt; wrote:<br>
&gt; I have two xml config files with time of day routing, and I couldn&#39;t imagine<br>
&gt; why when it reached the first one, it just skipped the rest of the xml<br>
&gt; files, as such:<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> parsing [default-&gt;YLE1]<br>
&gt; continue=false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> Regex (PASS) [YLE1]<br>
&gt; destination_number(t1105) =~ /^t1105$/ break=on-false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> Date/Time Match (FAIL)<br>
&gt; [YLE1] break=on-false<br>
&gt; 2010-12-27 01:36:09.410521 [DEBUG] switch_core_state_machine.c:119<br>
&gt; (sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a>) State Change CS_ROUTING -&gt;<br>
&gt; CS_EXECUTE<br>
&gt; But when I just edit the first and set continue=true, it suddenly now<br>
&gt; properly moves on. But it never matched the entire extension&#39;s condition<br>
&gt; tags, so why did it think it should not continue?<br>
&gt; (xml files here: <a href="http://pastebin.freeswitch.org/14885" target="_blank">http://pastebin.freeswitch.org/14885</a>)<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> parsing [default-&gt;YLE1]<br>
&gt; continue=true<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> Regex (PASS) [YLE1]<br>
&gt; destination_number(t1105) =~ /^t1105$/ break=on-false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> Date/Time Match (FAIL)<br>
&gt; [YLE1] break=on-false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> parsing [default-&gt;YLE2]<br>
&gt; continue=false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> Regex (PASS) [YLE2]<br>
&gt; destination_number(t1105) =~ /^t1105$/ break=on-false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> Date/Time Match (PASS)<br>
&gt; [YLE2] break=on-false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> Regex (FAIL) [YLE2]<br>
&gt; time-of-day() =~ /08:00-22:00/ break=on-false<br>
&gt; Dialplan: sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a> ANTI-Action<br>
&gt; voicemail(default ${domain} 1105)<br>
&gt; 2010-12-27 01:37:24.754671 [DEBUG] switch_core_state_machine.c:119<br>
&gt; (sofia/internal/<a href="http://sip:1000@109.67.185.37:5072" target="_blank">sip:1000@109.67.185.37:5072</a>) State Change CS_ROUTING -&gt;<br>
&gt; CS_EXECUTE<br>
&gt; And - it seems the anti-action is triggered no matter how &quot;off&quot; we are, is<br>
&gt; there a way to have a less agressive anti action? E.g. it only activates if<br>
&gt; the first condition is true? It&#39;s stopping the rest of my dial plan from<br>
&gt; executing.<br>
&gt; When would one ever want an anti-action other than as his last &lt;extension&gt;<br>
&gt; in which case it could just be a new last extension with no condition tag. I<br>
&gt; don&#39;t understand why you would ever want them.<br>
&gt; Understanding would be appreciated :)<br>
&gt; -Avi Marcus<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<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" 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>