News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

Can I block an entire area code except for certain numbers?

Started by simpat1zq, September 13, 2019, 05:10:41 AM

Previous topic - Next topic

simpat1zq

Basically I have an area code that I don't live in. There are only a few people from that area code that would have any business calling me. But of course, most of the junk calls are from that area code. Is it possible to block that entire area code except for a few numbers? Thanks.

azrobert

First, look at your call history to determine the format of your CallerID. Some providers have a 10 digit Callerid, others 11 digits. GV sends 11 digits with a "+" prefix. The following example is for GV defined on SP1 and will block the 800 area code except for 3 numbers.

Use OBi Expert.

Voice Services -> SP1 Service => X_InboundCallRoute:
{(+18005551212|+18005551213|+18005551214):ph},{(+1800xxxxxxx):},{ph}

bill-cary

Quote from: azrobert on September 13, 2019, 08:37:13 AM
First, look at your call history to determine the format of your CallerID. Some providers have a 10 digit Callerid, others 11 digits. GV sends 11 digits with a "+" prefix. The following example is for GV defined on SP1 and will block the 800 area code except for 3 numbers.

Use OBi Expert.

Voice Services -> SP1 Service => X_InboundCallRoute:
{(+18005551212|+18005551213|+18005551214):ph},{(+1800xxxxxxx):},{ph}


So the first section (to ,) says that those 3 numbers go to the ph.
the next section says that all 800 numbers go to nowhere
the next section says that all the rest of the numbers go to the ph
the order is also important as it will match the first one encountered
so if I put the 2nd section as the 1st then ALL 800 #s will go nowhere.

Do I have it right?
thanks

drgeoff

Quote from: bill-cary on September 16, 2019, 09:58:54 AM
Quote from: azrobert on September 13, 2019, 08:37:13 AM
First, look at your call history to determine the format of your CallerID. Some providers have a 10 digit Callerid, others 11 digits. GV sends 11 digits with a "+" prefix. The following example is for GV defined on SP1 and will block the 800 area code except for 3 numbers.

Use OBi Expert.

Voice Services -> SP1 Service => X_InboundCallRoute:
{(+18005551212|+18005551213|+18005551214):ph},{(+1800xxxxxxx):},{ph}


So the first section (to ,) says that those 3 numbers go to the ph.
the next section says that all 800 numbers go to nowhere
the next section says that all the rest of the numbers go to the ph
the order is also important as it will match the first one encountered
so if I put the 2nd section as the 1st then ALL 800 #s will go nowhere.

Do I have it right?
thanks

Yes.

simpat1zq

I had actually figured this out like an hour after I posted and forgot to report back on this post. But it looks like I did pretty much what you guys posted anyways. Thanks.

In case anyone ever needs to do this in the future. Add this to the inboundCallRoute: {(Macc):ph},{(Mblk):sp1(13475147296)},{ph}

I don't fully understand how this works, but I'll try to explain. The M in Macc means that you need to use the user defined digit map named 'acc' (which I created and named). It sends all those numbers in that list to my phone. So I added the numbers for the people I know into that list. Mblk refers to the 'blk' list that I created. That has the area code I want to block, these get forwarded to 'Lenny' at phone number 13475147296. This is a free service I learned about that has a recorded person that sounds like a clueless old person that is supposed to keep telemarketers busy. I believe you can just leave that blank if you don't want them forwarded anywhere.

In that line, that are 3 rules defined, separated by commas. The first rule that a number matches on, is the rule that gets executed.

The last '{ph} just means that you want to send everyone else to your phone.

Here's what I have in the 'blk' user defined digit map. It basically just includes the area codes 123 and 456 (@.123xxxxxxx|@.456xxxxxxx)

And here's my 'acc' list. This specifically allows these 2 numbers through: (@.4565556789|@.4565551234)

The '@.' part at the beginning of the number basically means that it doesn't matter if your provider adds a '1' to the beginning of the number or not. It just looks at the last 10 digits for the match.


drgeoff

@simpat1zq

Despite you giving the impression that you figured the above out by yourself it is just a rehash of what I posted 2 years ago at http://www.obitalk.com/forum/index.php?topic=13055.msg83657#msg83657.  It would be too much of a coincidence that you used the same map names - Macc and Mblk - as I did. Is that also how you came across Lenny?

And I did explain there how it works.