Grandstream GXW 4024/4004 FXS Gateway with 3CX Phone System

IMPORTANT This guide has been tested with the following firmware version: Program - 1.0.1.57 Bootloader - 1.0.0.7 Core - 1.0.0.54 Base 1.0.0.97

Pre-requisites:

  1. Create an extension on 3CX Phone System for each FXS port on the device which will have a phone connected to it.
  2. Take note of the Authentication ID field and the Authentication password that you have entered for each extension that shall be connected to the FXS Gateway.

Follow these steps to set up a GrandStream GXW-40xx FXS gateway for 3CX Phone System:

  1. Connect the GrandStream GXW-40xx gateway to the network and mains power supply. The device will boot up, using its factory-configured default IP address 192.168.1.1
  2. Now point your browser to the gateway’s configuration site: http://192.168.2.1
  3. Enter the password of the device and click ‘OK’ to access the gateway’s configuration. The default password is “admin”.
  4. In the basic settings tab, configure the required IP address / subnet mask / default gateway and DNS servers for the device. Then click the “Update” button at the bottom of the page.

    IP address Settings
  5. Within the ‘Basic Settings’ tab you will also need to change the ‘Device Mode’ field to ‘Bridge’ , disable the ‘Enable LAN DHCP’ and enable “WAN Side HTTP Access” option. Then click the “Update” button at the bottom of the page.

  6. Once the page loads click on the “Profile 1” tab at the top of the page.
    a. Set the “SIP Server” field to the IP Address or FQDN of the server on which 3CX Phone System is installed.
    b. Set the “SIP Registration” field to “yes”.
    c. Set the “Unregister on reboot” field to “yes”.
    d. Click the “Update” button at the bottom of the page.

    Profile 1 Settings

  7. Scrolling down in the ‘Profile 1’ tab you will need to sort the codec list as they appear in the screenshots below

    Profile 1 Codec Settings

  8. Set the “Dial Plan” to read "{x+|*x+}" (without the quotes) then click the update button.


    FXS port Settings

  9. Click on the “FXS ports” tab at the top of the page. In the “User Settings” table table, the rows represent the extensions connected to the gateway. Configure each line as follows:
    a. In the “SIP User ID” field enter the User Name for the extension number .
    b. In the “Authentication ID” field enter the Authentication ID for the extension as created in the 3CX PhoneSystem console.
    c. In the “Authentication Password” fields enter the Password that you entered for the line in the 3CX PhoneSystem Console.
    d. Repeat steps a to c for each extension , then click the “Update” button at the bottom of the page.

  10. Reboot the device when all configuration settings have been applied.

VOIP Gateway Configuration Guides