Quote from: MikeBianco on October 17, 2017, 05:48:32 PM
For the last several months I have been getting inundated with calls from my own exchange - these are spoofed caller IDs. My number is 973-316-XXXX, and I get several calls per day from other 973-316-? numbers. I really want to block all of these. I would pay for that service. Otherwise, your blocking service isn't really of value because I can do it on Google Voice for free.
So I would like to block 973-316-*.
Everyone I know seems to be having this problem lately. It would be good to provide a solution to it.
Thanks
You can already easily achieve that and it doesn't need OBiEXTRAS.
There is more than one way to store the blocked numbers. I prefer to put them in a User Defined Digit Map. For example mine has the label 'blk' and contains '(01925490730|01229798633|01616607425|02038850016|01484216980)', both without the quote marks. Those are real numbers I've had cold calls from here in the UK. Substitute with your own list, which because the usual digit map processing rules apply can include ones like the 973316xxxx you want.
Then you reference that list in the InboundCallRoute for the Voice Service. In my case for the LINE port on my OBi110 it is
{(Mblk):sp1(53669)},{(Mcbk):aa($1)},{(0xxxx.):ph,sp1(077yyyyyyyy)},{aa}
where the relevant bit is {(Mblk):sp1(53669)}. Any calls with a number in the blk list get sent to sp1(53669). In my case, sp1 goes to my Asterisk PBX and 53669 is Lenny. You choose what to do with those calls. If you have an OBi202 and not using the second phone port, {(Mblk):ph2} will ring that non-existent phone. Or if you just want to drop the calls {(Mblk):}
The other bits in that route are a user defined list of numbers that the AutoAttendant will call back. The 0xxxx. filters out some of the bogus short numbers and any that don't begin with a 0 (all national and international ones in the UK do) leaving those that seem valid to ring both the phone and my mobile (those 'y's obfuscating the actual number). Anything not already handled, mainly calls that have Caller ID witheld, go to the AutoAttendant which prompts a human to enter a 1 to continue the call.
Are you sure you want to block all numbers that begin with 973-316 ? If there are some that you do want to get through, put them in another user defined digit map with label, say, 'acc'. Then add that at the beginning of the InboundCallRoute.
{(Macc):ph},{(Mblk):},{ph}.
Rules are processed left to right so the scheme is route calls from numbers in the accept list to the phone, block all calls in the block list, route all others to the phone.