Connecting the Grandstream GXW4104 FXO Gateway to 3CX
The latest 3CX v15.5 Update 6 update adds support for Grandstream FXO gateways. Currently, only one GXW4104 model is supported - a gateway to which you can connect 4 "copper" analog lines from a telephone operator. This is convenient if you are switching to IP telephony, but for some reason you cannot get SIP lines and are forced to use analog lines. Another case - you need to maintain a backup communication channel in case of disconnection of the Internet and SIP services. And the third example - you need to combine the old analog PBX and 3CX. Then part of the additional lines of analog PBX (Ext) can be connected to the gateway ports (the merging process is not considered in this article).
In the article we consider the most common case - connecting to 3CX analog lines from a telecom operator. For this, a special gateway autotuning pattern is included in 3CX, which essentially simplifies the task.
It is important to note that the template is designed to connect the gateway within the local network, or from a directly routed network, including VPN links. In other words, the template is not designed to connect an FXO gateway to 3CX directly via the Internet.
Preparing the FXO Gateway
Connect the gateway to the network via the WAN interface. Be sure to reset the gateway to the default settings - hold the reset button on the case for 10 s. at the time of turning on the device. Then wait a couple of minutes for it to reset and restart.
Now you need to determine the IP and MAC address of the gateway. Run the Grandstream IP Discovery Tool utility and select to listen to the interface that is on the common network with the WAN port of the gateway (if you have several interfaces on your PC).
Turn off the gateway, click the Listen button and turn on the gateway. After a few seconds, it will be detected by the utility.
In the gateway interface (the default password is admin), go to the Status - System section and make sure that the firmware version is at least 220.127.116.11. If below, you should upgrade the firmware. In the Maintenance - Upgrade / Provisioning section, in the Firmware Server Path field, specify the HTTP URL of the firmware download of firmware.grandstream.com. It is also recommended to set the Always Check for New Firmware option.
Installing the firmware takes a few minutes - wait until the gateway is completely ready!
Configure Gateway in 3CX
In the 3CX interface, go to the SIP trunks section and click Add SIP Gateway. Specify the Grandstream manufacturer and model GXW-4104. Set the number of ports - 4 (we specify the number of physical ports of the device, not the number of ports used). As the main number, specify the number to which calls come in first and foremost - usually it is the most important number of the four.
When the gateway settings page opens, go to the General tab. Here, enter the IP address of the 3CX server and copy the autotune URL — you'll need it later.
Go to Settings - SIP Gateway Settings. Here you should specify:
- MAC address of the gateway that is listed on the device case (WAN port) or visible in the Grandstream Discovery Tool utility
- Fax transmission mode. FAX in T.38 Relay Mode is recommended for reliable transmission. But if users have analog fax machines integrated with the phone, you may have to use FAX in G.711 Passthrough Mode
- Caller ID Scheme - this parameter should be found out from the telecom operator or set experimentally. Often, Caller ID is transmitted in ETSI-DTMF during ringing mode.
- Dial Tone, Ringback Tone, Busy Tone, Reorder Tone - are determined by the standards of your country . For countries b. The USSR value is only the parameter Busy Tone, which is set like this: ch1-4: f1 = 425 @ -11, f2 = 0 @ -11, c = 35/35;
Configure inbound and outbound rules in 3CX
From the FXO gateway, the 3CX server receives only the number from which it was called (Caller ID), but not the number to which it was called (DID). Therefore, you need to manually add DID numbers to the FXO gateway parameters in order to create the rules for routing incoming calls from a specific FXO port to the desired Group, Queue or extension.
Outbound rules for calls through the gateway are also generated by the 3CX documentation .
Configuring the FXO gateway
Go to the Maintenance - Upgrade / Provisioning section and in the Config Server Path field, specify the gateway auto-configuration link from the 3CX interface, copied above. The remaining parameters are set as shown in the figure.
After clicking Save and Reboot, the gateway will reboot, download the configuration from the server and connect to 3CX.
This completes the connection of the Grandstream GXW4104 FXO Gateway to 3CX.