<div dir="ltr">On Fri, Jan 18, 2013 at 6:58 AM, Mimiko <span dir="ltr"><<a href="mailto:vbvbrj@gmail.com" target="_blank">vbvbrj@gmail.com</a>></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>
<extension name="Loopback Call"><br>
<condition field="destination_number"<br>
expression="^${pref1}([5-8]\d\d)$" require-nested="true"><br>
<condition field="${user_exists(id $1 $${domain})" expression="^true$"><br>
<action application="transfer" data="$1 XML default"/><br>
</condition><br>
</condition><br>
<condition field="destination_number"<br>
expression="^${pref2}([6-8]\d\d)$" require-nested="true"><br>
<condition field="${user_exists(id $1 $${domain})" expression="^true$"><br>
<action application="transfer" data="$1 XML default"/><br>
</condition><br>
</condition><br>
</extension><br></blockquote><div><br></div><div style>How about:</div><div style><span style="font-family:arial,sans-serif;font-size:13px"><extension name="Loopback Call"></span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> <condition field="destination_number" </span><span style="font-family:arial,sans-serif;font-size:13px">expression="^(${pref1}|${pref2})([5-8]\d\</span><span style="font-family:arial,sans-serif;font-size:13px">d)$"/></span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> <condition field="${user_exists(id $2 $${domain})" expression="^true$"></span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> <action application="transfer" data="$2 XML default"/></span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> </condition></span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"></extension></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'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>