TryLearn More

Use SIP trunks, WebRTC & Apps

Slash your Phone Bill by 80%

Configuring a VoIP Gateway

On this topic

Introduction

Step 1: Find the VoIP Gateway and Update its Firmware

Step 2: Configure the VoIP Gateway in 3CX Phone System

Step 3 - Upload the Configuration File to the VoIP Gateway

Step 4: Create an Outbound Rule to Route Calls Over the PSTN Gateway

See Also

Introduction

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:

  1. Connect the gateway to the network and note its IP:
  1. Login via the device’s web interface and update the firmware to the latest version.
  2. 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:

  1. Update 3CX to use the latest gateway template from Dashboard > Updates.
  2. In the 3CX Management Console, click on the SIP Trunks function and then click on Add gateway.
  3. Select the Brand and the model/device.
  4. Enter the Number of Physical PSTN ports on the device.
  5. Enter the Main Trunk Number associated with the gateway and click OK to add and open the gateway options page.
  6. Now enter a name for the Trunk (VoIP gateway).
  7. 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.

  1. Configure routing for calls only for the main trunk number.
  2. 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

  1. 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.
  2. If using a berofix, this will open a browser to configure the gateway remotely.
  3. If using a Patton, the button downloads a config file that you must upload to the gateway. See the configuration guides for Patton.
  4. 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.
  5. 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:

  1. Click Add to create a new rule and specify its name.
  2. Define the rule options for the calls to be routed via this gateway.
  3. In the “Make Outbound Calls” section select the trunk you just created.
  4. Click OK to create the outbound rule.

Note: See more detailed information on creating Outbound rules.

See Also

Free for up to 1 year! Select preferred deployment:

On-Premise

for Linux on a $200 appliance or as a VM

Get the ISO

On-Premise

for Windows as a VM

Download the setup file

On the cloud

In your Google, Amazon, Azure account

Take the PBX Express