<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">That works,&nbsp;<div><br></div><div>Thanks!</div><div><div apple-content-edited="true"><div><br></div></div><div><div>Markus</div><div><br></div><div>Am 11.03.2014 um 20:49 schrieb Avi Marcus &lt;<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Both are matching.<div>You might want this for your second match, so that there's only 1x leading zero:</div><div><br></div><div>^0([^0]\d+)$<br></div><div><br></div><div class="gmail_extra"><br clear="all">

<div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi<br></span></div></div>
<br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 8:49 PM, mbo <span dir="ltr">&lt;<a href="mailto:mbodbg@gmx.net" target="_blank">mbodbg@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div>Hello,</div><div><br></div><div>I have the following dial plan:</div><div><br></div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)">

<span style="color:#34bbc7">&lt;extension</span> name="international destination_number" continue="true"<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)">

<span style="color:#008f00">&nbsp; &nbsp; &nbsp; </span><span style="color:#34bbc7">&lt;condition</span> field="destination_number" expression="^00(\d+)$"<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)">

<span style="color:#008f00">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#34bbc7">&lt;action</span> application="log" data="CONSOLE *** international number ${destination_number} ***"/<span style="color:#34bbc7">&gt;</span></div>

<div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#008f00">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#34bbc7">&lt;action</span> application="set_profile_var" data="destination_number=$1"/<span style="color:#34bbc7">&gt;</span></div>

<div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:#008f00">&nbsp; &nbsp; &nbsp; </span>&lt;/condition&gt;</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,187,199);background-color:rgb(0,0,0)">

<span style="color:#008f00">&nbsp; &nbsp; </span>&lt;/extension&gt;</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(0,143,0);background-color:rgb(0,0,0);min-height:16px"><br></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)">

<span style="color:#008f00">&nbsp; &nbsp; </span><span style="color:#34bbc7">&lt;extension</span> name="national destination_number" continue="true"<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)">

<span style="color:#008f00">&nbsp; &nbsp; &nbsp; </span><span style="color:#34bbc7">&lt;condition</span> field="destination_number" expression="^0(\d+)$"<span style="color:#34bbc7">&gt;</span></div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)">

<span style="color:#008f00">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#34bbc7">&lt;action</span> application="log" data="CONSOLE *** international number ${destination_number}"/<span style="color:#34bbc7">&gt;</span></div>

<div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,189,38);background-color:rgb(0,0,0)"><span style="color:#008f00">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color:#34bbc7">&lt;action</span> application="set_profile_var" data="destination_number=49$1"/<span style="color:#34bbc7">&gt;</span></div>

<div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:#008f00">&nbsp; &nbsp; &nbsp; </span>&lt;/condition&gt;</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(52,187,199);background-color:rgb(0,0,0)">

<span style="color:#008f00">&nbsp; &nbsp; </span>&lt;/extension&gt;</div></div><div><br></div><div><br></div><div>If I dial number 001234567, I get the following output in the console:</div><div><br></div><div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(0,143,0);background-color:rgb(0,0,0)">

2014-03-11 19:43:42.945392 [CONSOLE] mod_dptools.c:1569 *** international number 001234567 ***</div><div style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(0,143,0);background-color:rgb(0,0,0)">2014-03-11 19:43:42.945392 [CONSOLE] mod_dptools.c:1569 *** international number 1234567</div>

</div><div><br></div><div>The second extension is matching, however in the first extension the destination_number has been overridden and does not have any leading zeros. Why is it matching anyway?</div><div><br></div><div>

Thanks</div><div><br></div><div>Markus</div><br><br></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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.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://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.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>
<br></blockquote></div><br></div></div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>