QuoteNow I realize it was the simple colon removal that made the difference!!
You also have to remove the "<>"
_______________________________
I'm totally confused on how you're routing calls to Raspbx, so I'll just explain my setup.
I have an OBi200 with SP3 registered to Raspbx as extension 1000
I have an OBi110 without an open SP trunk, so I have a VG pointing to Raspbx as extension 2000.
I changed the port number in Raspbx, so the VG definition looks like this:
AccessNumber: sp2(xx.xx.xx.xx:pppp)
AuthUserID: 2000
AuthPassword: password
I use a zero prefix to route calls to Raspbx in both devices.
I strip off the zero before routing the call.
Raspbx outbound routes looks like this:
Trunk1
Pattern: NXXNXXXXXX
CallerID: 1000
Trunk2
Pattern: NXXNXXXXXX
CallerID: 2000
You can use a prefix OR extension number to route calls.
It's redundant to use both.
______________________________
The 403 error means Forbidden.
My Raspbx doesn't require my extension to be registered.
Maybe your version does.
My OBi110 isn't registered to Raspbx.
I do have a trunk defined on Raspbx pointing to the OBi110.
I need this trunk, so Raspbx knows the IP address of the OBi110.
If I route inbound OBi110 calls to Raspbx without this trunk defined, the call will be treated as anonymous and be rejected with I think a 403 error.
You are supplying credentials, so it shouldn't be considered anonymous, but maybe it will.
You can try defining a trunk pointing to your OBi on Raspbx and see if it clears the 403 error.
Define it like this:
Trunk Name: OBixxx
Outbound CallerID: any number
Peer details:
type=peer
username=anything
host=xx.xx.xx.xx (OBi IP address)
port=5061
canreinvite=no
insecure=invite,port
qualify=yes
No Register String
__________________________
It's a mystery to me why removing the VG access number works.
___________________________
QuoteWhile it seems this will allow multiple outgoing calls. Only incoming calls registered to a proper spX will ring, right?
You can change the extension definition to route inbound calls to the IP address of the OBi.
The default Dial command looks like: SIP/2000
Change it to: SIP/0@xx.xx.xx.xx:5061
That's the IP address and port of SP2 on the OBi.
The OBi SP2 inbound call route must be able to accept this call.
Edit:
If you use a prefix to route outbound calls, you only need to define 1 extension.
Route all prefixes to the same extension then have 2 outbound routes.
I don't know if you need to route inbound calls to different destinations.