<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;"><a href="http://pastebin.freeswitch.org/22117">http://pastebin.freeswitch.org/22117</a><div><br><div style=""><div>Am 11.03.2014 um 20:16 schrieb Michael Jerris &lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">take a look at the full debug log?<div><br><div><div>On Mar 11, 2014, at 2:49 PM, mbo &lt;<a href="mailto:mbodbg@gmx.net">mbodbg@gmx.net</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div 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></div>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><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></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>