<HTML><BODY><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>&nbsp;<br></p><p>&lt;extension name="fs3_outbound"&gt;<br> &lt;condition field="destination_number"&nbsp;expression="^([123][012345]\d\d\d)$"&gt;<br> &lt;action application="set" data="ext=$1"/&gt;<br> &lt;action application="set"data="domain_name=${domain}"/&gt;<br> &lt;/condition&gt;<br> &lt;condition field="${sofia_contact(*/${ext}@${domain_name})}" expression="error/user_not_registered"&gt;<br> &lt;action application="bridge" data="sofia/internal/${ext}@10.160.1.21"/&gt;<br> &lt;anti-action application="bridge" data="user/${ext}@${domain_name}"/&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><p>-- <br>Nick Zaitsev</p></BODY></HTML>