[Freeswitch-users] mod_distributor for bridge

DJB djbinter at yahoo.com
Wed Nov 11 13:35:28 PST 2009


Anthony,

I did the test and the load sharing works great.  However, I tried to test by failing the first gateway and the load sharing is working correctly, but is there a way that it would fail over and continue to the next one if any of the gateways failed within the list.  I've tried with continue_on_fail=true, but it did not work.

Thank you,
Dorn B.



________________________________
From: DJB <djbinter at yahoo.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Wed, November 11, 2009 1:06:39 PM
Subject: Re: [Freeswitch-users] mod_distributor for bridge


Actually, I got it.  I've added:  applications/mod_distributor  in the modules.conf 
I will start testing now.

Thank you,
Dorn B.



________________________________
From: DJB <djbinter at yahoo.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Wed, November 11, 2009 11:57:29 AM
Subject: Re: [Freeswitch-users] mod_distributor for bridge


Thank you.  I will test with the latest SVN; however, can you please advise how do I add it in modules.conf since I don't see the item in there so that I can rebuild the source.

Regards,
Dorn B.

________________________________
From: Anthony Minessale <anthony.minessale at gmail.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Wed, November 11, 2009 11:37:31 AM
Subject: Re: [Freeswitch-users] mod_distributor for bridge

you got 2 out of 3,

the dialplan would look like this:

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


On Wed, Nov 11, 2009 at 1:19 PM, DJB <djbinter at yahoo.com> wrote:

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.
>
>
>
>
>>_______________________________________________
>>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091111/45ddd594/attachment-0002.html 


More information about the FreeSWITCH-users mailing list