I followed the tutorial for Hosted PBX and everything works as expected when using a single PBX behind FreeSBC. Users from the outside register via FreeSBC and registrations are forwarded to the PBX.
How do I go about adding support for an additional PBX/domain? The docs are a bit light on content and I’m missing a few concepts.
Here’s what I’ve done so far:
1. Created a new NAP with the second PBX’s IP address as the “Proxy Address” 2. Created a new SIP domain/registrar entry for second PBX 3. Added the domain created in step 2 to the “OPEN_NAP”. So the open_nap has two domains now, domain1 and domain2. (not sure if I should have done this)
What you had done for 1 - 3 is correct. Then, you would create another route, same as you did for the first PBX, to and from PBX. And now you probably have two routes (one to PBX1 and one to PBX2) that will match calls from different users from OPEN NAP to different PBXs. To shorten the time, you can differentiate the different calls (say, from its calling domain) by specifying it in the calling, for example. Starting from 3.0.114, we also support forwarding the domain in To and From fields from phones to PBX, depending whether your PBXs requiring to see this domain in From field in order to establish a successful call.
That did it! I didn’t realize I could route based on domain in the “called” and “calling” route fields.
For anyone else trying to do the same thing here’s how I setup the routes. This assumes your two domains are: domain1.domain.com and domain2.domain.com