[OpenSIPS-Users] Userblacklist module with mongodb

ryan embgrets rembgrets at gmail.com
Mon Jul 27 09:14:10 EST 2020


Any pointer?

I am using mongo for other modules and don't want to keep separate
database(mysql) for this module only

Ryan.

On Sun, 19 Jul 2020 at 15:32, ryan embgrets <rembgrets at gmail.com> wrote:

> Greeting,
>
> I am just wondering if someone has been using mongodb for the user
> blacklist module or even if it is compatible with mongo?
>
> I have below configurations,
>
> loadmodule "db_cachedb.so"
> loadmodule "cachedb_mongodb.so"
>
> modparam("db_cachedb","cachedb_url","mongodb:globalblacklist://opensips:opensipsrw@localhost
> /opensips.globalblacklist")
>
> loadmodule "userblacklist.so"
> modparam("userblacklist", "db_url", "cachedb://mongodb:globalblacklist")
>
> But it does not seem to work, and gives below error
>
> ERROR:userblacklist:db_reload_source: got invalid result type from query.
>
> Any suggestions?
>
> Ryan.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200727/a50b3e8d/attachment.html>


More information about the Users mailing list