How to configure Mediatrix 1204 four port analog FXO gateway
Configuring the Mediatrix 1204 using Unit Manager Express
Connecting Unit Manager Express to the 1204 Unit
The following configuration example describes how to use the Mediatrix 1204 analog 4 port FXO gateway as a local PSTN gateway with sipX. Mediatrix chose SNMP as the interface and protocol used to configure and administer their gateways. SNMP is not easy to deal with at the MIB level, so if you are not familiar with SNMP we recommend to chose another gateway manufacturer.
Unit Manager Express is the SNMP management tool provided by Mediatrix. It runs on the Windows operating system and is installed easily. After installation of Unit Manager Express you have to install the MIB tree definition that corresponds to the current firmware installed in your 1204 unit. This MIB tree definition comes as an .exe file with the unit and can be installed automatically by running it.
Once Unit Manager Express and the corresponding MIB tree definitions are installed, you should be able to fire up Unit Manager Express and connect to the 1204 gateway. By default the 1204 unit obtains its IP address using DHCP. Therefore, you might want to use the Discoer Agents function under the SNMP tab in Unit Manager Express. Once found click on the gateway and connect. The icon in the footer of Unit Manager Express should now show connected.
Configuring the 1204 Unit
The Mediatrix should be configured with a static IP Address rather than a DHCP address. If DHCP is used a specific IP addressed should be reserved for the Mediatrix gateway based on its MAC address.
Configure Static IP Address (mediatrixConfig/ipAddressConfig/ipAddressConfigLocalHost)
Generic Settings (mediatrixConfig/telephonyMIB/telephonyMIBObjects)
Basic SIP Server Settings (mediatrixConfig/ipAddressConfig/ipAddressConfigSipServer)
The Mediatrix 1204 FXO gateway technically is a SIP user agent. However, it is not an endpoint we want to call and therefore it does not need to register with sipX. Calls are routed to the gateway based on rules defined in the dialplan active on sipX.
When connecting an FXS gateway like the Mediatrix 1102, 1104 and 1124 (that connects to an analog phone), you would want the gateway to register with sipX, so that this line can be assigned to a user that has an extension number, voicemail box, etc.
SIP Transport (mediatrixTelephonySignaling/sip/sipMIB/sipMIBObjects/sipTransport)
User Agent Username (mediatrixTelephonySignaling/sip/sipMIB/sipMIBObjects/sipUAIfTable)
Voice Codec Preferences (mediatrixConfig/voiceIfMIB/voiceIfMIBObjects)
voiceIfCodecPcmuEnable: Enable if you want this codec as a choice [default]
voiceIfCodecPcmaEnable: Enable if you want this codec as a choice [default]
VoiceIfCodecG723Enable: Enable if you want this codec as a choice [default]
VoiceIfCodecG729Enable: Enable if you want this codec as a choice [default]
voiceifDtmfTransport: Choose outOfBandUsingRTP
Configuring telephony attributes below tells the FXO gateway to automatically route incoming calls from the PSTN to the auto-attendant.
If you change the extension number for the auto-attendant in sipX, you also have to change the setting below.
Telephony Attributes (telephonyAttributesMIB/telephonyAttributesMIBObjects
Make sure you configure a Call Target Address for each line connected to the PSTN (1 to 4).
Digit Map (digitMapMIB/digitMapMIBObjects)
Voice Interface (voiceIfMIB/voiceIfMIBObjects/voiceIfTable)
Defining a new PSTN gateway in sipX
Setting up a new gateway in sipX is really simple. Go to the Gateways in the left navigation bar, enter a unique name for the gateway and its IP address. Done. You can now use this gateway in all your dial plan definitions, which allows you to define specific rules about which calls should be routed to which gateway.
Connect at least one PSTN line to the gateway before testing your setup. The gateway will reject all calls (the in use LED will not come on) unless it can connect to an external line.
Maintenance Tasks for the Mediatrix 1204 FXO Gateway
Reset to Factory Defaults
Reset to factory defaults can be done at run time or while powering up the unit. The procedure is the same: Insert a paper clip into the Default Settings hole at the back next to the Ethernet plug. Hold it in place until all four LEDs stop blinking and are steadily ON (10 to 15 seconds), then depress. Resetting to factory defaults deletes all configuration and history stored in the unit. Factory Defaults configures the unit to obtain an IP address from a DHCP server - make sure you got one on your network.
Mediatrix Analog Gateway Firmware Upgrade
You are an expert in SNMP management and MIB variables, right? If not I suggest you leave this task to an expert. Mediatrix only gives access to firmware downloads to their certified resellers, so that you have to contact your dealer to obtain a new firmware release. The firmware package includes the new image .zip file, updated documentation, as well as the MIB definition that corresponds to the new firmware image. In addition, you will need a recent copy of Unit Manager Express, the Mediatrix management tool.
The firmware image .zip file has to be unpacked and the resulting directory has to be put into the root directory of a TFTP server available on your network. The sipX server includes a TFTP server used to manage Polycom and other phones that can be used for this purpose. The TFTP root directory is /var/sipxdata/configserver/phone/profile/tftproot on your sipX server.
Mediatrix allows you to configure the gateway to either optain the IP address and port for the TFTP server through DHCP or using a statically configured address. Unless you have real reason and know what you are doing, do not use the DHCP mechanism, but instead configure the IP address statically using Unit Manager Express.
Refer to Chapter 5: Software Download in the Mediatrix Administration Manual.
Start Unit Manager Express and navigate the following variables:
Check Automatic Get in Unit Manager Express. Click on Set everytime you changed a variable to save.
How do I know it worked?
During firmware upgrade all 4 LEDs blink in sequence at about 1 Hz. Once firmware upgrade is completed, the unit reboots and enters normal operation. If firmware upgrade failed, all four LEDs blink simultaneously at 2 Hz. You can also check the following MIB variable: