Hi. Our customer gave me a task and I don’t know solution. I want to block a range of numbers (1234500-99) and apply this blacklist rule to an existing inbound route. There are a lot of inbound routes in my system, but I want to apply this only for one inbound route. How can I do this? Please, help me.
Hi,
i think dialplan is the best soulotion (not that i know of any other soulotion…)
you can make a context for the trunk getting the calls and there check if its from this range and calling the inbound
and sent it to hangup.
im no expert
This could easily be done with a custom context that adds the number to your [from-trunk] (or whatever inbound context you are using) and processes it separately from the rest of the inbound numbers.
Another approach would be to set up a new inbound route and use the Caller ID preference to grab the numbers on the way in. It’s been a long time since I’ve done it, but you might be able to use a wildcard on the inbound route to grab a sequence of numbers. I’m not sure that’s going to work, but it would be something to research. Seems to me @dicko has some experience in this. Maybe he’ll weigh in.
Is this not just a matter of creating another inbound route with the CID field set to:
_12345XX
Thank you. I created new inbound route with same DID and wrote in the CID field _12345XX. Worked !