DialPlan For Mexico

<< < (2/4) > >>

ChuckHL:
Thank you for you input ianobi. I went with your second rule and it works flawlesly. Just one minor change which you made me realize. Since I want that 00 and 09 to translate to dial **1, I ended putting the rule as:

Physical Interfaces -> LINE Port -> DigitMap:
(0xxS4|[1-9]xxxxxx|01xxxxxxxxxx|044xxxxxxxxxx|045xxxxxxxxxx|<00:**1>xx.|<09:**1>xx.)

ChuckHL:
My apologies for my indecision. But I have another question which I will appreciate your help.

I want to know if these rules will always work. I ended up changing my Line port digitmap rule

Physical Interfaces -> LINE Port -> Digitmap:
(0[2-8]xS4|[1-9]xxxxxx|01xxxxxxxxxx|044xxxxxxxxxx|045xxxxxxxxxx|<001:**11>xx.|<00:**2011>xx.)

The idea was pretty much the same as my previous post with the following modifications:
Disable 09x and 09xx.
Dialing 001 should be equal to dialing **1 1 (I added the extra one so that i can just dial area code and phone from the US or Canada) SP1 is my google voice and i have free calls to the US and Canada in SP1.
If I dial 001 520 555 0000 I want to mean to dial 1 520 555 0000 in SP1

Dialing 00 + country code + the rest of the numbers should be equal to dialing **2 011 + country code + the rest of the numbers in SP2 which is my callcentric account and offers very cheap international rates.
If I dial 00 23 456 7890... I want to mean to dial 011 23 467 7890... in SP2.

My question is if rule 001 in SP1 will always take place before rule 00 in SP2.

Regards

ianobi:
Looking at these two rules <001:**11>xx.|<00:**2011>xx. the matching is done ignoring the part between the ":" and the ">". Effectively the rules are 001xx.|00xx. Only after the matching is done is the transforming done - 001 is replaced by **11 and 00 is replaced by **2011. This is all done in the first stage of processing as digits are passed through the Phone Port DigitMap. The transformed number is then passed to the Phone Port OutboundCallRoute.

