[Freeswitch-users] mod_distributor for bridge

DJB djbinter at yahoo.com
Wed Nov 11 11:19:12 PST 2009


Anthony,

Would this configuration work if we want to do load sharing 50/50:



#distributor.conf.xml


<configuration name="distributor.conf" description="Distributor Configuration">
  <lists>
    <list name="carrier1" total-weight="2">
      <node name="gateway1" weight="1"/>
      <node name="gateway2" weight="1"/>
    </list>
  </lists>
</configuration>

----------------------------------------------------
#sip_profiles/external/carrier1.xml

<include>
  <gateway name="gateway1">
    <param name="username" value="none"/>
    <param name="password" value="none"/>
    <param name="proxy" value="10.10.10.1"/>
    <param name="register" value="false"/>
  </gateway>
  <gateway name="gateway2">
    <param name="username" value="none"/>
    <param name="password" value="none"/>
    <param name="proxy" value="10.10.10.2"/>
    <param name="register" value="false"/>
  </gateway>

---------------------------------------------------
#dialplan/defalut/01_outbound_routes.xml

<include>
   <extension name="gw1">
     <condition field="destination_number" expression="^(.*)$">
       <action application="bridge" data="${distributor(carrier1)}sofia/gateway/gateway1/$1"/>
     </condition>
   </extension>
   <extension name="gw2">
     <condition field="destination_number" expression="^(.*)$">
       <action application="bridge" data="${distributor(carrier1)}sofia/gateway/gateway2/$1"/>
     </condition>
   </extension>
</include>


Thank you,
Dorn B.


      




More information about the FreeSWITCH-users mailing list