<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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; position: static; z-index: auto;"><br></div><div style="margin: 0px; font-size: 14px; font-family: Menlo; color: rgb(52, 189, 38); background-color: rgb(0, 0, 0); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;"><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); position: static; z-index: auto;">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); position: static; z-index: auto;">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></body></html>