Top
Configuration Scripts vs. Backup and Restore
Configuration Scripts
Configuration scripts are files containing textual commands that are sent from the ACS over the network to a Mediatrix unit.
Configuration scripts support all configuration parameters and can be created for a group of units or for a specific unit of the Network.
The automated importation of configuration scripts can be performed with the use of a Customer Profile or using a DHCP server indicating the location of the file server with options 66 or 67. The automated importation to a unit is what is referred to as zero-touch, as the unit is automatically updated with the latest configuration without manual intervention.
When the configuration scripts are received, the unit executes each command line in sequence. Script commands can assign values to configuration parameters, or execute configuration commands. Scripts are written by the system administrator and can be used to accomplish various tasks, such as automating recurrent configuration tasks or batch-applying configuration settings to multiple devices. They can also be scheduled to be executed when the Mediatrix unit restarts.
- When the unit is restarted
- According to a pre-determined schedule
- Initiated by a DHCP server indicating where the script files are located using options 66 and 67
- FTP
- TFTP
- HTTP
- HTTPS
The configuration script download feature allows updating the Mediatrix unit configuration by transferring a configuration script from a remote server or from the local file system. The Mediatrix unit is the session initiator, which allows NAT traversal. You can also configure the Mediatrix unit to automatically update its configuration or you can generate a configuration script from the running configuration of the Mediatrix unit.
Top
Configuration Backup and Restore
Performing a configuration backup allows you to have a copy of the entire configuration at the time the backup was performed.
- to revert the running configuration to a valid configuration when the running configuration generates error messages or no longer works;
- to deploy a valid configuration on other units;
- to revert to a known configuration when too many changes were made to the running configuration;
- to deploy a backup configuration on a replacement unit.
- the status and configuration parameters;
- the certificates;
- the Rulesets.
But the configuration backup does not include the File service files, except for the Rulesets.
Backup made on firmware version vX | Unit firmware version | Possible |
---|---|---|
Backup.v3 | Firmware version 3 | YES |
Backup.v1 | Firmware version 3 | YES |
Backup.v1 | Firmware version 1 | YES |
Backup.v3 | Firmware version 1 | NO |
The Configuration Back and Restore performed on Dgw v2.0.31 includes all Rulesets. However, starting on Dgw v.2.0.32 only the Rulesets modified by the user will be included in the configuration backup and restore. If a configuration backup is performed on Dgw v2.0.31 and restored on a newer version of DGW, all Rulesets existing in v2.0.31 will be copied as custom Rulesets i.e the system will not use the factory Rulesets of the newer version even if they were not modified.
Top
Configuration Scripts vs. Backup and Restore
- Configuration scripts are files containing textual commands that are sent over the network
to a Mediatrix unit. Upon receiving the file, the Mediatrix unit executes each command line in
sequence. Script commands can assign values to configuration variables, or execute
configuration commands.
Scripts are written by the system administrator and can be used to execute several operations, such as automating recurrent configuration tasks or batch-applying configuration settings to multiple devices. Scripts can be executed once or periodically at a specified interval. They can also be scheduled to execute when the Mediatrix unit restarts.
- The backup/restore feature is used to backup a specific Mediatrix unit's configuration for
safety purposes. When needed, the configuration image file that is generated by a backup
operation can be restored to put the unit back into the exact configuration it was when the
backup was taken.
Configuration image files contain a Mediatrix unit's configuration information. They are not intended to be edited and must not be confused with configuration scripts. When restoring a configuration image, the whole Mediatrix unit s current configuration is replaced with the configuration found in the configuration image file. Restoring a configuration image is therefore an operation that is completely different from executing a configuration script.
Top
Executing a Configuration Script
Configuring the FTP Server
Perform this procedure if you plan to use the FTP transport protocol.
Top
Configuring the HTTP Server
Top
Configuring the HTTPS Server
Make sure the unit is set to the proper date (refer to Configuring the Mediatrix Unit to Use an SNTP Server.
Top
Configuring the TFTP Server
Top
Executing Configuration Scripts from a File Server Periodically
- Configuring the FTP Server
- Configuring the TFTP Server
- Configuring the HTTP Server
- Configuring the HTTPS Server
Mediatrix units do not all include a real time clock allowing them to maintain accurate time when they are shutdown. You must have a time server SNTP that is accessible and properly configured or the automatic configuration update feature may not work properly. Refer to Configuring the Mediatrix Unit to Use an SNTP Server.

Top
Executing Configuration Scripts from the Unit File Management System Each Time the Unit is Started
Top
Importing a Configuration Script to the Unit File Management System

Top
Executing Configuration Scripts from the Unit File Management System Periodically
You must have a time server SNTP that is accessible and properly configured or the automatic configuration update feature may not work properly. Refer to Configuring the Mediatrix Unit to Use an SNTP Server. Configuration scripts files must be available in the unit's file management system. Refer to Importing a Configuration Script to the Unit File Management System.
A configuration script must have been imported to the unit's file management system. Refer to Importing a Configuration Script to the Unit File Management System.
Top
Executing Configuration Scripts from a File Server Each Time the Unit is Started

Top
Configuring the Mediatrix Unit to Use an SNTP Server

Top
Sample Template Configuration Script
################################################################################
#
# Copyright (c) Media5 Corporation
#
# This file contains sample script commands to help configure a Mediatrix 4000
# series unit.
#
# Please refer to "Technical Bulletin 0614 - Using Configuration Scripts to
# Automate Configuration for the Mediatrix C740 Series",
# available on the Mediatrix support portal
#(http://www.mediatrix.com/support.php), and to the Mediatrix unit's
# documentation for more information on using configuration scripts.
#
# This script reproduces the configuration described in "Configuration Note
# 245 - Mediatrix C740 VoIP Gateway PSTN Scenario", available on the Mediatrix
# support portal (http://www.mediatrix.com/support.php). It follows the order
# of the configuration steps from Configuration Note 245, so it is a good
# idea to read Configuration Note 245 along with the script
#
# USING THIS FILE: this file is intended to be used as a sample script to be the
# base of custom scripts developed by system administrators. Starting from this
# script, system administrators can build their own configuration scripts by
# replacing the sample statements and values with their own.
#
## NOTE: this script assumes tha the configuration is done from a "factory
# reset" state.
#################################################################################
################################################################################
# Configuration Note 245 step1
# Physical Connection of the Mediatrix C740 to the Network and PSTN
################################################################################
# No script commands
################################################################################
# Configuration Note 245 step 2
# IP Address Discovery or Configuration
################################################################################
# No script commands
################################################################################
# Configuration Note 245 step 3
# Web Interface Access
################################################################################
# No script commands
################################################################################
# Configuration Note 245 step 4
# SIP Configuration
#
# SIP parameters configuration is done in the SipEp (SIP Endpoints)service
################################################################################
# Set the default registrarSipEp.DefaultStaticRegistrarServerHost="192.168.9.201"
# Set the default proxySipEp.DefaultStaticProxyHomeDomainHost="192.168.9.201"
################################################################################
# Configuration Note 245 step 5
# ISDN Configuration
#
# ISDN parameters configuration is done in the Isdn (Integrated Services
# Digital Network) service
################################################################################
# Set the endpoint type for ports Bri1 and Bri2 to TE (option TE has numeric
# value 100)Isdn.BasicRateInterface.EndpointType[Name="Bri1"]="100"Isdn.BasicRateInterface.EndpointType[Name="Bri2"]="100"
# Set the connection type forports Bri1 and Bri2 to Point To Point (option
# Point To Point has numeric value 100)Isdn.BasicRateInterface.ConnectionType[Name="Bri1"]="100"Isdn.BasicRateInterface.ConnectionType[Name="Bri2"]="100"
# Restart the Isdn service because these parameters require a service restart in
# order to be correctly applied (command option "restart" has numeric value 10)Scm.ServiceCommands.Restart[Name="Isdn"]=10
################################################################################
# Configuration Note 245 step6
# Call routing configuration.
#
# Call routing parameters configuration is done in the CRout (Call Routing)
# service. After the configuration is done, do not forget to execute the
# ApplyConfig command to apply the new parameters to the call router(next
# call will be processed using the new parameters).
################################################################################
#
# Hunt groups
#
# Empty the Hunt Groups table to make sure we create the first one CRout.Hunt.DeleteAllRows
# Create a Hunt group and configure it CRout.InsertHuntCRout.Hunt.Name[Index="1"]="hunt_PSTN"CRout.Hunt.Destinations[Index="1"]="isdn-Bri1, isdn-Bri2"
#
# Mappings
#
# Empty the Mapping Types table to make sure we create the first one CRout.MappingType.DeleteAllRows
# Create the first Mapping Type and configure it (option Called E164 has numeric
# value 300)CRout.InsertMappingTypeCRout.MappingType.Name[Index="1"]="From_PSTN"CRout.MappingType.Criteria[Index="1"]="300"CRout.MappingType.Transformation[Index="1"]="300"
# Empty the Mapping Types table to make sure we create the first one CRout.MappingExpressions.DeleteAllRows
# Create the first Mapping Expression and configure it CRout.InsertMappingExpressionCRout.MappingExpression.Name[Index="1"]="From_PSTN"CRout.MappingExpression.Criteria[Index="1"]="030(.+)"CRout.MappingExpression.Transformation[Index="1"]="\\1"
# double backslash needed(escape)
# Create the second Mapping Type and configure it (option Called E164 has
# numeric value 300)CRout.InsertMappingTypeCRout.MappingType.Name[Index="2"]="To_PSTN"CRout.MappingType.Criteria[Index="2"]="300"CRout.MappingType.Transformation[Index="2"]="300"
# Create the second Mapping Expression and configure itCRout.InsertMappingExpressionCRout.MappingExpression.Name[Index="2"]="To_PSTN"CRout.MappingExpression.Criteria[Index="2"]=".+"CRout.MappingExpression.Transformation[Index="2"]="030\\0"
#CRout.Route.DeleteAllRows
# Routes
#
# Empty the Routes table to make sure we create the first one CRout.Route.DeleteAllRows
# Create the first Route and configure it CRout.InsertRouteCRout.Route.SourceCriteria[Index="1"]="sip-default"CRout.Route.Destination[Index="1"]="hunt-hunt_PSTN"CRout.Route.Mappings[Index="1"]="To_PSTN"
# Create the second Route and configure it CRout.InsertRouteCRout.Route.SourceCriteria[Index="2"]="isdn-Bri1"CRout.Route.Destination[Index="2"]="sip-default"CRout.Route.Mappings[Index="2"]="From_PSTN"
# Create the third Route and configure it CRout.InsertRouteCRout.Route.SourceCriteria[Index="3"]="isdn-Bri2"CRout.Route.Destination[Index="3"]="sip-default"CRout.Route.Mappings[Index="3"]="From_PSTN"
#
# Apply configuration
#
# Apply the new parameters to the call router (next call will be processed using
# the new parameters)CRout.ApplyConfig
################################################################################
# End
################################################################################
Top
Unit Macros
Macro | Description |
---|---|
%mac% | the MAC address of the unit |
%version% | the MFP version of the unit (firmware version) |
%product% | the Product name of the unit |
%productseries% | the Product series name of the unit. |
Top
Online Help
If you are not familiar with the meaning of the fields and buttons, click Show Help, located at the upper right corner of the Web page. When activated, the fields and buttons that offer online help will change to green and if you hover over them, the description will bedisplayed.
Top
DGW Documentation
Mediatrix devices are supplied with an exhaustive set of documentation.
Mediatrix user documentation is available on the Media5 Documentation Portal.
- Release notes: Generated at each GA release, this document includes the known and solved issues of the software. It also outlines the changes and the new features the release includes.
- Configuration notes: These documents are created to facilitate the configuration of a specific use case. They address a configuration aspect we consider that most users will need to perform. However, in some cases, a configuration note is created after receiving a question from a customer. They provide standard step-by-step procedures detailing the values of the parameters to use. They provide a means of validation and present some conceptual information. The configuration notes are specifically created to guide the user through an aspect of the configuration.
- Technical bulletins: These documents are created to facilitate the configuration of a specific technical action, such as performing a firmware upgrade.
- Hardware installation guide: They provide the detailed procedure on how to safely and adequately install the unit. It provides information on card installation, cable connections, and how to access for the first time the Management interface.
- User guide: The user guide explains how to customise to your needs the configuration of the unit. Although this document is task oriented, it provides conceptual information to help the user understand the purpose and impact of each task. The User Guide will provide information such as where and how TR-069 can be configured in the Management Interface, how to set firewalls, or how to use the CLI to configure parameters that are not available in the Management Interface.
- Reference guide: This exhaustive document has been created for advanced users. It includes a description of all the parameters used by all the services of the Mediatrix units. You will find, for example, scripts to configure a specific parameter, notification messages sent by a service, or an action description used to create Rulesets. This document includes reference information such as a dictionary, and it does not include any step-by-step procedures.
Top
Copyright Notice
Copyright © 2023 Media5 Corporation.
This document contains information that is proprietary to Media5 Corporation.
Media5 Corporation reserves all rights to this document as well as to the Intellectual Property of the document and the technology and know-how that it includes and represents.
This publication cannot be reproduced, neither in whole nor in part, in any form whatsoever, without written prior approval by Media5 Corporation.
Media5 Corporation reserves the right to revise this publication and make changes at any time and without the obligation to notify any person and/or entity of such revisions and/or changes.