<div dir="ltr">On Fri, Jan 18, 2013 at 6:58 AM, Mimiko <span dir="ltr">&lt;<a href="mailto:vbvbrj@gmail.com" target="_blank">vbvbrj@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 I try:<br>
<br>
&lt;extension name=&quot;Loopback Call&quot;&gt;<br>
  &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^${pref1}([5-8]\d\d)$&quot; require-nested=&quot;true&quot;&gt;<br>
   &lt;condition field=&quot;${user_exists(id $1 $${domain})&quot; expression=&quot;^true$&quot;&gt;<br>
    &lt;action application=&quot;transfer&quot; data=&quot;$1 XML default&quot;/&gt;<br>
   &lt;/condition&gt;<br>
  &lt;/condition&gt;<br>
  &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^${pref2}([6-8]\d\d)$&quot; require-nested=&quot;true&quot;&gt;<br>
   &lt;condition field=&quot;${user_exists(id $1 $${domain})&quot; expression=&quot;^true$&quot;&gt;<br>
    &lt;action application=&quot;transfer&quot; data=&quot;$1 XML default&quot;/&gt;<br>
   &lt;/condition&gt;<br>
  &lt;/condition&gt;<br>
&lt;/extension&gt;<br></blockquote><div><br></div><div style>How about:</div><div style><span style="font-family:arial,sans-serif;font-size:13px">&lt;extension name=&quot;Loopback Call&quot;&gt;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">  &lt;condition field=&quot;destination_number&quot; </span><span style="font-family:arial,sans-serif;font-size:13px">expression=&quot;^(${pref1}|${pref2})([5-8]\d\</span><span style="font-family:arial,sans-serif;font-size:13px">d)$&quot;/&gt;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">  &lt;condition field=&quot;${user_exists(id $2 $${domain})&quot; expression=&quot;^true$&quot;&gt;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">    &lt;action application=&quot;transfer&quot; data=&quot;$2 XML default&quot;/&gt;</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">  &lt;/condition&gt;</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">&lt;/extension&gt;</span><br>
</div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">I think that does pretty much the same thing, but I&#39;m not sure of your exact requirements.</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">-- </span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Steve</span></div>
</div></div></div>