<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"><<a href="mailto:nick.zaitsev@mail.ru" target="_blank">nick.zaitsev@mail.ru</a>></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><extension name="fs3_outbound"><br> <condition field="destination_number" expression="^([123][012345]\d\d\d)$"><br> <action application="set" data="ext=$1"/><br>
<action application="set"data="domain_name=${domain}"/><br> </condition><br> <condition field="${sofia_contact(*/${ext}@${domain_name})}" expression="error/user_not_registered"><br>
<action application="bridge" data="sofia/internal/${<a href="mailto:ext%7D@10.160.1.21" target="_blank">ext}@10.160.1.21</a>"/><br> <anti-action application="bridge" data="user/${ext}@${domain_name}"/><br>
</condition><br> </extension></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>