ComXchange - FXO Gateways


The following guide should work for all Clearly IP 8 FXO Gateways below:
  • CX-GW8FXO-G2 - 8 Port Gateway
  • CX-GW4S4O-G2 - 4 Port FXS and 4 Port FXO Gateway

Retrieve the IP Address

Power up the ATA on your local network the ComXchange 8 FXO will obtain a DHCP address on the LAN by default 
  • For a device with FXS ports, you can dial ## by using an analog telephone connected to the FXS port 1 after the equipment is powered on.
  • For a device without FXS ports, you can look in the DHCP leases tab in the ComXchange System Settings Module for the IP address or use a device IP address obtaining tool called 'Finder' or any network scanner to obtain the IP address.
  •  If the gateway is unable to obtain an IP address you can connect via the default IP address of by manually assigning an IP in the network segment on the device being used to access the web GUI


Logging in

Navigate through your web browser to the IP address of the device on the same network where the ATA is connected.
  • Log into the web GUI.  Default Username is "Admin" and the initial password is in a sticker in the bottom of the device for older devices.  If the sticker does not list a Password the device will have a default password of "clearly".
  • Enter the captcha letters and numbers to access. These are not case insensitive

Changing the default password
  • Navigate to Security > Access
  • Enter the current default password and the new password with its confirmation.
  • The new password must be from 8 to 16 characters in length, a combination of letters, numbers, and symbols excluding the '&' or the '=' or the '"' symbols.


In the menu Basic > Network you can set the following parameters:

  • Hostname
  • IP assignment (Setup): Obtain an IP address automatically or set a static IP
  • If available set ETH2 as a switching port or redundant port to ETH1
  • STUN (Keep STUN disabled)


Navigate to Basic > System - In the  Codec section move the codecs using the  arrows  from the Enabled codecs box to the Disabled codecs box to have them set as follows:
  • G.711U/20
  • G711A/20
  • G.722/20
  • GSM/20
  • G.729A/20

Entering Gateway SIP settings and ComXchange Trunk Information

ClearlyIP FXO Registration Per Gateway

Set up the SIP information in the gateway that will connect to the Chansip trunk on the ComXchange server. 

Navigate to Basic > SIP

  • Change the Local signaling port or keep the default value of 5060
  • Leave the Increments of port number at the default value of 5
    • This value is the increment on the Sip port used when assigning registration
  • In the Registrar server field enter the IP address of the ComXchange server
  • Int the Proxy server field enter the IP of the ComXchange server
  • Set Registrar mode to Per gateway
  • In the User name field enter a registration username
    • In theh example below we will use GW_1.  This will match the username and Trunk Name of the ComXchange ChanSIp Trunk - sip Settings
  • In the Registrar password field enter a password
    • This will match the secret ComXchange ChanSIp Trunk - sip Settings
  • Registration expiration can be set to 120


ComXchange Trunk Setup

The Gateway will register to the ComXchange Trunk with the username and password set in the gateway as noted above.
Navigate to Core Configuration > Trunk - Add Trunk choose chan_sip

In the General settings:
  • Fill in the Trunk Name field
    • In the example below FXO_GW is used
  • Change the Outbound CallerID to the Hotel / Property's main phone number
  • Set the maximum to either the number of licensed trunks or as many as you have lines for if this is a secondary trunk

In the sip Settings > Outgoing tab enter the following
  • Trunk name
    • Example uses GW_1
  • Peer Details
    • username=GW_1
    • type=peer
    • secret=comxchange
    • insecure=invite,port
    • host=

Inbound Calls Sent to ComXchange

In this section we will set up the gateway to receive calls from the PSTN

Phone Number

Navigate to Trunk > Phone number
  • The phone number list can be arbitrary or it can coincide with the actual numbers associated with the Pots Lines.  Below the  arbitrary numbers 5555 to 5562 were assigned to the ports
    • If the numbers are in order you can use the batch tool by assigning the first number then press batch



Below is an example of a ports feature page for each number

Navigate to Trunk  > Feature

  • Click on the drop down for each Number
  • Verify that Phone Number, Display as, and Number are correct
  • The rest of the information can be left at default
    • Registration is off
    • TLS is disabled
    • SRTP is unchecked
    • Echo Cancellation is  checked
    • Caller ID detection is checked

ComXchange Inbound Routes

By default the ComXchange has an inbound rule that will send any call to the front desk ring group.  You can add a rule that specifies where an inbound phone number from the gateway will route

Navigate to Core Configuration > Inbound Routes

  • Verify the Any Any rule to front desk
    • Make changes to the destination if needed 
  • Add any other inbound rules

Outbound Calls from ComXchange

In this section we will setup the gateway to send outbound calls to the PSTN from the ComXchange server

Digit Map

Navigate to Routing > Digit Map
  • set  x.T in the digit may to the Allow any calls to be sent from the gateway

Routing Table

Navigate to Routing > Routing Table
  • Add rules to allow any Calls from FXO to route to the ComXchange and any calls from the ComXchange to route to any available FXO lines
    • IP   X ROUTE FXO

You can be more specific with your routing as well in the below example FXO 3 and 4 are used to route calls from the ComXchange to the carrier
In the Routing table enter the following information
  • IP   X ROUTE FXO 3-4/R
    • This means that any call coming from the IP side (SIP signaling) will be routed to ports 3 and 4 using the 'round robin' distribution method
    • If we remove '/R', the calls will be sent to the ports using the 'hunt' method
    • Both of these methods are helpful as the Gateway will route the call to the first available port. If port 3 is busy, the call will be sent to port 4

Outbound Route in ComXchange

Set the Trunk sequence for each outbound route that you want to use to send calls to the gateway
Navigate to  Core Configuration > Outbound Routes
  • Choose or create the route you want to use for the trunk
  • In the Trunk Sequence for Matched Routes choose the Trunk you created for the Gateway
    • In the example below FXO_GW is used

     RSS of this page