Re: [SR-Users] mtree question

2011-08-18 Thread Daniel-Constantin Mierla
Hello, On 8/18/11 3:15 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: * this is intended to control the behavior of the tree data and matching mode. The default one is 0, match longest prefix and the associated data with the prefix is a string. This is complete implementation. Ther

Re: [SR-Users] mtree question

2011-08-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > * this is intended to control the behavior of the tree data and matching > mode. The default one is 0, match longest prefix and the associated data > with the prefix is a string. This is complete implementation. > > There is actually a second mode, 1, intended

Re: [SR-Users] mtree question

2011-08-16 Thread Juha Heinanen
Javier Gallart writes: > -mt_match() will match the longest prefix in the tree, in your case > -00358 in that case, it might make sense to implement a version of mt_match() that loads ALL matching tree branch values to an avp. in case of 00 and 00358 prefixes in the three, string 0035892345670 w

Re: [SR-Users] mtree question

2011-08-15 Thread Javier Gallart
Hi Daniel thanks for giving a more detailed information. About the last point, it sounds really interesting; as a matter of fact it's exactly what I'm doing manually right now (we get a bunch of k,v pairs in each entry in the mtree and right now I parse them manually with loops and or transformat

Re: [SR-Users] mtree question

2011-08-15 Thread Daniel-Constantin Mierla
Hello, some more comments/confirmations: On 8/12/11 11:31 PM, Javier Gallart wrote: Hi Juha based on my experience with the mtree module: -mt_match() will match the longest prefix in the tree, in your case 00358 * yes, longest prefix is matched -mt_ignore_duplicates makes sense when loading

Re: [SR-Users] mtree question

2011-08-12 Thread Javier Gallart
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