<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"><extension</span> name="international destination_number" continue="true"<span style="color: #34bbc7">></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"> </span><span style="color: #34bbc7"><condition</span> field="destination_number" expression="^00(\d+)$"<span style="color: #34bbc7">></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"> </span><span style="color: #34bbc7"><action</span> application="log" data="CONSOLE *** international number ${destination_number} ***"/<span style="color: #34bbc7">></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"> </span><span style="color: #34bbc7"><action</span> application="set_profile_var" data="destination_number=$1"/<span style="color: #34bbc7">></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"> </span></condition></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"> </span></extension></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"> </span><span style="color: #34bbc7"><extension</span> name="national destination_number" continue="true"<span style="color: #34bbc7">></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"> </span><span style="color: #34bbc7"><condition</span> field="destination_number" expression="^0(\d+)$"<span style="color: #34bbc7">></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"> </span><span style="color: #34bbc7"><action</span> application="log" data="CONSOLE *** international number ${destination_number}"/<span style="color: #34bbc7">></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"> </span><span style="color: #34bbc7"><action</span> application="set_profile_var" data="destination_number=49$1"/<span style="color: #34bbc7">></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"> </span></condition></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"> </span></extension></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>