<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://docs.yate.ro/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Configure_Mediant_MGCP</id>
		<title>Configure Mediant MGCP - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Configure_Mediant_MGCP"/>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Configure_Mediant_MGCP&amp;action=history"/>
		<updated>2026-06-06T20:15:21Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Configure_Mediant_MGCP&amp;diff=8016&amp;oldid=prev</id>
		<title>Liviu: Created page with &quot; '''IMPORTANT:''' All Mediant gateways support a single active MGCP Call Agent at a time (although it may have backups).  It is not possible to have multiple controllers each ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Configure_Mediant_MGCP&amp;diff=8016&amp;oldid=prev"/>
				<updated>2017-10-26T09:12:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;#039;&amp;#039;&amp;#039;IMPORTANT:&amp;#039;&amp;#039;&amp;#039; All Mediant gateways support a single active MGCP Call Agent at a time (although it may have backups).  It is not possible to have multiple controllers each ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''IMPORTANT:''' All Mediant gateways support a single active MGCP Call Agent at a time (although it may have backups).&lt;br /&gt;
 It is not possible to have multiple controllers each for part of the circuits.&lt;br /&gt;
 '''Therefore for flexibility it is desirable to have several smaller gateways rather than a big one'''.&lt;br /&gt;
&lt;br /&gt;
== Mediant configuration ==&lt;br /&gt;
&lt;br /&gt;
It is possible to configure a Mediant gateway either from the Web interface or by editing the ''BOARD.ini'' configuration file (accessible from the Management menu).&lt;br /&gt;
&lt;br /&gt;
The settings layout here apply to Mediant firmware version 5.80, other versions may differ. Version 4.x had a radically different layout.&lt;br /&gt;
&lt;br /&gt;
Please make sure you select '''Full''' view mode (not Basic) or you will not find all settings described here.&lt;br /&gt;
&lt;br /&gt;
=== TDM Trunk configuration===&lt;br /&gt;
&lt;br /&gt;
First settings that you are going to make are the boards. This setting is common for everything using the trunk, voice or signaling.&lt;br /&gt;
&lt;br /&gt;
From the ''Configuration'' menu select ''PSTN Settings'' =&amp;gt; ''Trunk Settings''. For each trunk you configure for SS7/MGCP select ''Protocol Type'' =&amp;gt; ''E1 transparent 31''.&lt;br /&gt;
&lt;br /&gt;
You may need to reboot the Mediant to activate changes to the board configuration so be sure to select the correct line parameters.&lt;br /&gt;
&lt;br /&gt;
=== Protocol configuration===&lt;br /&gt;
&lt;br /&gt;
From the ''Configuration'' menu select ''Protocol Configuration''.&lt;br /&gt;
* Protocol Selection =&amp;gt; MGCP (x)&lt;br /&gt;
* Basic Configuration&lt;br /&gt;
:Call Agent IP =&amp;gt; a.b.c.d (IP of the Yate server)&amp;lt;br&amp;gt;&lt;br /&gt;
:Call Agent Port =&amp;gt; 2727&amp;lt;br&amp;gt;&lt;br /&gt;
:Gateway MGCP Port =&amp;gt; 2427&lt;br /&gt;
* General Parameters&lt;br /&gt;
:Version =&amp;gt; MGCP 1.0&amp;lt;br&amp;gt;&lt;br /&gt;
:Send RSIP on Network Disconnection =&amp;gt; Yes&amp;lt;br&amp;gt;&lt;br /&gt;
* Advanced Configuration&lt;br /&gt;
:Enable Keep Alive =&amp;gt; Enable&amp;lt;br&amp;gt;&lt;br /&gt;
:Keep Alive Interval [sec] =&amp;gt; 60&amp;lt;br&amp;gt;&lt;br /&gt;
:Activate all Channels on Board Initialization =&amp;gt; No&lt;br /&gt;
&lt;br /&gt;
One setting that is not available from Web must be accomplished by editing the config file. You have to set the gateway name and add the MGCP port at end of it.&lt;br /&gt;
&lt;br /&gt;
 [ControlProtocols Params]&lt;br /&gt;
 GatewayName = 'mediant:2427'&lt;br /&gt;
