According to this article
https://www.3cx.com/docs/trap-and-block-anonymous-callers/
you should be able to, unless "anonymous" a reserved keyword.
If it's not, technically it should work for other "words" as well.
I can see the logic you followed, unfortunately though it is not quite like this.
"anonymous" is a special value providers send instead of the number when the caller ID is withheld. So in this case, in the Number blacklist you would actually write a text string, because that is being sent instead of a number.
On a more technical note, on incoming calls, the "From" has 2 values, the:
- Display Name: optional field that can contain text, usually used to deliver the CNAM
- User Part: mandatory field, that can also contain text in ASCII, but 99.9% of the times contains the CNUM (or 'anonymous')
With the Inbound Parameters you tell 3CX where to read the "CallerName" and "CallerNum" from.
"CallerNum", 99% of the times is taken from the "User Part".
Now the Number Blacklist blocks based on the value contained in the "CallerNum"
So, why I explained all this:
You could set the CallerNum to the Display Name, but it would be encoded in ASCII, but technically you could then use the Number Blacklist with names.
Note: You would completely break the re-dialing function, and if it doesn't work, don't report it because it this way is a complete misuse of the way the feature was meant to work.
Update:
You could request this though in the "Ideas" section as a new feature, "Caller Name Blacklist" which would work like the number blacklist, but based on the Callers Name