OBiTALK Community

General Support => Day-to-Day Use => Topic started by: ScottZ0 on January 25, 2021, 07:25:42 PM

Title: Blocking Multiple Area Codes
Post by: ScottZ0 on January 25, 2021, 07:25:42 PM
Hi All,

I am getting spam/scam calls from multiple area codes. While reading previous posts I saw to edit X_InboundCallRoute. I added this value {(+1?202xxxxxxx):},{ph} and it works perfect. If I wanted to add an additional area code ie: {(+1?954xxxxxxx):},{ph} to that value, what should be entered. Do I need to make it {(+1?202xxxxxxx):},{ph},{(+1?954xxxxxxx):},{ph}. Is there a different value I need to add?

Thanks,
Scott

obi202
Google Voice
Title: Re: Blocking Multiple Area Codes
Post by: azrobert on January 25, 2021, 08:49:52 PM
{(+1202xxxxxxx|+1954xxxxxxx):},{ph}

"1?" will match a number with or without the country code.
GV always sends the country code, so the "?" is not needed.
To test for multiple numbers, separate them with a vertical bar.

{(+1?202xxxxxxx):},{ph},{(+1?954xxxxxxx):},{ph}
Rules are enclosed by {}
They are processed left to right.
Once a rule routes the call, processing stops.
{ph} is unconditional and will always route the call to the phone port, so the next rule will never be reached.
You could do this:
{(+1?202xxxxxxx):},{(+1?954xxxxxxx):},{ph}

The routing destination is after the ":".
When no destination is specified, the call is blocked.
Title: Re: Blocking Multiple Area Codes
Post by: ScottZ0 on January 25, 2021, 09:09:11 PM
Thank you!!! That was exactly what I needed.

Scott