Configuring Welltech WellGate 2540 FXO VoIP Gateway
After you familiarize yourself with the basic concept of SIP Trunks (http://www.3cx.com/docs/manual/sip-trunks/) proceed to add a PSTN gateway into the PBX. This guide shows you how to configure and install a Welltech WellGate FXO with 3CX.
- The device must be local to 3CX, in the same subnet and/or locally routed subnet (including site to site VPN)
This guide is not applicable for Welltech FXS (internal analog) gateways. Find the applicable configuration guide here: http://www.3cx.com/support/
Step 1: Prepare the device
- Connect your network to the LAN port of the device.
- Assign your PC the IP address 192.168.123.122.
- Open the browser to the IP http://192.168.123.123 (device boot needs ~5 minutes).
- Log in with root / root.
- Download the following firmware wg25.4.02b and apply it from the web interface “Maintenance” → “Firmware Update”. (device update needs ~5 minutes)
- Once the device is updated navigate to “Device Settings” → “Advanced” and ensure that “Service Access” is allowed from WAN.
- Switch to “Device Settings” → “Network” → “WAN Setting” set “Network Type” to “Fixed IP” and define an IP address from your local area network (e.g 192.168.3.100). Important: Set the LAN Settings Mode to Management!
- Apply the changes (reboot the device).
- Unplug your network cable now from the LAN port and place it into the WAN port. Once you can access the web interface on the above assigned IP address proceed with the setup.
Step 2: Create PSTN Gateway
Navigate to “SIP Trunks” within the 3CX Management Console and select “Add Gateway”
- Select Brand: Welltech
- Select model/device: Welltech WellGate-2540
- Number of Physical PSTN Ports on device: The amount of FXO ports the device has in total (not how many ports are going to be used of those). In this case 4 ports.
- Main Trunk No: Define a number of your FXO lines which should act as “catch all destination”. Commonly your most important number of all.
Step 3: PSTN Line Setup
Once the previous step is saved the device and line specific options need to be defined.
- Registrar: Enter the current IP address of your Wellgate FXO device. (the IP address was set in step 1)
- Tone Set: Define in which country your are using this device. If the country is not listed request from your telco the used tone set of your line.
- Numbers of SIM Calls: Define how many FXO ports are going to be used. This might be equal to the amount of physical PSTN ports the device has or less.
Step 4: Provisioning Configuration
Navigate to the “Options” tab in the section “PSTN Gateway Options”.
- Device MAC Address: Enter the WAN MAC address of the gateway (not the LAN MAC address) which can be found on the back of the device.
Step 5: Upload Configuration
By pressing the ”Generate config file”, the 3CX Management Console will create and download a configuration file to your work station.
Continue on the web interface of the Welltech Wellgate device. Set:
- “VoIP Advanced” → “Ring” and set the value “8000” for both “Ring On” and “Ring Off”
- In ”Maintenance ” → Select “Restore (*.cfg)” and press “Apply”. A new dialog opens in which the previously downloaded XXXXXXXXXXXX.cfg file needs to be imported.
Step 6: Inbound Rules
Analog lines (FXO) can present the calling number but not the called number. Therefore each FXO port is reflected with a fix DID number. This allows you to individually route calls received from FXO port 0 to destination A while calls to FXO port 1 are routed differently (and so on). The mapping is as follows:
- FXO Line 1 indicates the dialed number: 000000
- FXO Line 2 indicates the dialed number: 000001
- FXO Line 3 indicates the dialed number: 000002
- FXO Line 4 indicates the dialed number: 000003
Create those DIDs within the gateway to allow calls to be routed based on the port the call was received on. General inforation on how co manage inbound calls can be found here: http://www.3cx.com/docs/manual/inbound-rules/
Step 7: Add Outbound Rules
For more details on creating Outbound Rules visit admin guide link below: http://www.3cx.com/docs/manual/outbound-rules/