&lt;br /&gt;
You can set another name but remember to change it in the ''host=...'' lines of mgcpca.conf&lt;br /&gt;
&lt;br /&gt;
== Yate configuration==&lt;br /&gt;
&lt;br /&gt;
In Yate you will need one or more sections in mgcpca.conf plus some global engine settings:&lt;br /&gt;
 &lt;br /&gt;
 [engine]&lt;br /&gt;
 request_ack=no&lt;br /&gt;
 send_provisional=no&lt;br /&gt;
 ;port=2727&lt;br /&gt;
 ;address=0.0.0.0&lt;br /&gt;
 &lt;br /&gt;
 [endpoint]&lt;br /&gt;
 ; defaults are OK&lt;br /&gt;
 &lt;br /&gt;
 [gw TRUNK_1]&lt;br /&gt;
 host=mediant&lt;br /&gt;
 user=ACgw1&lt;br /&gt;
 version=MGCP 1.0&lt;br /&gt;
 ;address=w.x.y.z&lt;br /&gt;
 ;port=2427&lt;br /&gt;
 voicechans=2-31&lt;br /&gt;
 offset=1&lt;br /&gt;
 forward_rtp=yes&lt;br /&gt;
 ;forward_sdp=yes&lt;br /&gt;
 &lt;br /&gt;
 [gw TRUNK_2]&lt;br /&gt;
 host=mediant&lt;br /&gt;
 user=ACgw31&lt;br /&gt;
 version=MGCP 1.0&lt;br /&gt;
 ;address=w.x.y.z&lt;br /&gt;
 ;port=2427&lt;br /&gt;
 voicechans=1-31&lt;br /&gt;
 offset=1&lt;br /&gt;
 forward_rtp=yes&lt;br /&gt;
 ;forward_sdp=yes&lt;br /&gt;
&lt;br /&gt;
In the ''engine'' section it is possible to change the MGCP Call Agent port from the default of 2727. In case you need to bind to a specific local ''address'' (on the Yate machine) it can be specified there too. It is not possible to bind to more than one address and one port.&lt;br /&gt;
&lt;br /&gt;
For each trunk the section name must start with ''gw'', a space and the trunk name as referred from the call controller voice= setting in ysigchan.conf:&lt;br /&gt;
&lt;br /&gt;
 [SOME NAME]&lt;br /&gt;
 type=ss7-isup&lt;br /&gt;
 voice=TRUNK_1,TRUNK_2&lt;br /&gt;
&lt;br /&gt;
The ''user'' part of the Endpoint Identifier must be set according to Mediant. This has two forms, depending on settings:&lt;br /&gt;
* Analog naming (default) - sequentially numbered circuits, ACgw0 - ACgw''NNN''&lt;br /&gt;
* Trunk naming (similar to Cisco) - trunk number is part of the name&lt;br /&gt;
&lt;br /&gt;
The ''voicechans'' setting must match the voice timeslots. For each entry in range a voice circuit is created.&lt;br /&gt;
&lt;br /&gt;
Note that in Analog naming the E1 synchronization timeslots are skipped so it's possible to define a large trunk encompassing all circuits in multiple E1 or T1 ports. For flexibility it is desirable to keep each trunk separate so they can be activated or deactivated.&lt;br /&gt;
&lt;br /&gt;
For each trunk you should specify the IP ''address'' of Mediant (the w.x.y.z) so Yate doesn't have to wait a RSIP message. You may also specify the ''port'' if it's not the default 2427.&lt;br /&gt;
&lt;br /&gt;
The ''forward_rtp'' setting allows a setup where RTP media is sent directly between the Media Gateway and the other endpoints, be them other gateways or SIP devices. This is very desirable for traffic but pay attention that Mediant gateways' RTP does not deal with NAT.&lt;br /&gt;
&lt;br /&gt;
The ''forward_sdp'' setting enables the entire SDP of the MGCP connection to be passed unchanged. This allows using non-standard features but prevents any manipulation of the RTP session like limiting the codecs.&lt;br /&gt;
&lt;br /&gt;
== Other configuration steps==&lt;br /&gt;
&lt;br /&gt;
* [[Configure Mediant M2UA|Configuring Mediant M2UA]]&lt;br /&gt;
* [[Configure MTP3|Configuring MTP3]]&lt;br /&gt;
* [[Configure ISUP|Configuring ISUP]]&lt;br /&gt;
&lt;br /&gt;
== Other documentation==&lt;br /&gt;
&lt;br /&gt;
* [http://www.audiocodes.com/filehandler.ashx?fileid=39007 Configuring AudioCodes' Mediant 2000 in the Cisco PGW 2200] (PDF)&lt;br /&gt;
* [http://www.audiocodes.com/filehandler.ashx?fileid=251037 MGCP MEGACO Product Reference Manual ver 5.6] (PDF)&lt;br /&gt;
* [http://www.audiocodes.com/filehandler.ashx?fileid=460114 MGCP MEGACO Product Reference Manual ver 5.8] (PDF)&lt;/div&gt;</summary>
		<author><name>Liviu</name></author>	</entry>

	</feed>