<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>AFAIK the difference in syntax is mentioned in the docs or at least in the hover-notice in the panel.<br>
</p>
<p>I have no idea why there is both but it's probably for historic reasons and I assume glob interpretation is way<br>
</p>
<p>easier and less costly (cpu wise) than full regexp. <br>
</p>
<p>Block lists are either allow or deny (Depending on block list mode) and so are ncos-levels (white- or blacklist) <br>
</p>
<p><br>
</p>
<p>We only use block_lists. We have different classes of forbidden number patterns that can be combined.<br>
</p>
<p>we then generate a complete list and set this list for the customer. (It can be selected by staff or customer via crm/webinterface)<br>
</p>
<p><br>
</p>
<p>In addition we use an adm_ncos to deny calls to satellite numbers and known fraud prefixes/numbers and a adm_cf_ncos (I think, maybe te name differs) to prevent call forwardings to emergency numbers/premiums/foreign.<br>
</p>
<p><br>
</p>
<p>I don't think you can do allow AND deny in the same list but we simply forbid everything we/our customer does not want to being<br>
</p>
<p>able to call <span style="font-size: 12pt;">and everything not explicitly forbidden is allowed by default.</span><span style="font-size: 12pt;"> </span></p>
<p><br>
</p>
<p>kind regards,<br>
</p>
<p><br>
</p>
<p>  Julian<br>
</p>
<p><br>
</p>
<p> <br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Spce-user <spce-user-bounces@lists.sipwise.com> im Auftrag von Serge S.Yuriev <me@nevian.org><br>
<b>Gesendet:</b> Freitag, 3. März 2017 19:45<br>
<b>An:</b> spce-user@lists.sipwise.com<br>
<b>Betreff:</b> Re: [Spce-user] NCOS and Block list patterns</font>
<div> </div>
</div>
<div>Btw, can we make excludes from list?
<div>Example</div>
<div>Block ^250</div>
<div>Allow ^<a dir="ltr" href="tel:2502213">250221</a>3</div>
<div><br>
</div>
<div>Should we write few regexps to flow around or there is simpler method exists?<br>
<br>
-- <br>
Wbr, Serge via mobile<br>
<br>
03.03.2017, 21:38, "Serge S. Yuriev" <me@nevian.org>:<br>
<blockquote type="cite">Hi,<br>
<br>
Thanks.
<div>This puzzles me a bit - why they are different? Why not regex everywhere?</div>
<div>I think it worth to mention in docs about these differences - it's not so oblivious.</div>
<div><br>
-- <br>
Wbr, Serge via mobile<br>
<br>
03.03.2017, 20:04, "Julian Seifert" <<a href="mailto:js@dacor.de">js@dacor.de</a>>:<br>
<blockquote type="cite">
<p>Hi Serge,<br>
<br>
Block lists accept "glob"-format ( <a href="https://en.wikipedia.org/wiki/Glob_(programming)#Syntax">
https://en.wikipedia.org/wiki/Glob_(programming)#Syntax</a> ) <br>
while ncos accepts regular expressions. When there's a conflict between ncos/blocklist<br>
(one explicitly allows while the other explicitly denies, default beahvious is to deny)<br>
<br>
HTH,<br>
<br>
  Julian<br>
________________________________________<br>
Von: Spce-user <<a href="mailto:spce-user-bounces@lists.sipwise.com">spce-user-bounces@lists.sipwise.com</a>> im Auftrag von Serge S. Yuriev <<a href="mailto:me@nevian.org">me@nevian.org</a>><br>
Gesendet: Freitag, 3. März 2017 15:30<br>
An: <a href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br>
Betreff: [Spce-user] NCOS and Block list patterns<br>
<br>
Hello,<br>
<br>
Is NCOS and Block lists really accept different pattern formats?<br>
Can we use regex?<br>
<br>
</p>
<span>-- <br>
Serge S. Yuriev<br>
Lead VoIP engineer<br>
</span>
<p><br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a><br>
</p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>