1 Configuring A VoIP Gateway
randolphdicker edited this page 2025-07-03 12:31:59 +08:00


Traditional PSTN phone lines are still a fantastic way to make calls and in some regions the only way. Either the internet does not permit it or standard telecom providers provide phone lines via a gateway on property only. These lines then require to be plugged into a VoIP Gateway and connected to 3CX. You can find out more about VoIP Gateways here - What is a VoIP Gateway

Which VoIP Gateway?

Whilst 3CX does not straight support VoIP Gateways, we do recommend the list below producers: Patton, Beronet and Grandstream.

These vendors test their products with 3CX and recognize with it. For any technical support you need to speak directly with the supplier in question. The offered technical support for the entrance must be a crucial point in the purchasing choice!
arapahoe.edu
How it Works

The basic logic of configuring a VoIP entrance is to configure the entrance as a SIP trunk into 3CX. It's not actually a SIP Trunk due to the fact that the direction of registration is different. A SIP Trunk will constantly be configured to enable 3CX to register to it. The VoIP gateway SIP trunk signs up with 3CX. Some VoIP Gateways now permit IP based registration and could hence be set up as a regular SIP Trunk if you prefer. This is the primary difference in between a SIP trunk and a VoIP gateway and the reason that you need to pick "Add Gateway" and not "Add SIP Trunk".

Step 1: Connect the VoIP Gateway

Connect the VoIP Gateway to the network.
Now discover the gateway's network IP:
For a Grandstream, use the "Grandstream IP Discovery Tool".
For a Patton, utilize the "SmartNode" Discovery Tool.
For a Beronet, use the "bfdetect".
Login by means of the gadget's web interface.
Update the firmware to the most recent variation.
Assign a static IP or create an appointment on your DNS server. Remember of this IP.
Step 2: Patton/ Beronet - Import template

If you do not have a Patton or Beronet entrance you can avoid this step.

The Inbuilt Generic Gateway Template has "Outbound Parameters" specified "FromUserPart" -> $CallerNum which works with numerous gateways however not with Patton and Beronet. If you have this brand name you need to import a specific design template. To do this:

Download this template for Patton or Beronet.
Go to "Advanced" > "Templates" > "Provider Templates" > "Import".
Select the generic template you downloaded and press import to configure this entrance.
Step 3: Configure your Gateway Trunk on 3CX

Specify a name for this entrance.
In "Registrar/Server" get in the entrance's IP.
Enter the "Main Trunk Number" and "Default Route".
Enter the number of simultaneous calls for this entrance. This must not go beyond the number of lines the entrance supports, e.g. a T1 entrance supports 23 lines.
Go to the "DID numbers" tab and define any DIDs linked to the PSTN connection you are connecting to the VoIP Gateway.
Take note of the Authentication ID and password.
Click "Save" to develop this gateway.
Step 4: Create an Outbound Rule for this Gateway

Enter a name for this outbound guideline.
Define the guideline options for the calls to be routed via this gateway.
Click "Save".
Step 5 - Register your Gateway to 3CX

For Patton

Navigate to Telephony -> SIP and include a "IF_SIP" user interface profile and define the Remote User Agent Host Name/ Port which is the IP address and SIP Port of 3CX.
Go to Authentication Services and add the authentication profile called "AS_ALL_LINES" with the Authentication ID and Password taken from 3CX "Add Gateway" setup.
Go to Location Services and include "LS_10000" where "10000" is your Authentication ID drawn from 3CX "Add Gateway" setup.
Go to Telephony > Call-Router and specify the Routing Tables based upon your gadget settings. You might speak to Patton to offer you with a comprehensive guide on how to configure your Routing Tables.
For Grandstream

Add account in General Settings and specify Name, SIP Server IP address and Outbound Proxy to be the IP Address of the PBX.
Go to SIP Settings and configure its SIP Settings by enabling SIP Registration to "Yes" and press Save.
Go to Accounts and get in the qualifications acquired in step 3 and add Authentication ID and Password.
For Beronet
foldoc.org
Add account in SIP Configuration and define Name, SIP registrar, domain and outbound proxy to be the IP Address of the PBX.
Enter the credentials acquired in action 3 and include User, Authentication ID and Password and push the Activate button to use settings.
Create a Diaplan to be able to receive calls from Beronet Gateway to 3CX Phone System. You may talk to Beronet to supply you with a detailed guide on how to configure your Dial Plans.
See Also

See the Firewall & router setup to configure your firewall/ router/ NAT device.
How much dedicated bandwidth do I need for VoIP? See the Bandwidth overhead over DSL connections assist to discover.