Dear Sirs, out asterisk server has multiple network cards. I want some outgoing calls (from several extensions) to use one IP address, and others to go through another address. is there a way to achive that using asterisk ? Cheers, Kate -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070914/231ea57f/attachment.htm
Gordon Henderson
2007-Sep-14 18:12 UTC
[asterisk-users] how to route outgoing calls on IP-level
On Fri, 14 Sep 2007, Kate Kretz wrote:> Dear Sirs, > > out asterisk server has multiple network cards. > > I want some outgoing calls (from several extensions) to use one IP address, > and others to go through > another address. > > is there a way to achive that using asterisk ?I doubt it, but in any case, you really ought to do it at the Linux routing level. And it might well happen that it happens automatically, anyway. In the absence of anything otherwise, Linux will pick the right interface for the network that interface is pointing to. Unless you've got something really weird that is, in which case you need a networking guru and not an asterisk guru :) Give us more details and see... Gordon
Drew Gibson
2007-Sep-14 18:41 UTC
[asterisk-users] how to route outgoing calls on IP-level
Kate Kretz wrote:> Dear Sirs, > > out asterisk server has multiple network cards. > > I want some outgoing calls (from several extensions) to use one IP > address, and others to go through > another address. > > is there a way to achive that using asterisk ? > > Cheers, > Kate >This is the job of your network, not Asterisk. Policy-based routing is not much fun (unless you think the Cisco CLI is "really cool") but it can be done. regards, Drew -- Drew Gibson Systems Administrator OANDA Corporation www.oanda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070914/eff4c1b9/attachment.htm
Joseph Bajin
2007-Sep-15 03:55 UTC
[asterisk-users] how to route outgoing calls on IP-level
What are the factors in deciding which interface the traffic needs to go out of? Is it based on IP address, is it based on the terminating carrier? --Joe On 9/14/07, Kate Kretz <kate.kretz at gmail.com> wrote:> Dear Sirs, > > out asterisk server has multiple network cards. > > I want some outgoing calls (from several extensions) to use one IP address, > and others to go through > another address. > > is there a way to achive that using asterisk ? > > Cheers, > Kate > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users >-- --Joe "Success is easy if you think of it like Rust: It's inevitable if you keep at it. Guys claim there are magic moments, but that's just bullshit." --Fred Franzia (The famous wine guy)
Alex Balashov
2007-Sep-19 15:29 UTC
[asterisk-users] how to route outgoing calls on IP-level
Kate, Are the IP interfaces on those NICs on the same subnet? The simplest way to do this is to pin static routes to various SIP destinations in your kernel routing table over one interface or the other, e.g. something like: route add -host w.x.y.z gw ethX Then you can send a call to SIP peer w.x.y.z and it will go over whichever NIC in accordance with your preference. I do not know of a way to control this from within Asterisk itself, and believe it unlikely to be possible. Good luck, -- Alex -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671