Voice Services -> Gateways and Trunk Groups
Voice Gateway1
Name: LocalPhone
AccessNumber: sp2(localphone.com)
DigitMap: (1xxxxxxxxxx|<1>[2-9]xxxxxxxxx|<1aaa>xxxxxxx|011xx.)
aaa = Your local area code
Add any other patterns you need
AuthUserID: Your_LP_UserID
AuthPassword: Your_LP_PW
Trunk Group1
TrunkList: vg1
DigitMap: (Mvg1)
Physical Interfaces -> Phone Port
Add following to the DigitMap
**3(Mvg1)|
It can be anywhere, but add it after **2(Msp2)|
Add following to the OutboundCallRoute:
{(<**3:>(Mvg1)):vg1},
It can be anywhere, but add it after {(<**2:>(Msp2)):sp2},
Dial **314805551212 to route call to LocalPhone.
Set TG1 as the Phone Port Primary route when you want to route calls to LP without a prefix.
You cannot set a Voice Gateway as the Primary Route.
Pointing TG1 to a Voice Gateway then making TG1 the primary route is a trick to circumvent this restriction.