<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"></DIV> </DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Yes,the first condition is mathcing.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=steveayre@gmail.com
href="mailto:steveayre@gmail.com">Steven Ayre</A> </DIV>
<DIV><B>Sent:</B> Wednesday, August 20, 2014 6:03 PM</DIV>
<DIV><B>To:</B> <A title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV><B>Subject:</B> Re: [Freeswitch-users] Freeswitch dialplan
issue</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<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>mailto:ext%7D@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>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>