<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi,<br>
      <br>
      Have you tried to use the check_user_blacklist () function:<br>
         
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/userblacklist.html#func_check_user_blacklist">http://www.opensips.org/html/docs/modules/2.4.x/userblacklist.html#func_check_user_blacklist</a><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/01/2018 05:47 PM, Alexander
      Perkins wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALLkTp1GrHRVts53EFtz-XiAQ990-DLWv0Cf2Un9usQvrCP1KA@mail.gmail.com">
      <div dir="ltr">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="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>