Menu

#19 Regex not filtering in blacklist

v1.0_(example)
closed
nobody
None
1
2022-12-22
2022-03-15
Anonymous
No

Hi, I'm using ncid-1.7-1.fc26.x86_64 on CentOS 7

I have the following regex set in /etc/ncid/ncidd.blacklist:
^V[0-9][0-9][0-9][0-9][0-9][0-9]

On a much older EL6 server that regex worked fine in an old version of NCID. However, on EL7 with this package the regex isn't catching the caller.

The spam callers usually have V and a ton of numbers after it.

When the caller comes up though the processing doesn't happen, ncid doesn't do anything with it.

For other regex like ^1800 it works fine though

Any thoughts?

Discussion

  • Ed Attfield

    Ed Attfield - 2022-03-16

    Version 1.7 is quite old; you should be using the current 1.12 version.

    You can get it here https://sourceforge.net/projects/ncid/files/ncid/1.12/

    The version number for one that is running can be found at the top of /var/log/ncidd.log, and all of the options are repeated there.

    I'm not sure that ^1800 works with the regex=1 setting that you would need for your ^V(etc) expression, but for what you are trying to do, you might prefer to use the hangup-fakenum extension. It catches some oddly formed names.

    Complete install and setup instructions are in the User Manual
    http://ncid.sourceforge.net/doc/NCID-UserManual.html

     
  • Anonymous

    Anonymous - 2022-03-21

    Thanks

     
  • Ed Attfield

    Ed Attfield - 2022-12-22
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel