News:

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

Main Menu

Crazy Ring patterns, Callerid always shows out of area for all calls?

Started by Sandia505, March 15, 2016, 11:57:04 AM

Previous topic - Next topic

Taoman

Quote from: ianobi on March 24, 2016, 08:28:35 AM

In the US it would be fine to be more precise. If your Call History shows all calls coming in are eleven digits starting with "1", then this:
{(<1:>@@.):ph}
could be rewritten as
{(<1:>xxxxxxxxxx):ph}


Thanks. Since you're being so bloody helpful another question perhaps?  ;)

Most of my incoming lines don't have the leading "1" so I have nothing to remove (unless it's a call from local area code). So this is what I came up with to try and catch all other incoming calls which works fine:

{(<?:X*>@@.):ph} (where X is the specific SP trunk)

Using the ? was the only way I could figure out to match all other incoming calls. Is there a better way?

ianobi

Quote{(<?:X*>@@.):ph} (where X is the specific SP trunk)

In this context I'm not sure that the "?" is doing anything. {(<:X*>@@.):ph} or {(<X*>@@.):ph} which are effectively the same will prepend X* to all incoming CallerIDs.

The rules in the InboundCallRoute are processed from left to right. If you had {(<X*>@@.):ph} as your last but one rule, then it should match any CallerIds not matched by any of the preceding rules. The last rule should probably be {ph}, which will pick up any or no CallerID (anonymous) calls, unless you specifically want to ban anonymous calls.

Generally, in InboundCallRoutes "?" is used to match anonymous calls, that is calls with no CallerID. That use might change if it's placed within brackets () as it is now within a digit map. Very confusing!

I would need to do what RonR called "empirical testing" or "trial and error" as I call it   :)  to be sure of any of the above. I will be busy over the next day or two, but may come back to it.

Taoman

Quote from: ianobi on March 24, 2016, 11:10:15 AM
Quote{(<?:X*>@@.):ph} (where X is the specific SP trunk)

In this context I'm not sure that the "?" is doing anything.

Doh! You're absolutely right. The "?" wasn't doing anything. Thanks again.