List Info

Thread: Problem with avp_db_load in OpenSER 1.2




Problem with avp_db_load in OpenSER 1.2
user name
2007-04-28 08:03:45
I cannot seem to get my usr_preferences to load using the
following
load statement.

        avp_db_load("$avp(s:caller_username)",
"*");

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
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

Re: Problem with avp_db_load in OpenSER 1.2
country flaguser name
Romania
2007-04-29 12:30:06
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
> Usersopenser.org
> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )