$1 is the first brackets<br>$2 is the second brackets<br><br>If you dial 5xx I would expect $1 to be 5xx and $2 empty<br>If you dial 6xx I would expect $1 empty and $2 to be 6xx<br><br>Try:<br>&lt;condition field=&quot;destination_number&quot; expression=&quot;^(500|600)$&quot;&gt;<br>
<br>-Steve<br><br><br><div class="gmail_quote">On 21 January 2011 10:13, Weigel, Stefan <span dir="ltr">&lt;<a href="mailto:Stefan.Weigel@allianz-warranty.com">Stefan.Weigel@allianz-warranty.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="DE">

<div>

<p class="MsoNormal"><span lang="EN-US">Hi all,</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">sorry for the first message, I hit the
wrong keys an Outlook sent the message…once again:</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">why is the following not working:</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<pre><span lang="EN-US">  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(500)$|^(600)$&quot;&gt;</span></pre>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">   
&lt;action application=&quot;set&quot; data=&quot;dialed_number=$1&quot;/&gt;
&lt;-- $1 is empty</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">when using the above expression, $1 is
empty.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">If I do it like this</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<pre><span lang="EN-US">  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(5\d\d)$|^(6\d\d)$&quot;&gt;</span></pre>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">   
&lt;action application=&quot;set&quot; data=&quot;dialed_number=$1&quot;/&gt;
&lt;-- $1 is empty</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">It’s working. I don’t understand
why.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Thanks in advance and best regards,</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p><font color="#888888">

<p class="MsoNormal"><span lang="EN-US">Stefan</span></p>

</font></div>

</div>


<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>
<br></blockquote></div><br>