[OpenSIPS-Users] userblacklist

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Dec 9 08:29:03 UTC 2024


Hi,

Not sure what's the DB issue as I see no errors or DB related issues in 
your report.

In regards to the posted "ERROR" - you call the function for a 
sequential/in-dialog request, which has RURI without a username part - 
and here the error comes, as the BL functions needs a username part.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 28.11.2024 01:13, Saint Michael wrote:
> I always get this error
> It never connects to the database. The table is empty
> mariadb opensips -e "select * from version"
> +-----------------+---------------+
> | table_name      | table_version |
> +-----------------+---------------+
> | globalblacklist |             2 |
> | userblacklist   |             2 |
>
> ERROR:userblacklist:check_user_blacklist: cannot parse msg URI
>
> xlog("Found $var(media_ip) \r\n");
> if (has_totag()) {
>             if (!check_user_blacklist("media", "$var(media_ip)")) {
> xlog("Blocked $var(media_ip) \r\n");
>                 send_reply(404, "Forbidden: Media IP Blacklisted");
>                 exit;
>             }
>   }
>
> loadmodule "userblacklist.so"
> modparam("userblacklist", "db_url", 
> "unixodbc://xxxx:password@localhost/opensips")
> modparam("userblacklist", "db_table", "userblacklist")
> modparam("userblacklist", "use_domain", 1)
>
> any idea?
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241209/766f868f/attachment.html>


More information about the Users mailing list