[OpenSIPS-Users] userblacklist

Pavel Eremin eremina.net at gmail.com
Mon Dec 9 08:27:51 UTC 2024


hi, show $ru before check_user_blacklist

чт, 28 нояб. 2024 г. в 04:17, Saint Michael <venefax at gmail.com>:
>
> 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



More information about the Users mailing list