[Users] Problem with avp_db_load in OpenSER 1.2

Daniel-Constantin Mierla daniel at voice-system.ro
Sun Apr 29 19:30:06 CEST 2007


Hello,

On 04/28/07 16:03, Daryl Sanders wrote:
> I cannot seem to get my usr_preferences to load using the following
> load statement.
>
>        avp_db_load("$avp(s:caller_username)", "*");

try avp_db_load("$avp(s:caller_username)/username", "*") if you have 
username in the AVP. If not working, set debug level to higher value and 
watch log messages and mysql quesries, somewhere should be an invalid value.

Cheers,
Daniel

>
> I have verified with xlog and avp_print() that $avp(s:caller_username)
> does contain a valid value before calling avp_db_load, however nothing
> is returned.
>
> It will work if I use this:
>
>        avp_db_load("$fu/username", "*");
>
>
> I really need to make it work via $avp(s:caller_username) if possible
> because my call forwarding and custom call routing features change
> this value often.
>
> Thanks,
>
> - Daryl
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list