As Jason said, I would use SIP and not IAX, IAX might save you a little bandwidth but the implementions (all of them) are horrible and they sound like crap.

There is also doing things like Least Cost Routing that will allow you to pick the best route for the call based on cost (and some other  metrics) and send a call to the carrier based on that, should the call fail, the call is automatically re-routed to the other carrier for failover

Contact me off list for an LCR implementation that I will be releasing in the very near future

K





From: Jason Garland <jgarland@gmail.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Mon, 24 Sep 2007 19:33:54 -0400
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Routing, redundancy , balance between multiple vendors

I would use SIP and a SIP proxy or SIP with DNS SRV records.

On 9/24/07, chav paskov <chav@vocalscape.com> wrote:


Hi Everybody,

The pic above  describes /I hope/ what I'm willing to accomplish using Freeswitch.

I think the pic is self explanatory and I have few questions based on it.

1. Is there any mechanism /application/ that would allow me to do round robin between Vendor 1 and Vendor 2.



Currently my settings are:



 <extension name="FreeSWITCH routing to IAX VENDORS">

   <condition field="destination_number" expression="^8888$">

     <action application="set" data="hangup_after_bridge=true"/>

     <action application="set" data="continue_of_fail=true"/>

     <action application="set" data="call_timeout=5"/>

     <action application="set" data="no_media=true"/>

     <action application="bridge" data="iax/marko:moofoo@XXX.XXX.XXX.242/1234567890"/>

     <action application="bridge" data="iax/marko:moofoo@XXX.XXX.XXX.243/1234567890"/>

   </condition>

 </extension>



Which gives me only Fail over functionality.

2. Can I apply the scenario described above using priority + number of active connections.

Example:



I'd like to be able to send all calls to Vendor 1 until the number of active connections reaches 250. All calls generated later on to be sent to Vendor 2.



I'd really appreciate if  somebody replies to this e-mail  with some good examples, or at least a hint.



Best regards









Chav Paskov

CTO Vocalscape Networks Inc.

Office:+1 (604) 696-6313 ext 102

Fax: +1 (604) 696-6315

Cell:+1 (604) 761-6388

chav@vocalscape.com <mailto:chav@vocalscape.com>



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org  <mailto:Freeswitch-users@lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org