Currently, we're facing an issue where we would like to blacklist a particular request-user from registering. We have approximately 10,000 registered users, so it seems like using the blacklist module to maintain a list of whitelist/blacklist users would be complicated (and perhaps slow on lookups).<br>
<br>What we would like to do, essentially, is blacklist a particular sip user id (user only, not concerned about blacklisting ip's) by using the opensipsctl script, or something to that effect. I kind of have a general gist of something I could do (install the user_blacklist module, do an INSERT at runtime into that table with the sip user and the blacklist flag), but reading all the documentation, it seems to require more than just a user and blacklist = true.<br>
<br>I thought that there was an easy way from the opensipsctl script to blacklist or ban particular users, but it looks like for ul anyways, you can just remove a register.<br><br>Any suggestions? We would also need a way to remove that user from the blacklist. I'm also slightly hesitant of doing this at runtime because of database locks or whatnot, and I don't want to cause the application to crash.<br>
<br>And, in the routing script, it would be something similar to (pseudocode):<br><br>if(! a_blacklisted_user)<br>{<br> if(!lookup("location")<br> {<br> sl_send_reply("401", "Unauthorized");<br>
exit;<br> } <br>}<br><br><br>Thanks again for all the help.<br>