]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Updated conf
authorDavid Yat Sin <dyatsin@sangoma.com>
Wed, 20 Jun 2012 04:38:05 +0000 (00:38 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Wed, 20 Jun 2012 04:38:05 +0000 (00:38 -0400)
src/mod/endpoints/mod_media_gateway/conf/media_gateway.conf.xml [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 91f8f0c..aa314fb
@@ -1,28 +1,50 @@
-<configuration name="megaco.conf" description="Megaco Controllee">
-
-       <!--Each instances of MG will have each mg profile  -->
-   <mg_profiles>
-          <mg_profile name="default">
-               <param name="protocol" value="MEGACO"/>                         <!-- /* Protocol Type , Supported values are MEGACO/MGCP */ --> 
-               <param name="version" value="3"/>                               <!-- /* Protocol Version , Supported values for MEGACO are 1/2/3 */ -->
-               <param name="local-ip"  value="192.168.1.103"/>                 <!-- /* Local node IP */ --> 
-               <param name="port"      value="2944" />                         <!-- /* Port */ -->
-               <param name="domain-name" value="lab.sangoma.com" />            <!-- /* Local domain name */ -->
-               <param name="message-identifier" value="<mg.sangoma.com>" />    <!-- /* Message Identifier (MID) of MEGACO message  */ -->
-               <peers>                                                         <!-- /* List of Peers associated with this MG Profile */ -->
-                       <param name="peer"  value = "peer-1" />                 <!-- /* link to peer configuration block */ -->
+<configuration name="media_gateway.conf" description="Media Gateway Configuration">
+       <mg_profiles>
+           <mg_profile name="profile-1">
+               <param name="protocol" value="MEGACO"/>
+               <param name="local-ip"  value="192.168.1.50"/>
+               <param name="port"      value="2944" />       
+               <param name="domain-name" value="lab.sangoma.com" />
+               <param name="message-identifier" value="<mg.sangoma.com>" />
+               <param name="version" value="3"/>
+               <param name="default-codec" value="PCMA"/>
+               <param name="rtp-port-range" value="5000-6000"/>
+               <param name="rtp-termination-id-prefix" value="TermRtp"/>
+               <param name="rtp-termination-id-len" value="4"/> <!--  /* Allowed values = any digit from 0 to 9 */ -->
+               <physical_terminations>
+                       <map  termination-id-prefix="Term1/" termination-id-base="1" tech="freetdm" channel-prefix="wp2" channel-map="1-15,17-31"/>
+                       <map  termination-id-prefix="Term2/" termination-id-base="1" tech="freetdm" channel-prefix="wp3" channel-map="1-31"/>
+               </physical_terminations>
+               <peers>
+                       <param name="peer"  value = "peer-1" />
+                       <param name="peer"  value = "peer-2" />
+                       <param name="peer"  value = "peer-3" /> 
                </peers>
-           </mg_profile>
-    </mg_profiles>
-
-    <mg_peers>
-         <mg_peer name="peer-1">
-               <param name="ip"  value="192.168.1.102"/>                       <!-- /* Peer node IP */ -->
-               <param name="port" value="2944"/>                               <!-- /* peer port */ -->
-               <param name="encoding-scheme" value="TEXT"/>                    <!-- /* H.248 Encoding scheme TEXT/BINARY */ --> 
-               <param name="transport-type" value="UDP"/>                      <!-- /* TCP/UDP/SCTP */ -->
-               <param name="message-identifier" value="<remote1.mgc.com>" />     <!-- /* Message Identifier (MID) of remote MGC MEGACO message  */ -->
-        </mg_peer>
+       
+               </mg_profile>
+       </mg_profiles>
 
- </mg_peers>
- </configuration>
+       <mg_peers>
+               <mg_peer name="peer-1">
+                       <param name="ip"  value="192.168.1.49"/>          
+                       <param name="port" value="2944"/>                       
+                       <param name="encoding-scheme" value="TEXT"/>      
+                       <param name="transport-type" value="UDP"/>        
+                       <param name="message-identifier" value="<remote1.mgc.com>" />    
+               </mg_peer>
+               <mg_peer name="peer-2">
+                       <param name="ip"  value="192.168.1.55"/>
+                               <param name="port" value="2944"/> 
+                       <param name="encoding-scheme" value="BINARY"/>
+                       <param name="transport-type" value="UDP"/> 
+                       <param name="message-identifier" value="<remote2.mgc.com>" /> 
+               </mg_peer>
+               <mg_peer name="peer-3">
+                       <param name="ip"  value="192.168.1.44"/> 
+                       <param name="port" value="2944"/>
+                       <param name="transport-type" value="UDP"/> 
+                       <param name="encoding-scheme" value="TEXT"/> 
+                       <param name="message-identifier" value="<remote3.mgc.com>" />
+               </mg_peer>
+       </mg_peers>
+</configuration>