QuoteI guess I had it backwards concerning the order of the maps. Assuming that the line port is the phone's primary line and that there is no match prior to Mpli in the outgoing route then we jump to the line port's map. Do I have that right?
You don't have it right. The "Best" (more precise) match will be used. After dialing 3333, 3xxx in the Line digit map will be used when you have xxxx in the phone digit map.
QuoteThe phone port has an outgoing route and a digit map. How do they work together?
Routing is not automatic. You must have a rule in the outbound route.
{(Msp1):sp1}
The dialed number or a number modified in the phone digit map matching the SP1 digit map will be routed to SP1.
You can do anything you want in the outbound route. I do not recommend the following and it would be confusing, but you could do it:
{(Msp2):sp1}
The dialed number or a number modified in the phone digit map matching the SP2 digit map will be routed to SP1.
Anything between the parentheses is considered a digit map, so you can do this:
{(011xx.S3):sp1}
I don't like adding "**x" prefix in the phone digit map, so this is how I would code your requirements:
Phone digit map:
((Msp1)|(Msp3)|[1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|##|**70(Mli)|**8(Mbt)|**81(Mbt)|**82(Mbt2)|**1(Msp1)|**2(Msp2)|**3(Msp3)|**4(Msp4)|**9(Mpp)|(Mpli))
Phone outbound route:
{(18(00|88|77|66|55|44)xxxxxxx):li},{(Msp2):sp2},{(Msp3):sp3},{([1-9]x?*(Mpli)):pp},{(<##:>):li},{(<**70:>(Mli)):li},{(<**82:>(Mbt2)):bt2},{(<**81:>(Mbt)):bt},{(<**8:>(Mbt)):bt},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Msp3)):sp3},{(<**4:>(Msp4)):sp4},{(<**9:>(Mpp)):pp},{(Mpli):pli}
ITSP B digit map:
(1xxxxxxxxxx)
ITSP C digit map:
(011xx.S3)
Line digit map:
([2-9]xxxxxxxxx|xxx)