The hangup-fakenum extension will cause a hangup any time a caller name is numeric. You can also write your own extension script with any interesting matching rules that you like.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Is there any way to block callers whose CID NAME match their CID NMBR, for example the first two numbers in the following log:
I thought it might be possible with some regex lookahead/lookbehind/capture group/something, but I couldn't find any examples.
TIA
The hangup-fakenum extension will cause a hangup any time a caller name is numeric. You can also write your own extension script with any interesting matching rules that you like.