Configuring a VoIP Gateway
On this topic
To make outbound calls on the PSTN you need to configure at least one SIP Trunk / VoIP Provider or VoIP gateway.
Step 1: Find the VoIP Gateway and Update its Firmware
First, you need to connect the gateway and update its firmware with these steps:
- Connect the gateway to the network and note its IP:
- For a beroNet, use the “bfdetect” tool. More info on Configuring beroNet beroFIX.
- For a Patton, use the “SmartNode” Discovery Tool. More info on Connecting A SmartNode to the network.
- Login via the device’s web interface and update the firmware to the latest version.
- Assign a static IP and note this IP.
Step 2: Configure the VoIP Gateway in 3CX Phone System
The second step is creating and configuring the VoIP gateway in 3CX Management Console:
- Update 3CX to use the latest gateway template from “Dashboard” > “Updates”.
- In the 3CX Management Console, click on the “SIP Trunks” function and then click on “Add gateway”.
- Select the “Brand” and the “model/device”.
- Enter the “Number of Physical PSTN ports on the device”.
- Enter the “Main Trunk Number” associated with the gateway and click “OK” to add and open the gateway options page.
- Now enter a name for the “Trunk” (VoIP gateway).
- Enter the Hostname or IP of the VoIP gateway in the “Gateway Hostname or IP” field, and specify the SIP Port on which the gateway is operating (default is 5060).
Important: Do not change the “SIP User ID” and “Password” fields in the “Authentication” section. The device is provisioned and registered with 3CX with these.
- Configure routing for calls only for the main trunk number.
- If you have DID numbers, click on the “DIDs” tab and then “Add DID” to add the DID number(s) associated with your account and create an inbound rule for each DID linked to the operator extension. You can change this later from the “Inbound Rules” function.
Step 3 - Upload the Configuration File to the VoIP Gateway
- Once you have created the VoIP gateway connection, click on the “Generate device config” at the top, to create a file to upload to the gateway to configure it.
- If using a berofix, this will open a browser to configure the gateway remotely.
- If using a Patton, the button downloads a config file that you must upload to the gateway. See the configuration guides for Patton.
- If using a Grandstream, the button downloads a config file to the provisioning folder and the provisioning URL must be configured on the gateway. See the configuration guides for Grandstream.
- Your PSTN lines are now ready for use with 3CX.
Step 4: Create an Outbound Rule to Route Calls Over the PSTN Gateway
Now you need to create an outbound call rule that routes calls over the gateway device, using these steps from the “Outbound Rules” function:
- Click “Add” to create a new rule and specify its name.
- Define the rule options for the calls to be routed via this gateway.
- In the “Make Outbound Calls” section select the trunk you just created.
- Click “OK” to create the outbound rule.
Note: See more detailed information on creating Outbound rules.
- See the Firewall & router configuration to configure your firewall / router / NAT device.
- Find more about Outbound and Inbound rules.
- How much dedicated bandwidth do I need for VoIP? See the Bandwidth overhead over DSL connections guide to find out.
- See the list of 3CX supported SIP Trunk Providers.
- Configure beroNet berofix / Small Business / 400 / 1600 / 6400 – 1 or 4 BRI/E1 | GSM | FXO | FXS
- Grandstream GXW4104 – 4 port FXO
- Patton SmartNode 4112, 4114 – FXO (analog lines) & FXS (fax)
- Patton SmartNode 4970 – T1 & E1 (1 or 4 port)
- Patton SmartNode 4120 – ISDN BRI (1 & 2 port)
- Connecting a SmartNode to the network
- Watch the Configuring VoIP Providers / SIP Trunks training video
- Watch the Configuring the Firewall training video
- Watch the Configuring Inbound Routing training video
- Watch the Configuring Outbound Routing training video