Incredible PBX 4.11.3 Inbound Routes - Number Length Analysis

dallas

Active Member
Joined
Oct 21, 2007
Messages
219
Reaction score
31
Location
Sydney, Australia
My RaspPBX seems to be getting a lot of spoofed Caller IDs. Most have either too many digits or not enough to be valid.
So I would like to look at the CID length and drop those that are fraudulent. Numbers with more than 10 digits starting with "1" I can drop (with a route CDI of "_1.") but it's a bit harder to filter out 10 digit numbers starting with 2-9. Maybe this will work..." _[23456789]NNNNNNNNN] for 10 digit numbers but how do I filter shorter numbers?

Has anyone tried something like this, and how do I get these filters to the top of the
 

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,450
Messages
138,038
Members
14,613
Latest member
roshan2019