[SR-Users] load_credentials PVs

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 30 11:58:42 CEST 2010


  Hello,

On 8/29/10 1:21 AM, 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?

when this parameter was added, only avps were like script variables. 
Then probably nobody needed to extend. Is should be no issue to write in 
other PV if someone gets a patch for it.

Cheers,
Daniel

>
> 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
> Aug 28 19:00:54 diminuendo-1 /usr/local/sbin/kamailio[19651]: ERROR: 
> <core> [sr_module.c:874]: init_mod(): Error while initializing module 
> auth_db
>
>

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the sr-users mailing list