<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 9:50 PM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com">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;">
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't have the file so I can'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 <<a href="mailto:Avi@amarcus.com">Avi@amarcus.com</a>> wrote:<br>
> I have two xml config files with time of day routing, and I couldn't imagine<br>
> why when it reached the first one, it just skipped the rest of the xml<br>
> files, as such:<br>
> 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->YLE1]<br>
> continue=false<br>
> 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>
> destination_number(t1105) =~ /^t1105$/ break=on-false<br>
> 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>
> [YLE1] break=on-false<br>
> 2010-12-27 01:36:09.410521 [DEBUG] switch_core_state_machine.c:119<br>
> (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 -><br>
> CS_EXECUTE<br>
> But when I just edit the first and set continue=true, it suddenly now<br>
> properly moves on. But it never matched the entire extension's condition<br>
> tags, so why did it think it should not continue?<br>
> (xml files here: <a href="http://pastebin.freeswitch.org/14885" target="_blank">http://pastebin.freeswitch.org/14885</a>)<br>
> 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->YLE1]<br>
> continue=true<br>
> 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>
> destination_number(t1105) =~ /^t1105$/ break=on-false<br>
> 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>
> [YLE1] break=on-false<br>
> 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->YLE2]<br>
> continue=false<br>
> 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>
> destination_number(t1105) =~ /^t1105$/ break=on-false<br>
> 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>
> [YLE2] break=on-false<br>
> 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>
> time-of-day() =~ /08:00-22:00/ break=on-false<br>
> 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>
> voicemail(default ${domain} 1105)<br>
> 2010-12-27 01:37:24.754671 [DEBUG] switch_core_state_machine.c:119<br>
> (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 -><br>
> CS_EXECUTE<br>
> And - it seems the anti-action is triggered no matter how "off" we are, is<br>
> there a way to have a less agressive anti action? E.g. it only activates if<br>
> the first condition is true? It's stopping the rest of my dial plan from<br>
> executing.<br>
> When would one ever want an anti-action other than as his last <extension><br>
> in which case it could just be a new last extension with no condition tag. I<br>
> don't understand why you would ever want them.<br>
> Understanding would be appreciated :)<br>
> -Avi Marcus<br>
</div></div>> _______________________________________________<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>
><br>
><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>