Trouble with OBi212 as FXO for FreePBX
azrobert:
Quote from: legotech on November 28, 2018, 05:19:38 pm
Anyone have any other ideas?
I don't think it's an OBi212 problem. 401 is an unauthorized error.
In FreePBX click Settings -> SIP Settings -> Chan SIP Settings
Bind Port is the port number you need to use.
Click on Chan PJSIP Settings. Make sure the bind port is different than the SIP bind port.
This should be set to the Chan SIP bind port:
Voice Services -> SP2 Service -> ProxyServerPort
Make sure this is set correctly:
Voice Services -> SP2 Service -> X_ServProvProfile: B
drgeoff:
I don't take any credit for the method I used above. It was taken directly from one of the threads on this forum. Agreed that it requires an SP slot but that should not be a problem for someone with an OBi212 which has 4 SP slots. One for the analogue phone port, one for the trunk between it and the PBX and up to 2 for GV accounts. Any other ITSPs would be configured as PBX trunks. Needa bit of adding prefixes (at the PBX) and removing them (at the Obi) to signal which of LINE, SP1 or SP2 the PBX wants to send a call to.
Today I've been able to try the same method connecting an OBi200 as another trunk to the same FreePBX. The only configs I made on the OBi200 were:
Service Providers, ITSP Profile B, Proxy Server. I entered the local IP address of the FreePBX machine.
Voice Services, SP2 Service, X_ServProvProfile. I selected B.
Voice Services, SP2 Service, AuthUserName. I entered OBITRUNK2.
Voice Services, SP2 Service, Authpassword. I entered the same string as used for the secret in the PBX trunk config.
Used the "copy trunk" option in FreePBX. Changed OBITRUNK1 to OBITRUNK2 in the relevant places.
Shows as registered in the OBi200 Status page and shows as a peer in FreePBX.
legotech:
Quote from: azrobert on November 28, 2018, 06:37:37 pm
In FreePBX click Settings -> SIP Settings -> Chan SIP Settings
Bind Port is the port number you need to use.
Click on Chan PJSIP Settings. Make sure the bind port is different than the SIP bind port.
This ended up being the root of the issue. In FreePBX, the port was 5160, which I didn't expect nor read about anywhere (everything uses 5060, 5061, etc.). Changed the port settings for ITSP Profile B (used by SP2) to use port 5160 instead of 5061 and all was well.
Thanks,
Danny
Navigation
[0] Message Index
[*] Previous page