Hi Juha
based on my experience with the mtree module:
-mt_match() will match the longest prefix in the tree, in your case 00358 -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 -I don't know about mt_tree_type...(never needed to test it)
Hope it helps
Regards
Javi
Message: 2 Date: Fri, 12 Aug 2011 10:10:29 +0300 From: Juha Heinanen jh@tutpro.com Subject: [SR-Users] mtree question To: sr-users@lists.sip-router.org Message-ID: 20036.53733.20652.518606@sip.test.fi Content-Type: text/plain; charset=us-ascii
after reading mtree readme, it is not clear to me if mt_match() matches to longest or any matching prefix in the three. for example, if i have tree with prefixes 00 and 00358 and string to be matched is 0035892345670, will mt_match() set pv to value associated with 00 or 00358? also, if mt_ignore_duplicates is set, will 00358 be considered as duplicate of 00 or just prefixes that are exactly same. finally, what are possible mt_tree_type values and what types they stand for?
-- juha