Hi Juha<br><br>based on my experience with the mtree module:<br><br>-mt_match() will match the longest prefix in the tree, in your case 00358<br>-mt_ignore_duplicates makes sense when loading the data in the DB to the memory. There could be duplicate entries in the db and with that directive you tell kamailio how to handle that situation <br>
-I don&#39;t know about mt_tree_type...(never needed to test it)<br><br>Hope it helps<br><br>Regards<br><br>Javi<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 12 Aug 2011 10:10:29 +0300<br>
From: Juha Heinanen &lt;<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>&gt;<br>
Subject: [SR-Users] mtree question<br>
To: <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Message-ID: &lt;<a href="mailto:20036.53733.20652.518606@sip.test.fi">20036.53733.20652.518606@sip.test.fi</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
after reading mtree readme, it is not clear to me if mt_match() matches<br>
to longest or any matching prefix in the three.  for example, if i have<br>
tree with prefixes 00 and 00358 and string to be matched is<br>
0035892345670, will mt_match() set pv to value associated with 00 or<br>
00358?  also, if mt_ignore_duplicates is set, will 00358 be considered<br>
as duplicate of 00 or just prefixes that are exactly same.  finally,<br>
what are possible mt_tree_type values and what types they stand for?<br>
<br>
-- juha<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br></blockquote></div>