$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><condition field="destination_number" expression="^(500|600)$"><br>
<br>-Steve<br><br><br><div class="gmail_quote">On 21 January 2011 10:13, Weigel, Stefan <span dir="ltr"><<a href="mailto:Stefan.Weigel@allianz-warranty.com">Stefan.Weigel@allianz-warranty.com</a>></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"> <condition field="destination_number" expression="^(500)$|^(600)$"></span></pre>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US">
<action application="set" data="dialed_number=$1"/>
<-- $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"> <condition field="destination_number" expression="^(5\d\d)$|^(6\d\d)$"></span></pre>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US">
<action application="set" data="dialed_number=$1"/>
<-- $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>