In the second stage the **1 and **2 are removed by these rules in the Phone Port OutboundCallRoute {(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2}

This means that 001xx. will always go to sp1, as 001 is a more specific match than 00x and 002 through to 009 will always go to sp2 as they have nowhere else to go!

ChuckHL:
Thank you very much for your thorough explanation ianobi. I understand now how it works a little bit more.
Truly appreciated.


In summary my configuration ended up like this (Settings for Obi110):
Physical Interfaces -> PHONE Port -> DigitMap:
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|06x|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Physical Interfaces -> PHONE Port -> OutboundCallRoute:
{([1-9]x?*(Mpli)):pp},{(<#:>|06x):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},
{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

Physical Interfaces -> PHONE Port -> PrimaryLine : PSTN Line

Physical Interfaces -> LINE Port -> DigitMap:
(0[2-8]xS4|[1-9]xxxxxx|01[2-9]xxxxxxxxx|044[2-9]xxxxxxxxx|045[2-9]xxxxxxxxx|<001:**11>xx.|<00:**2011>xx.)

All other settings were left as default

What it does:

                   0xx  ->  LINE Port (Dialing 09x is disabled)
             7 digits  ->  LINE Port (The first digit cannot be zero)
    01 + 10 digits  ->  LINE Port (Long distance land line) No area code start with 1 in Mexico.
   044 + 10 digits  ->  LINE Port (Local Cell Phones) No area code start with 1 in Mexico.
   045 + 10 digits  ->  LINE Port (Long distance Cell Phones) No area code start with 1 in Mexico.
                   001+  ->  SP1 Service  (001 is for international free calls to US and Canada) GVoice
                   00+  ->  SP2 Service  (00 is for international cheap calls to everywhere
                                                     except the US and Canada) Callcentric

Special thanks and all the credit to Ianobi and RonR

DownSouth:
This is a modification of ChuckHL's plan.

It allows for the free calling to the US & Canada Telmex started in 2015 with the Infinitum/local phone line packages.
I chose to use a combination of US and Mexican dialing conventions since I have people from both countries who visit or work here.
This works for either type just like they were at home.

MEXICO       0xx  ->  LINE Port (Dialing 09x is disabled) (0[2-8]xS4
                                (If you dial a 3 digit number starting with zero with the exceptions of 01X, 044, 045, 09X, and 00X,
                                 it will connect immediately without waiting for more digits otherwise 4 second wait)
              7 digits  ->  LINE Port (The first digit cannot be zero) |[1-9]xxxxxx
    01 + 10 digits  ->  LINE Port (Long distance land line) No area code start with 1 in Mexico. |01[2-9]xxxxxxxxx
                                (Since I don't live in Mexico's capital, everywhere else phones are 7 digits and 3 digits area code)
  044 + 10 digits  ->  LINE Port (Local Cell Phones) No area code starts with 1 in Mexico. |044[2-9]xxxxxxxxx
  045 + 10 digits  ->  LINE Port (Long distance Cell Phones) No area code start with 1 in Mexico. |045[2-9]xxxxxxxxx
   001+ 10 didits  ->  LINE Port (Long distance to US or Canada except toll free) |<001:**11>xx.

US  1 + 10 digits  ->  SP1 Service (Long distance to US or Canada) |<1:**11>xx.

US             011+  ->  SP2 Service  (011 is for international cheap calls to everywhere except the US and Canada) |<011:**2011>xx.)
               1777+  ->  SP2 Service  (Calls to other Callcentric #s) |<1777:**21777>xx.

Dial US/Canada numbers through Google Voice (SP1) using 1 + number
I have a CallCentric account which offers great service, cheap international rates and I have it on my device as SP2.

Additional helpful codes:
**1      ->        Dial through SP1 (in my case Google Voice). Digitmap rules for SP1 will apply.
**2      ->        Dial through SP2 (in my case CallCentric). Digitmap rules for SP2 will apply.
**8      ->        Dial through your landline. Digiamap rules for landline will apply.
**9      ->        Dial through your Obitalk to other Obitalks
#         ->        Connect directly to your landline. It is like picking up your landline directly without ObiTalk interfering).

Mexico Service numbers
020    Operator-assisted domestic collect call
030    Local time
031    Wake up service
040    Information / directory
050    Phone company hotline
060    Police
065    Red Cross
066    Emergency services
070    City hotline (not available in some cities)
071    CFE hotline (electric company)
080    Emergency services

In summary my configuration ended up like this (Settings for Obi110):

Physical Interfaces -> PHONE Port -> DigitMap:  911 replaced with 06x
Default ([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))
Mexico  ([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|06x|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Physical Interfaces -> PHONE Port -> OutboundCallRoute: 911 replaced with 06x
Default {([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li}, {(<**9:>(Mpp)):pp},{(Mpli):pli}
Mexico {([1-9]x?*(Mpli)):pp},{(<#:>|06x):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

Physical Interfaces -> PHONE Port -> PrimaryLine : PSTN Line

Physical Interfaces -> LINE Port -> DigitMap:
Default (xxxxxxxS4|1xxxxxxxxxx|xx.)
Mexico (0[2-8]xS4|[1-9]xxxxxx|01[2-9]xxxxxxxxx|044[2-9]xxxxxxxxx|045[2-9]xxxxxxxxx|<001:**11>xx.|<00:**2011>xx.)
------------------------------------------------------------------------------------------------------------------
Modifications so 1 +10 dials US or Canada with SP1. 011 dials international & 1777 dials other Callcentric customers on SP2.
(0[2-8]xS4|[1-9]xxxxxx|001[2-9]xxxxxxxxx|01[2-9]xxxxxxxxx|044[2-9]xxxxxxxxx|045[2-9]xxxxxxxxx|<1777:**21777>xx.|<1:**11>xx.|<011:**2011>xx.

All other settings were left at default.

Navigation

[0] Message Index

[#] Next page

[*] Previous page