Important Notice: This article contains outdated content and is here for archival/informational purposes. For the 3CX Session Border Controller view: https://www.3cx.com/docs/3cx-tunnel-session-border-controller/
What is the 3CX SIP Proxy manager?
The SIP Proxy Tunnel can combine all SIP (signaling) and RTP (media) VoIP Packets from one location (typically a remote office) and deliver them to and from another location (typically the PBX Server) using a custom TCP protocol. This simple concept allows us to exploit the SIP Proxy Tunnel to overcome difficult situations, or to simplify a network scenario.
The SIP Proxy Tunnel can be used for the following reasons:
- Resolve issues of NAT Traversal at both the remote and the PBX location
- Simplify Firewall configuration at both the remote and the PBX location
- Overcome difficulties with ISPs that block VoIP Traffic based on port numbers
- Allows VoIP-over-WiFi in some restricted locations, such as Hotel rooms
- “Fixes” Firewalls that cannot handle VoIP traffic correctly or which are very difficult or problematic to configure correctly, such as:
- Microsoft ISA Server
The above diagram shows a typical scenario for implementing the SIP Proxy Tunnel in a remote location. To take advantage of this configuration, we need to configure all the SIP Phones in the remote LAN (192.168.0.x) to communicate with the PBX Server (10.0.0.181) using the SIP Proxy Tunnel on 192.168.0.2.
- 3CX PhoneSystem installed in the Office LAN
- Port Forwarding to the 3CX Phone System machine for incoming tunnel connections
- Configure the NAT device in the Office LAN to forward all packets to TCP:5090 to the PBX Server machine.
- The Public IP Address of the internet connection in the Office LAN. This must be a Static IP Address.
- The Private IP Address of the 3CX Phone System machine in the Office LAN. This must be a Static IP Address.
- The Private IP Address of the machine in the remote LAN where we will be installing the SIP Proxy Tunnel application.
- The Tunnel Password configured on the 3CX Phone System machine.
For the purpose of this setup we shall assume the following:
- Public IP address of the 3CX Server site: 220.127.116.11
- Internal IP address of the 3CX Server : 10.0.0.181
- IP address of your remote PC that will act as proxy: 192.168.0.2
- IP address of the hard phone that will use the proxy: 192.168.0.3
- Tunnel Password: abc
Step 1: Configuring the 3CX Phone System in the main office
- From the 3CX Phone System web interface access the “Settings > Network” node and click on the “Tunnel” tab.
- Enter a password for the tunnel (default is “abc”).
- Select the Internet-facing NIC IP Address from the dropdown list.
- Enter the Tunnel listening port – you can leave the default port number ‘5090’ unless you have a need to change this – if this is changed, port forwarding rules on the Office router will need to updated.
Step 2: Configuring the 3CX SIP Proxy Manager at the remote site
At the remote site choose a PC that has internet access and install the 3CX SIP Proxy Manager. This is a simple application that will install the 3CX Tunnel Service and start it.
- On the machine which will be running the tunnel to the 3CX Phone System, install the SIP Proxy Manager.
- Launch the SIP Proxy Manager.
- In the “SIP Listener IP address” field choose the IP Address on the SIP Proxy Tunnel machine which has internet access (in this example: 192.168.0.2).
- Leave the “SIP Listener Port” as default on 5080 – unless you have a need to change this.
- In the “Server Public IP address” field enter the public IP Address of the Office LAN (in this example: 18.104.22.168).
- Leave the “Server Tunnel Port” at the default value “5090”, unless you have changed your 3CX Phone System Tunnel Port while configuring the 3CX Phone System side.
- In the “Server Tunnel Password” to the same password used while configuring the 3CX Phone System side (in this example: “abc”)
- Click on the “Save Settings” button to commit your settings to the configuration file.
- Select the “File > Tunnel Proxy > Stop Tunnel” menu option to stop the Tunnel Service.
- Select the “File > Tunnel Proxy > Start Tunnel” menu option to start the Tunnel Service with the new settings.
Now that you have configured the SIP Proxy Manager, you will need to configure the phones to connect to the PBX using the SIP Proxy Manager as a Proxy. The easy way to do this is to provision the phones as remote extensions.
The alternative is to configure the phones manually.
Configuring a Cisco SPA5XX series SIP phone to connect via the Tunnel
- Click on the “Ext1” Tab
- In the “Proxy and Registration” section:
- In the “Proxy” field enter the IP address of the 3CX Phone System machine you want to connect to – in this example it is 10.0.0.181
- In the “Outbound Proxy” field enter the local ip and port (default is 5080) of the sip proxy manager computer. In this example it is 192.168.0.2:5080
- Set “Use Outbound proxy” to YES
- Set “Use OB Proxy in Dialog” to YES
- Set the Subscriber Information as you would normally
- Click the “Submit All Changes” button at the bottom of the page
Currently the Tunnel Protocol included with the SIP Proxy Manager cannot be used with Aastra and Polycom phones since Aastra uses SIP headers which the current Tunnel does not handle. There is no known workaround for this limitation.