DialPlan confusion
azrobert:
To simplify the explanation, I removed all the rules not necessary for the main processing.
Profile A:
(*123|*xx|1xxxxxxxxxx)
Profile B:
(1xxxxxxxxxx|011xx.|<1>[2-9]xxxxxxxxx|xx.)
Phone Digit Map:
((Msp1)|**1(Msp1)|(Mpli))
Phone Outbound Call Route:
{(*123|*xx|1845111222):sp1},{(<**1:>(Msp1)):sp1},{(Mpli):pli}
Processing when Primary Line = SP2
The dialed number must match a rule in the phone digitmap.
(Msp1) includes all rules in profile A
**1(Msp1) includes all rules in profile A with a prefix of **1
(Mpli) includes all the rules in the primary line (profile B) digitmap.
All combinations of numbers you need are included.
If you dial a number not in these digitmaps the call will FAIL with a fast busy.
This is why you need profile A digitmap.
If the dialed number matches a rule, the phone outbound route gets control.
Outbound route processing:
You don't need to use a SP digitmap like I did with the 1st rule.
You can compare the dialed number to anything you want and then route the call to any trunk.
(Mpli) points to the primary line digitmap.
pli points to the primary line.
Processing when Primary Line = TG1
Trunk List: sp2,sp1
DigitMap: ((Msp1)|(Msp2))
(Mpli) in the phone digitmap now points to TG1 digitmap
TG1 digitmap includes both profile A and B digitmaps.
Since profile A digitmap is included here, you don't need (Msp1).
It doesn't hurt to leave it and now both options (primary line SP2 or TG1) have the same digitmaps.
All needed rules are included in the phone digitmap.
{(Mpli):pli} in the outbound route is processed differently.
(Mpli) points to TG1 digitmap which includes profile A & B digitmaps.
Upon a match the TG gets control and processes the trunk list left to right.
Processing SP2 the dialed number is compared to profile B digitmap.
If there is a match the call is routed to SP2.
If there isn't a match with profile B or the call fails, processing proceeds to SP1.
The dialed number is compared to profile A digitmap.
If SP2 is down, an 11 digit number will match profile A digitmap and be routed to SP1.
Navigation
[0] Message Index
[*] Previous page