[OpenSIPS-Users] auth_db connection to multiple dbs
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Feb 5 15:41:37 UTC 2024
Hi Jason,
Not really, the module supports only one DB URL.
An option here will be use the pv_xxxx_authorize() functions [1] from
the auth module and do take care of the DB part at script level (like
via avp_db_query which supports multiple db urls [2])
[1]
https://opensips.org/html/docs/modules/3.4.x/auth.html#func_pv_www_authorize
[2] https://opensips.org/html/docs/modules/3.4.x/avpops.html#param_db_scheme
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 05.02.2024 12:07, nz deals wrote:
> Hi all,
>
> I'm exploring the possibility of connecting the auth_db module to more
> than one database. Currently, I have authentication records in two
> distinct databases. While I am successfully connected to one
> database.table, I am seeking a solution to connect to another
> database2.table. Is there a method or approach to achieve this?
>
>
> Regards,
> Jason
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list