[SR-Users] Question about avp_db_load

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Fri Sep 3 16:54:17 CEST 2010


Hi all .. I'm trying to change the way avp_db_load works on my current config 
to load avp's from DB based on $fU and $fd and not based on uuid, so I have 
try this ...

...
modparam("avpops", "avp_table", "usr_preferences")
modparam("avpops", "use_domain", 1)
...
	# load caller avps
	avp_db_load("$fu/username", "*");
...

With no success .. because the query that is send to the DB is:

select value,attribute,type from usr_preferences where username='{$fU value}'

instedad of

select value,attribute,type from usr_preferences where username='{$fU value}' 
and domain='{$fd value}'

witch is what I expect when using use_domain=1

Any clue about what I'm doing wrong?

Best regards
-- 
Raúl Alexis Betancor Santana
Dimensión Virtual



More information about the sr-users mailing list