<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Even better! <br>
</p>
<p>Also peer_pref=1 seems possible, so that you can specify
forbidden CLI's per trunk and use another trunk.</p>
<p>Which table contains the blocklist?</p>
<p>Regards,</p>
<p>Henk<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 07-Feb-20 13:19, Walter Klomp wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAH9G5wZpZ3nbpao9D2bDBarNaq5K_5XGUggx996U=Ba8h8HECw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Found a nicer solution so that blocklists work on
domain level.
<div><br>
</div>
<div>Put this in SQL:</div>
<div><br>
</div>
<div>MariaDB [provisioning]> UPDATE voip_preferences SET
dom_pref=1 WHERE attribute in ("block_in_list",
"block_in_mode", "block_in_clir");<br>
</div>
<div><br>
</div>
<div>This will make the panel show the blocklist mechanism on
domain level.</div>
<div><br>
</div>
<div>Then you have a global blacklist, and it works. You can
still overwrite the blocklist per subscriber or peer if you
wish to do so.</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Feb 7, 2020 at 4:34 PM
Henk via Spce-user <<a
href="mailto:spce-user@lists.sipwise.com"
moz-do-not-send="true">spce-user@lists.sipwise.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<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>On 07-Feb-20 08:12, Walter Klomp via Spce-user wrote:<br>
</div>
<blockquote type="cite">
<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">
<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></fieldset>
</blockquote>
</div>
-- <br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank"
moz-do-not-send="true">Spce-user@lists.sipwise.com</a><br>
<a
href="http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="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">
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><br>
</div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman"">Warmest Regards,</div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span style="color:purple"><a
href="https://myrepublic.com.sg/"
style="color:purple" target="_blank"
moz-do-not-send="true"><br>
<img
src="https://myrepublic.com.sg/resources/email-signature.png"
moz-do-not-send="true" width="140" height="92"
border="0"></a></span><span></span></div>
</td>
<td style="padding:0cm">
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><b><span
style="font-size:10pt;font-family:Arial;color:rgb(127,43,153)">Walter
Klomp</span></b><span></span></div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)">Head
of Voice & Systems</span><span></span></div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)">MyRepublic
Limited</span><span></span></div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)">T:
+65 6816 1120</span><span></span></div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)">F:
+65 6717 2031</span></div>
</td>
</tr>
<tr>
<td colspan="2" style="width:249.75pt;padding:0cm"
width="333">
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""> <span></span></div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)">MyRepublic
Limited</span><span></span></div>
<div
style="font-family:arial,sans-serif;font-size:16px;margin:0in
0in 0.0001pt"><font face="Arial, sans-serif"
color="#4d4d4d"><span style="font-size:11.3333px">11
Lorong 3 Toa Payoh Block B Jackson Square</span></font></div>
<div
style="font-family:arial,sans-serif;font-size:16px;margin:0in
0in 0.0001pt"><font face="Arial, sans-serif"
color="#4d4d4d"><span style="font-size:11.3333px">#04-11/15
Singapore 319579</span></font></div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)"><br>
</span><span style="color:rgb(77,77,77)"><a
href="https://myrepublic.com.sg/"
style="color:purple" target="_blank"
moz-do-not-send="true"><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)">myrepublic.com.sg</span></a></span><span></span></div>
<div style="margin:0cm 0cm
0.0001pt;font-size:12pt;font-family:"Times New
Roman""><span
style="font-size:8.5pt;font-family:Arial;color:rgb(77,77,77)">Follow
us on: <a href="https://twitter.com/myrepublic"
style="color:purple" target="_blank"
moz-do-not-send="true"><span
style="color:rgb(77,77,77)">Twitter</span></a> | <a
href="https://facebook.com/myrepublicsg"
style="color:purple" target="_blank"
moz-do-not-send="true"><span
style="color:rgb(77,77,77)">Facebook</span></a> | <a
href="https://www.linkedin.com/company/myrepublic" style="color:purple"
target="_blank" moz-do-not-send="true"><span
style="color:rgb(5,99,193)">LinkedIn</span></a></span></div>
</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>
<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>
</blockquote>
</body>
</html>