The following is how I setup RasPBX and an OBi110. I designed this method by myself. I modeled it the way 2 OBi devices can talk to each other. This is different than other tutorials I've seen. They have the OBi110 register as an extension. I don't and route inbound Line calls to the IP address of Asterisk. This requires you to define a trunk on FreePBX with the IP address of the OBi110. Without this trunk Asterisk will treat the call as Anonymous and reject it. I dumped RasPBX because GoogleVoice stopped working. I'm now using Incredible PBX on my Raspberry Pi. I only have a GoogleVoice trunk defined, so I'm not setup to test and see if this method still works with a newer version of FreePBX/Asterisk.
Asterisk:
Setup an outbound trunk without registration for the OBi110:
Peer Details:
type=peer
username=OBi110
host=192.168.1.110 (IP Addr of OBi110)
port=5060 (Port# of SP1)
canreinvite=no
insecure=invite,port
qualify=yes
OBi110:
SP1 must be defined as an SIP trunk to send/receive to/from Asterisk.
Setup a dummy SIP definition like this:
Service Providers -> ITSP Profile A -> SIP -> ProxyServer: 127.0.0.1
Service Providers -> ITSP Profile A -> SIP -> X_SpoofCallerID: Checked
Voice Services -> SP1 Service -> AuthUserName: OBi110
Voice Services -> SP1 Service -> X_RegisterEnable: (unchecked)
Route outbound calls from Asterisk to Line
Voice Services -> SP1 Service -> X_InboundCallRoute: li
Route inbound Line calls to Asterisk
Physical Interfaces ->Line Port -> InboundCallRoute:
sp1(900@192.168.1.100:5060) (Asterisk IP address and port)
900 is an extension or you can setup an inbound route for 900