<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Walter,</p>
    <p>Just as a coincidence I had the same issue last month. I tested
      two solutions:</p>
    <p>1. Make a dummy trunk and add outbound CLI rules to 'capture' the
      disallowed traffic. The dummy trunk can just be a default Kamailio
      instance with the line</p>
    <p>sl_send_reply("403","CLI not allowed");<br>
    </p>
    <p>I tested with another system, but you can also add a Kamailio
      instance locally on a different port.</p>
    <p>2. Make a list of rewrite rules and rewrite all forbidden CLI's
      to a special like 'forbidden'. Then you can add some custom code
      in the proxy to reply with 403.</p>
    <p>I'm using the last one, but I've added the custom code in another
      (Kamailio) proxy that handles my traffic to this provider:</p>
    <p>            if ($fU=="forbidden")<br>
                  {<br>
                      # Illegal CLI, determined with rewrite rules<br>
                      sl_send_reply("403","This CLI is not allowed");<br>
                      exit;<br>
                  }</p>
    <p>I've imported the rules directly in
      provisioning.voip_rewrite_rules as the UI is not suited to add
      around 100 rules I have.<br>
    </p>
    <p>Hope this helps,</p>
    <p>Regards,</p>
    <p>Henk Plessius</p>
    <p>VoipDigit<br>
    </p>
    <div class="moz-cite-prefix">On 07-Feb-20 08:12, Walter Klomp via
      Spce-user wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAH9G5wZARaRFPnuXYq4cgWL57aZnGwGG-fi6FOfS=1gz9HVZ3w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>We need to block inbound calls based on CallerID.  Is there
          a "global" version, or a list which I can apply to multiple
          peers and subscribers (some sip trunk customers have wildcard
          caller-id).<br clear="all">
          <div><br>
          </div>
          <div>I was hoping on Admin NCOS, but that only blocks on
            outgoing calls. (on called number).</div>
          <div><br>
          </div>
          Hope some of you have some idea?</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Walter.<br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">
              <table style="font-family:Helvetica;width:259.8pt"
                width="346" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                  <tr>
                    <td style="padding:0cm" valign="top"><br>
                    </td>
                    <td style="padding:0cm"><br>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2" style="width:249.75pt;padding:0cm"
                      width="333"><br>
                    </td>
                  </tr>
                </tbody>
              </table>
              <div
                style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px"><br>
              </div>
              <table style="font-family:Helvetica;width:259.8pt"
                width="400" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                  <tr>
                    <td style="padding:0in" valign="top"><br>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
      <br>
      <span
style="color:rgb(34,34,34);font-family:sans-serif;background-color:rgb(255,255,255)"><font
          size="1"><span style="font-family:Arial;color:rgb(102,102,102);font-style:italic;vertical-align:baseline;white-space:pre-wrap">The contents of this email and any attachments are confidential and may also be privileged. You must not disseminate the contents of this email and any attachments without permission of the sender. If you have received this email by mistake, please delete all copies and inform the sender immediately. You may refer to our company's Privacy Policy </span><span style="color:rgb(102,102,102);font-family:Arial;font-style:italic;vertical-align:baseline;white-space:pre-wrap"><a href="https://myrepublic.net/sg/legal/terms-of-use-policies/privacy-policy/" target="_blank" moz-do-not-send="true">here</a></span><span style="font-family:Arial;color:rgb(102,102,102);font-style:italic;vertical-align:baseline;white-space:pre-wrap">.</span></font></span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
  </body>
</html>