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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to