[OpenSIPS-Users] userblacklist
Saint Michael
venefax at gmail.com
Wed Nov 27 23:13:36 UTC 2024
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241127/ca69f0b2/attachment.html>
More information about the Users
mailing list