I answer myself to give more information after some test.
I've make a table named usr_timeout looks like usr_preferences, with
attribute "inv_timeout" and value "i:5" for example.
modparam("avpops","avp_table","usr_timeout")
and the tm parameters :
modparam("tm", "fr_inv_timer", 20)
modparam("tm", "fr_inv_timer_avp", "inv_timeout")
next :
avp_db_load("$from/username", "s:inv_timeout/usr_timeout");
avp_write("inv_timeout", "inv_timeout");
When I make a call, I obtain this kind of error :
avp2timer: Error while converting string to integer
The type in my DB is set to 1.
If I do this manually :
avp_write("i:5", "inv_timeout");
it works.
Thansk for your help.
Le mardi 16 janvier 2007 à 15:18 +0100, inge a écrit :
Hi all,
I learn about it in the archive, but I don't really get the good way.
If I put in a usr_preferences table like, a value like i:40, how can I
learn it and write into the inv_timeout ?
I'm not very far of the good result, but this is the point where I
block.
Thanks for your support.
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers