<div dir="ltr">Is the first condition matching?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 August 2014 13:20, Nick Zaitsev <span dir="ltr">&lt;<a href="mailto:nick.zaitsev@mail.ru" target="_blank">nick.zaitsev@mail.ru</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br><br>Good day to you.<br>I have strange issue.<br>I would like to set the ext in dialplan in that way:<br>if there is local registered ext in freeswitch fs should route the call there,else route the call outside, i wrote this in dialplan:<br>

<p> <br></p><p>&lt;extension name=&quot;fs3_outbound&quot;&gt;<br> &lt;condition field=&quot;destination_number&quot; expression=&quot;^([123][012345]\d\d\d)$&quot;&gt;<br> &lt;action application=&quot;set&quot; data=&quot;ext=$1&quot;/&gt;<br>

 &lt;action application=&quot;set&quot;data=&quot;domain_name=${domain}&quot;/&gt;<br> &lt;/condition&gt;<br> &lt;condition field=&quot;${sofia_contact(*/${ext}@${domain_name})}&quot; expression=&quot;error/user_not_registered&quot;&gt;<br>

 &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/${<a href="mailto:ext%7D@10.160.1.21" target="_blank">ext}@10.160.1.21</a>&quot;/&gt;<br> &lt;anti-action application=&quot;bridge&quot; data=&quot;user/${ext}@${domain_name}&quot;/&gt;<br>

 &lt;/condition&gt;<br> &lt;/extension&gt;</p><p>But it seems,that anti-action is not match at all(<br>Thank you for your time,best regards.</p><span class="HOEnZb"><font color="#888888"><p>-- <br>Nick Zaitsev</p></font></span></div>


<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><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>