You can do policy routing on Linux systems too, using iptables' mark 
functionality, combined with iproute2.  Mark packets patching whatever 
parameters you wish (i.e.,  in the mangle table in the prerouting chain, match 
packets on UDP port 5060), and then use ip rule/ip route to route as you 
desire.  See here for more detailed instructions/examples:

http://linux-ip.net/html/adv-multi-internet.html

Whether this will work well (or at all) for your specific case is questionable 
at best.  I can't imagine load balancing SIP traffic across two ADSL lines 
would work well, if at all, but I've never tried it either.  Doing a 
primary/failover setup would work a lot better, I'd think.

Oh, and my apologies for top-quoting.  Outlook and all...


From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Chris Childress
Sent: Thursday, November 04, 2010 9:08 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] ADSL Load Balancing

On 3.11.2010 г. 02:29 ч., Dan Journo wrote:
Hi,

I've got a client with two ADSL connections for redundancy.

Is it possible to set up asterisk to connect to one SIP provider using both 
adsl connections and load balance between the two connections?
Or to use one connection as the main one, and automatically fail over if the 
first connection drops?

Or does this kind of thing need a serious network switch?

Thanks
Dan

Hello,

    If you are using Cisco gear (891 SOHO routers for example), take a look at 
Policy Routing, you can set next-hop routers based on any information available 
to an access-list.

Chris
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to