[SR-Users] load_credentials PVs

Alex Balashov abalashov at evaristesys.com
Sun Aug 29 01:21:57 CEST 2010


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
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


-- 
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-users mailing list