News:

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

Main Menu

Blocking Multiple Area Codes

Started by ScottZ0, January 25, 2021, 07:25:42 PM

Previous topic - Next topic

ScottZ0

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

azrobert

#1
{(+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.

ScottZ0

Thank you!!! That was exactly what I needed.

Scott