Make the following change in OBi #1:
Voice Services -> SP2 Service -> X_InboundCallRoute:
{exten>([1-9]x?*@@.):pp},{exten>(<**1:>(Msp1)):sp1},{exten>(<**2:>(Msp2)):sp2},
{exten>(<**8:>(Mli)):li},{exten>(<**9:>(Mpp)):pp},{exten>(Mpli):pli},{exten:},{ph}
Note: Replace pli above (2 places) with your PrimaryLine trunk name (sp1,sp2,li,pp,tg1) as the OBi won't.
Replace exten above (7 places) with the Peer Number shown on incoming calls to SP2 from Asterisk.
Make the following changes in both OBi #1 and OBi #2:
Voice Services -> OBiTALK Service -> InboundCallRoute:
{(Mcot)>(Mpli):pli},{(Mcot)>(<*1:>(Msp1)):sp1},{(Mcot)>(<*2:>(Msp2)):sp2},{(Mcot)>(<*8:>(Mli)):li},
{(Mcot)>(<*9:>(Mpp)):pp},{(Mcot)>(<**1:>(Msp1)):sp1},{(Mcot)>(<**2:>(Msp2)):sp2},
{(Mcot)>(<**8:>(Mli)):li},{(Mcot)>(<**9:>(Mpp)):pp},{(Mcot):aa},{ph}
Note: Replace pli above (2 places) with your PrimaryLine trunk name (sp1,sp2,li,pp,tg1) as the OBi won't.
User Settings -> User Defined Digit Maps -> User Defined Digit Mapx:
Label : cot
DigitMap : (200123456)
Note: These are trusted caller OBiTALK numbers.
In OBi #1, use OBi #2's OBiTALK number. In OBi #2, use OBi #1's OBiTALK number.
In the PHONE Port and Auto Attendant DigitMap's, replace [1-9]x?*(Mpli) with [1-9]x?*@@.
In the PHONE Port and Auto Attendant OutboundCallRoute's, replace {([1-9]x?*(Mpli)):pp} with {([1-9]x?*@@.):pp}
Set OBi #1 Speed Dial #2 to PP(ob200123456) where 200123456 is OBi #2's OBiTALK number.
From CSipSimple, you should be able to dial any number out any trunk of either OBi #1 or OBi #2:
18005551212 -> OBi #1 PrimaryLine
**1 18005551212 -> OBi #1 SP1 Service
**2 18005551212 -> OBi #1 SP2 Service
**8 18005551212 -> OBi #1 LINE Port
**9 200123456 -> OBi #1 OBiTALK Service
2*18005551212 -> OBi #2 PrimaryLine
2 **1 18005551212 -> OBi #2 SP1 Service
2 **2 18005551212 -> OBi #2 SP2 Service
2 **8 18005551212 -> OBi #2 LINE Port
2 **9 200123456 -> OBi #2 OBiTALK Service