New Version of Digital Gateway Connects To 3CX
This document primarily introduces the steps for connecting a digital gateway to 3CX. Basic configuration for interfacing with the DGW digital gateway. In this document, we use the DGW-L204 as an example. The following steps can also be used with other DGW models. There are two ways to interface the DGW with 3CX.
Method 1: Use IP authentication to connect to 3CX
Method 2: Register DGW on 3CX
Step 1: Configure the SIP server
Set the template under Template -> Template 2. In this document, the IP address of 3CX is 172.16.6.X, so enter the IP address of 3CX in the SIP main server field and leave the rest of the settings at their default values.
In Relay Settings -> SIP Relay, add a new entry using the template you just set up (Template 2). The relay number can be chosen arbitrarily. The SIP User ID should be the relay name. Uncheck the “Enable Registration” option. In the IP Direct Routing Table, enter the IP address of the 3CX server.
After clicking Save, pay attention to the generated SIP signaling port, which is 5062.
Step 2: Register the IP phone
Fill in the SIP main server IP (in this case, the 3CX address) in the DGW Profiles>> Profiles 2. Leave the other options as default.
In Relay Settings >> SIP Relay, add SIP extension information. This is a SIP extension 1001 registered on 3CX.
The figure below shows an example of information displayed on 3CX for extension 1001.
Step 3: Configure point-to-point SIP trunking on 3CX
On the 3CX web interface, go to Administrator -> Voice and Chat and click + Add Gateway. In this document, the DGW IP address is 172.16.5.X. In the General tab, enter 166 in the Name field, select No Authentication – IP-based for the Authentication Type, and enter the DGW IP address: 172.16.5.X in the Registrar/Server field. Port SIP trunking port at the DGW gateway.
Step 4: Set up outbound routing on 3CX
On the 3CX website, click + Add under Administrator -> Outgoing Rules, enter test as the rule name, enter 0 in the Dialing Prefix field, select Department and click + Add, add DEFAULT Department, select 166 as the outgoing route, and select 1 as the number of digits to delete.
Step 5: Configure call routing in 3CX
On the 3CX web page, click DEFAULT under Administrator -> Call Handling, enter 12345 in the assigned DID number field, and route to 1001 in the selected user when the office is open. The rest can be configured according to your needs.
Configure the office hours in Administrator -> Office Hours Configuration DEFAULT.
Method 2: Register DGW in 3CX
The following only shows the configurations that differ. For other configurations, please refer to Method—.
Step 1: Configure SIP trunking in server mode on 3CX.
On the 3CX web interface, go to Administrator -> Voice and Chat, then click + Add Gateway. In this document, the DGW IP address is 172.16.5.X. In the General tab, enter 188 for the Name, 12345 for the Primary Trunk Number, select Registration/Account-Based for the Authentication Type, and use the system-generated Authentication ID and Authentication Password.
Just remember to set the registrar/server to 172.16.5.X and the port to 30004.
Step 2: Configure SIP trunk settings on DGW
In this example, the SIP user ID is the ID used for identity verification above. The registration checkbox is enabled, and the authentication ID and password are automatically generated above.
We can check whether the relay status has been successfully connected on the DGW website. When the port status is registered, the connection is successful.
Dial test
Once the above configuration is complete, incoming and outgoing calls will work as described below.
Outgoing Calls
Registering extension 1001 on 3CX allows you to dial 0+ followed by a phone number to reach external numbers on the PSTN network, as configured in the outgoing call routing settings in 3CX.
Incoming Calls
External users can dial the PSTN line number, which is routed through the network to be processed by 3CX. Depending on the incoming call routing in 3CX, the call from the trunk can be forwarded to extension 1001.