<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> <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/${ext}@10.160.1.21"/><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><p>-- <br>Nick Zaitsev</p></BODY></HTML>