<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Alexander,<br>
<br>
There are other generic modules that can be used for implementing
a black listing functionality - like Dynamic Routing (for
prefix/DID blacklisting) or the dialplan module (for regexp based
matching). Both do caching for speed reasons. If you really want
to do it directly against a DB (like noSQL), you can simply do it
from script level with raw queries and script checks - it is just
a matter of organizing your data.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 05/18/2018 11:47 PM, Alexander
Perkins wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALLkTp2_r3DOvCaSHFN31idpn2-Mon9yf=EWCw1GgZ-6+h0Ayg@mail.gmail.com">
<div>
<div dir="auto">Hi Bogdan. Thank you for the advice. </div>
<div dir="auto"><br>
</div>
<div dir="auto">I ended up writing a custom blacklist module
which works in real-time. The blacklist module native to
OpenSIPS is great, but it lacked certain functionality that we
really wanted. Among them, was real-time blacklisting (without
the need to reload). </div>
<div dir="auto"><br>
</div>
<div dir="auto">We implemented a beta version and it’s working
really well. We did this using MemCached. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks again, </div>
<div dir="auto">Alex</div>
<br>
<div class="gmail_quote">
<div>On Fri, May 18, 2018 at 6:16 AM Bogdan-Andrei Iancu <<a
href="mailto:bogdan@opensips.org" moz-do-not-send="true">bogdan@opensips.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Hi,<br>
<br>
Have you tried to use the check_user_blacklist ()
function:<br>
<a class="m_-798348750700882043moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/2.4.x/userblacklist.html#func_check_user_blacklist"
target="_blank" moz-do-not-send="true">http://www.opensips.org/html/docs/modules/2.4.x/userblacklist.html#func_check_user_blacklist</a><br>
<br>
Regards,<br>
</tt>
<pre class="m_-798348750700882043moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-798348750700882043moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="m_-798348750700882043moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam" target="_blank" moz-do-not-send="true">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
</div>
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_-798348750700882043moz-cite-prefix">On
05/01/2018 05:47 PM, Alexander Perkins wrote:<br>
</div>
</div>
<div bgcolor="#FFFFFF" text="#000000">
<blockquote type="cite">
<div>Hi. I have successfully implemented the User
Blacklist module, but I noticed it checks the number
the call is going to, not the CallerID. Is it
possible to lookup the CallerID instead of the
number? I have tried creating a dummy variable for
$tU and then assiging the CallerID to $tU, but
OpenSIPs failed (I guess $tU is read-only?). I am
using the global blacklist functionality. This is the
code I tried originally:
<div><br>
</div>
<div>$var(TempVariable) = $tU;</div>
<div>$tU = $fU;</div>
<div><br>
</div>
<div>
<div> if
(!check_blacklist("globalblacklist"))</div>
<div> {</div>
<div> sl_send_reply("403",
"Forbidden");</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>$tU = <span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">$var(TempVariable);</span></div>
<div><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br>
</span></div>
<div><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Any
help is appreciated,</span></div>
<div><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Alex</span></div>
</div>
<br>
<fieldset
class="m_-798348750700882043mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
</div>
<div bgcolor="#FFFFFF" text="#000000">
<blockquote type="cite">
<pre>_______________________________________________
Users mailing list
<a class="m_-798348750700882043moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_-798348750700882043moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>