3CX is a very popular IP Phone system in the world. Lots of customers might consider replacing the Analog Phone system to 3CX and connecting their remote offices together. In some cases, a customer may deploy 3CX system in one or two offices firstly and keep using the exist Analog Phone system for a certain period before they completely moving to 3CX.
VOPTech offers a solution to meet this kind of requirement by its multi-ports VoIP Gateway. Extensions of the Analog PBX and 3CX system can call each other directly.
First of all, you need an FXO gateway and an FXS gateway. The FXS port of the Analog PBX connects to the port of the FXO gateway. The FXO port of the Analog PBX connects TO the port of the FXS gateway. The analog extension of the PBX dial the SIP extensions of 3CX through the FXS gateway. The SIP extension of 3CX dial the analog extension of the PBX through the FXO gateway.
topology

Second, we need to add an extension for FXS gateway in 3CX web page.
add-extension

Enter the user information. Here we set 7002.

extension1

Keep the authentication ID the same as the extension, and enter a password. Click ok.

extension2

Next, log into the web interface of the FXS gateway. Enter 3CX IP address in registrar server and proxy server. Change the registration mode to per gateway. Then enter the username and password you just set up in 3CX. Save it.
register-fxs
Check the register status in the gateway, here it is successful.
register-success
You can also check the register status in 3CX. Green means the extension register succeeded.
Extension-Status
The third step, we need to add a gateway in sip trunk of 3CX system.
add-gateway
Follow the options in the picture.Fill the Main Trunk NO what you want to display in 3CX when FXO dial 3CX.
pstn-gateway
Enter a name for the trunk. Fill in the FXO IP address into next line.
Trunk-Details
Choose the type of authentication to IP based.
SipTrunks
Next, create a new outbound dial rule.3CX system needs to know what you want to send to FXO gateway. If you intend to dial 2+extension number to FXO gateway, you can enter 2 in the prefix line.Length line means the length of extension number(include prefix).
We choose SIP Trunk in Make outbound calls on and choose the length of the prefix in Strip Digits.
Outbound

And then, sign in FXO’s web page to change the routing table like the screenshot.
The Routing rule in screenshot means calls send to FXO gateway all route to FXO3(the FXS port which connects with analog PBX).
FXO-route
Complete the above steps, You can dial between the 3cx and PBX each other.If 7011 is the extension of 3CX, and 801 is the extension of analog PBX.We can dial 2801 to make a call with 801.And 801 can dial 97011 to make a call with 7011(9+number is configured in the analog PBX outbound rules ).