Content-type: text/html
If the hangup option is set and if there is no match in the whitelist file, a match in the blacklist file will cause ncidd to automatically terminate the call.
The ncidd.blacklist file understands 4 types of lines:
Entry lines contain one or more expressions and an optional comment. An expression is either a string of non-blank characters or everything between double quotes. Multiple expressions are separated by spaces. A comment must be last.
Entry line comments are either normal comments or match name comments.
A normal comment begins with a '#' and must not be immediately followed by an equals sign. Anything after the '#' is ignored.
A match name comment begins with '#=' and is followed by a name to display for the caller when the entry matches either the number or name of a call. Do not use double quotes around the name.
Upper and lower case letters are significant.
The number must be a string of digits as they appear in /var/log/cidcall.log.
A leading '1' is required if it is in /var/log/cidcall.log.
A partial name or number can match.
If POSIX regular expressions cwareis used (regex = 1):
POSIX Extended Regular Expression Syntax https://en.wikipedia.org/wiki/Regular_expression
Introduction to Regular Expressions http://www.regular-expressions.info/quickstart.html
If Perl Compatible Regular Expressions (PCRE) are used (regex = 2):
Perl regular expressions man page https://perldoc.perl.org/perlre
pcre2syntax man page https://www.pcre.org/current/doc/html/pcre2syntax.html
Simple and Regular Expressions:
Blacklist callers with the name "BAD MARKETING":
Blacklist anything with "MARKETING" in the name:
Blacklist a caller name and a different caller number on one line: