[SR-Users] Question about avp_db_load
Daniel-Constantin Mierla
miconda at gmail.com
Fri Sep 3 19:50:16 CEST 2010
Hello,
On 9/3/10 4:54 PM, Raúl Alexis Betancor Santana wrote:
> 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", "*");
"/username" flag forces usage of user part only. Try without it.
Cheers,
Daniel
> ...
>
> 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
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the sr-users
mailing list