Top
Mediatrix unit with Asterisk
This document outlines the configuration steps required to connect a Mediatrix unit to an Asterisk open-source telephone system.
- Interface a PBX with an IP-PBX
- Provide PSTN access via analog lines
- Provide IP connectivity to analog phones and fax machines
- Call routing, Dial Plan
- Including routes to local PSTN gateways
- Telephony services (voicemail, call forwarding, etc,) to IP users
- SIP Endpoints management
- Auto-Attendant
Top
Requirements
- Asterisk server properly installed.
- SIP client properly configured and registered against the Asterisk IP-PBX, able to place and receive calls.
Top
Information to Know Before Starting
Before starting to use these configuration notes, complete the following table to make sure you have the required information to complete the different steps.
Information | Value | Used in Step |
---|---|---|
IP address of unit | Configuring the Asterisk - PBX Trunk and Configuring the Asterisk - PSTN Lines | |
Listening port of unit | Configuring the Asterisk - PBX Trunk and Configuring the Asterisk - PSTN Lines | |
The SIP username used for calls coming from the PSTN | Configuring the Asterisk - PSTN Lines | |
The SIP username used for calls coming from the PBX | Configuring the Asterisk - PSTN Lines | |
SIP Username and Password to authenticate the gateway | Authenticating the SIP Default Gateway | |
Asterisk server IP address | ||
Asterisk server SIP listening port | ||
DTMF transport method | Configuring the Asterisk - PBX Trunk and Configuring the Asterisk - PSTN Lines and Configuring DTMF Transport |
Top
Configuration of the PBX Trunk
Configuring the Asterisk - PBX Trunk
Top
Configuring the Asterisk - PSTN Lines
Top
Extension Description
Extension | Description |
---|---|
[PBXTRUNK] | SIP username used for calls coming from the PBX. |
[PSTNTrunk] | SIP username used for calls coming from the PSTN. |
type=peer | This is part of the method used by the Asterisk server to match incoming INVITES to this user. |
host=ip address of Mediatrix unit | This means the extension will not register to the Asterisk server. This is the IP address of the Mediatrix unit. |
port=xxx | Port used for requests to and from the Mediatrix unit. |
nat=no | The Mediatrix unit is not behind a NAT. |
qualify=no | No keep alive is used. |
canreinvite=no | No reINVITE is sent to this extension. |
dtmfmode=info | The DTMF is sent/received in SIP INFO messages. |
context=xxxx | This is the context where the call from this extension is sent. It is the same context for the IP phone and the Mediatrix Unit. |
secret=TrunkPassword | The SIP authentication password |
t38pt_udptl=yes | This allows T.38 fax to be sent by this trunk. This setting is set to no for the IP phone and the Mediatrix unit . |
Top
Configuring the Default SIP Servers
Top
Configuring the Default Gateway
Top
Authenticating the SIP Default Gateway
- Go to SIP/Authentication.
- In the Authentication table, click located on the same line as the Default Gateway.
-
Set the following parameters:
- Set Validate Realm to Disable.
- Set the User Name to reflect your configuration.
- Set the Password to reflect your configuration.
- Click Apply and Refresh Registration.
Top
Restarting Services
- Go to System/Services.
- In the restart required services table, click restart required services.
Top
Registering a Unit to All Gateways
- Go to SIP/Registrations.
- In the Unit Registration table, enter in the User Name, a username to uniquely identify the user in the domain.
- From the Gateway Name selection list, choose All.
- Repeat steps 2 and 3 for each SIP account/Registration needed.
- Click Apply and Refresh.
- Click restart required services located at the top of the page.
Top
Configuration of Routes
Creating a Route from FXO Ports to Asterisk
- Go to Call Router/Route Config.
-
In the Routes
table
- click located on the same row as an existing route to add a route above or,
- click located at the bottom of the table to add a route at the end of the table.
-
In the Configure Route table, set
the following parameters:
- Add all the FXO ports in the Sources field.
- Set Criteria Property to None.
- Set Destination to sip-default.
- Click Save.
Top
Creating a Hunt Group - FXO
- Go to Call Router/Route Config.
- In the Hunt table, click .
-
In the Configure New Hunt table, set the following:
- Set the Name field to FXO.
- Using the Destinations dropbox, add all the FXO ports used in your configuration.
- Leave the other fields with their default value.
- Click Save.
Top
Creating a Route from Asterisk to a FXO Hunt Group
- Go to Call Router/Route Config.
-
In the Routes
table.
- click located on the same row as an existing route to add a route above or,
- click located at the bottom of the table to add a route at the end of the table.
-
In the Configure Route table, set
the following parameters:
- Set Sources to sip-default.
- Set Criteria Property to None.
- Set Destination to hunt_FXO .
- Click Save.
Top
Enabling Automatic Call Activation
- Go to Telephony/Services.
- In the Select Endpoint drop down menu, select the port you want to configure.
-
In the Automatic Call
section, set the following parameters:
- Set Endpoint Specific to Yes.
- Set Automatic Call Activation to Enable.
- Set the Automatic Call Target to the number of the IVR configured in the Asterisk server.
- Repeat the steps 2 and 3 for the other ports you need to configure.
Top
Configuring DTMF Transport
- Go to Media/Misc.
-
In the DTMF Transport
table, set the Transport Method to the one
set in the VoIP server.
- In-band
- Out-of-Band using RTP (RFC2833). This is usually the preferred method. Remember to set the payload type if different (e.g.: 96, 101 or 110 in some cases).
- Out-of-Band using SIP. For Cisco or Avaya systems, from the SIP Transport Method field, use Info DTMF Relay. For legacy Nortel and others, leave Draft Choudhuri SIP Info Digit 00.
- Signaling Protocol Dependent: choose this method if unsure. It will try to use the method negotiated by the VoIP server.
- Click Apply.
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.