Hi nathanyang0428,
I see no one has followed up on your inquiry for some time now, and so I thought I would respond. I may not be able to resolve your issue(s), but perhaps if we work on it together, we might make some progress.
First, I would change the following:
Voice Gateway3 -> DigitMap -> (xx.)
Physical Interfaces -> PHONE Port -> PrimaryLine -> SP1 Service
That should send US&Canada long distance calls to SP1 without any custom rules. Then, I would change your OutboundCallRoute from what you have...
{911:sp2},{<1>aaaxxxxxxx:sp2},{<1>bbbxxxxxxx:sp2},{1xxxxxxxxxx:sp1},{011xx.:vg3},{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Mvg3)):vg3},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
to
{911:sp2},
{<1ABC>[2-9]xxxxxx:sp2},{<1>ABCxxxxxxx:sp2},{<1>(800|888|877|866|855)xxxxxxx:sp2},{1xxxxxxxxxx:sp1},{
(011xx.
):vg3},{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**3:>(Mvg3)):vg3},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
...where
ABC is your local area code. Now, you should also be able to dial 7-digit numbers for your local calls.
With your existing setup, are you able to dial out using
voip.ms when you press the **3 and then the number? I just want to double-check that your **1, **2, and **3 prefixes work successfully when manually dialed before the desired telephone number. Obviously, if manually dialing **3 does not function properly, then these other modifications will likely not work either.
Let me know you think,
pc44