Menu

"Begins with" wildcard for strings

Help
2017-02-21
2017-02-21
  • baradanikto

    baradanikto - 2017-02-21

    I've got a old version of the software from around 2014 running on a Raspberry Pi. I treid to use the "begins with" wildcard on strings, but, it appears that I did not do it correctly. All calls are now rejected. For example, I tried something like this:

    ^"some string"

    I substituted the string I got from the log when I wanted to reject a call. Can someone give me an exaple of how to reject calls using the "begins with" wildcad for strings?

     
  • John L. Chmielewski

    You should have provided the version of ncidd using the command:

    ncidd -V
    

    If you use double quotes, the ncidd server expects them to enclose the entire expression. You should use "^some string".

    Two examples to blacklist an area code, one with quotes and one without:

    ^1?900
    "^809"
    

    A ^1? at the beginning makes a leading 1 optional.

     

    Last edit: John L. Chmielewski 2017-02-27
  • baradanikto

    baradanikto - 2017-02-26

    John,

    Thanks for the reply. For the record, it is version 1.0. After posting, I had a sense that my format was incorrect. I'll try what you suggested.

     

Log in to post a comment.