Quote from: Sunfiregt on February 01, 2012, 11:44:16 AM
(<**8>[2-9]11|1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<**8>[2-9]xxxxxx| <**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx)|011xx.|(Mipd)|[^*#]@@.'@'@@.)
I consider myself to be a smart & technical guy, but this stuff is blowing my mind!
Please help me interpret what I am seeing.
<nnn> is a prefix to be added if the pattern that follows matches.
<**8> is the prefix that somewhere later says, send this to PSTN.
If <**n> is not specified, I assume that means nothing explicitly specified so route the call to the "default" PrimaryLine.
<**8>[2-9]11 - Matches if [2-9]11 is dialed. Prefixes the number with **8 (to force PSTN).
The pipe "|" means "or" (like || in ksh or awk).
1xxxxxxxxxx - Matches an 11 digit number starting with a 1. No ** prefix so off to PrimaryLine it goes.
<1>[2-9]xxxxxxxxx - Matches 10 digit number starting with [2-9] (Area Code) and add the "long distance" 1. No ** prefix so off to PrimaryLine it goes.
<**8>[2-9]xxxxxx - Matches 7 digit "local" number, Prefixes the number with **8 (to force PSTN).
<**8>(18(00|88|77|66|55)xxxxxxx|<1>8(00|88|77|66|55)xxxxxxx) - Covers all the "free" phone numbers and prefixes the number with **8 (to force PSTN).
011xx. - For International dialing, No prefix so off to PrimaryLine it goes.
I assume this would work to route international via SP1?: <**1>011xx.
(Mipd)|[^*#]@@.'@'@@.) - Is this condition for something more than just number pattern matching?
No clue what the Mipd bit means.
Maybe wilcard@wildcard for some kind of IP telephony address?
Living in Metro Atlanta we have 10-digit dialing for 404, 770 & 678 area codes. All other domestic LD area codes require a 1 prefix (inter & intra state).
When a pattern is matched, does it stop searching?
So if I insert the "<**8>(404|770|678)xxxxxxx" test before "<1>[2-9]xxxxxxxxx" will it route my 10 digit local numbers (404/770/678) to PSTN?
If so, I'm thinking my digit map would look something like this, note I am explicitly routing everything and not relying on the PrimaryLine to be set to anything in particular:
(<**8>[2-9]11|<**8>(404|770|678)xxxxxxx|<**1>1xxxxxxxxxx|<**11>[2-9]xxxxxxxxx|<**8>(18(00|88|77|66|55)xxxxxxx|<**81>8(00|88|77|66|55)xxxxxxx)|<**1>011xx.|(Mipd)|[^*#]@@.'@'@@.)
Am I close or am I as lost as I feel? (If I am close then writing it all down has clarified some of it in my mind).
I appreciate the time of ANYONE that wants to wade through this with me :)
Many Thanks In Advance.
JHam