[sr-dev] mtree module loads only to one tree

Juha Heinanen jh at tutpro.com
Wed Oct 30 15:28:54 CET 2013


i have in mtrees table rows with two different tname values.  when i
start my sip proxy, mtree module complains about not being able to
convert string to integer:

Oct 30 16:12:07 rautu /usr/sbin/sip-proxy[4092]: ERROR: mtree [mtree.c:163]: mt_add_to_tree(): bad integer string <test>

i added some debug and found out that mtree module does not change the
tree where it adds nodes even when tname value in mtrees records changes
from one record to the next. the above error was generated from the
second record that belongs to tree2 when first record belonged to tree1:

modparam("mtree", "mtree", "name=tree1;type=2;dbtable=mtrees;")
modparam("mtree", "mtree", "name=tree2;type=0;dbtable=mtrees;")

debug output showed that mtree module tried to load also the second
record to tree1.

-- juha





More information about the sr-dev mailing list