hi, ianobi,
No wonder you are marked as "hero member." Your help is greatly appreciated! I mixed my two accounts. NewY and Xibai are one person. So double thanks to you.
Your approach does make sense. However, I got a message "the number you dialed is rejected" when I intentionally make sp2 "register failed" to test the switch. Apparently, it did not automatically switch to LINE, which is I tested good.
Following is my configuration. Please have a look if you have time:
I call china (86) frequently so
General -> DigitMap>ITSP A
(<**2>[86]x.|*xx|1xxxxxxxxxx|<1607>[2-9]xxxxxx|<1>[2-9]xxxxxxxxx|011xx.|xx.|(Mipd)|[^*]@@.)
PhonePort: DigitMap
([1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|911|**0|***|#|**1(Msp1)|**2(Mtg2)|**8(Mli)|**9(Mpp)|(Mpli))
PhonePort:OutboundCallRoute
{([1-9]x?*(Mpli)):pp},{(<#:>|911):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Mtg2)):tg2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
GateWays & TrunkGrps
TrunkGroup2
TrunkList: sp2,li,sp1
DigitMap: ((Msp2)|(Mli)|(Msp1))
I setup a trunkgroup 2, which includes three channels. My intention is that since both sp2 and Line actually use same callwithus. If callwithus's service down, it will switch to google to make international calls, even though google is a bit expensive.
Let me know where I did wrong. Again, thanks.