[SR-Users] load_credentials PVs
Henning Westerholt
henning.westerholt at 1und1.de
Mon Aug 30 13:20:56 CEST 2010
On Sunday 29 August 2010, Alex Balashov wrote:
> Is there a particular reason why in the 'load_credentials' parameter
> to the 'auth_db' module, one can only store values in AVPs, not script
> variables?
>
> e.g. this works:
>
> modparam("auth_db", "load_credentials", "$avp(s:var1)=column")
>
> But not this:
>
> modparam("auth_db", "load_credentials", "$var(var1)=column");
>
> it results in an error like this:
>
> Aug 28 19:00:54 diminuendo-1 /usr/local/sbin/kamailio[19651]: ERROR:
> auth_db [aaa_avps.h:113]: malformed or non AVP $var(auth_user_id) AVP
> definition
> Aug 28 19:00:54 diminuendo-1 /usr/local/sbin/kamailio[19651]: ERROR:
> auth_db [aaa_avps.h:179]: parse failed in "$var(auth_user_id)" at pos
> 0($var(auth_user_id))
> Aug 28 19:00:54 diminuendo-1 /usr/local/sbin/kamailio[19651]: ERROR:
> auth_db [authdb_mod.c:208]: failed to parse credentials
Hello Alex,
i'd say there is no particular reason, beside that during the time when the
module was extended the generic PV structure was not available. The module
could be modified or extended to support it.
Cheers,
Henning
More information about the sr-users
mailing list