[OpenSIPS-Users] About using an adicional subscriber table on auth_db module

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon May 25 16:05:12 CEST 2009


Hi Ricardo,

There are actually 2 ways of doing without changing the code:

1) xxxx_authorize() functions take as third param the "table" name (note 
you have to place in version table the record for the new table also)

2) load both passwd from DB (via avp_db_query() for example) and use 
pv_xxxx_authorize() function  - these functions take passwd as input 
from a PV.

Could you post the errors you get?

Regards,
Bogdan

Ricardo Martins wrote:
> Hi all!
>
> In order to attend designing necessities we need to authenticate some 
> UAs with two diferent passwords, depending on user_agent information. I 
> spent some time trying to script two diferent www_authorize and 
> proxy_authorize functions, one for each table. The sintax is fine but 
> Opensips do not start properly (I got an error of incorrect table 
> version, even in openser old versions 1.0.1).
>
> Do anybody knows how to make it work?
>
> Regards! Ricardo.
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list