Thorolf Godawa
2009-Dec-03 19:48 UTC
[asterisk-users] Source-IP on Asterisk DRBD/-HA-Cluster wrong
Hi all, I installed a Linux-HA-cluster with DRBD and Asterisk 1.4 on it. Actually it might work quite good, failover etc. works, even if this is not a 0-downtime solution, because current calls are dropped and the phones not are reachable until they reregister at the Asterisk. It "might" work good, because my phones are not able to register at the cluster-ip address, because the REGISTER arrives at the cluster-ip, while Asterisk responds from the real host-ip of the active cluster-node. The registration with the real ip works, but then I can't use any failover solution. I have already checked several solutions found at http://www.voip-info.org/wiki/view/Asterisk+High+Availability+Solutions and some others returned by searching the net, but nothing that helped me out. I see three possible solutions: - is there a parameter in Asterisk to set the source-ip? - patching Asterisk to include such a parameter? - would be changing the primary ip-address to the "cluster"-ip and changing the "real" host-ip to an alias, a good solution? Thanks for any hints in advance, -- Chau y hasta luego, Thorolf
Scott L. Lykens
2009-Dec-03 20:28 UTC
[asterisk-users] Source-IP on Asterisk DRBD/-HA-Cluster wrong
> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- > bounces at lists.digium.com] On Behalf Of Thorolf Godawa > Sent: Thursday, December 03, 2009 2:49 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] Source-IP on Asterisk DRBD/-HA-Cluster wrong> Actually it might work quite good, failover etc. works, even if thisis not a 0-> downtime solution, because current calls are dropped and the phonesnot> are reachable until they reregister at the Asterisk.Apologize for not directly answering your questions, however, I'm considering playing with Remus and Xen in the future to deal with high availability without dropping calls. See http://dsg.cs.ubc.ca/remus/ for some details. I have no idea if it will work or what the implications are but I noticed that in doing research for some other projects and made a note of it to try in the future. sl
Alex Balashov
2009-Dec-03 20:46 UTC
[asterisk-users] Source-IP on Asterisk DRBD/-HA-Cluster wrong
Thorolf, In the [general] section of sip.conf, set the 'bindaddr' parameter to the cluster IP. If Asterisk is only bound to the floating interface, it will respond only from that source IP. -- Alex Thorolf Godawa wrote:> Hi all, > > I installed a Linux-HA-cluster with DRBD and Asterisk 1.4 on it. > > Actually it might work quite good, failover etc. works, even if this is > not a 0-downtime solution, because current calls are dropped and the > phones not are reachable until they reregister at the Asterisk. > > It "might" work good, because my phones are not able to register at the > cluster-ip address, because the REGISTER arrives at the cluster-ip, > while Asterisk responds from the real host-ip of the active cluster-node. > > The registration with the real ip works, but then I can't use any > failover solution. > > I have already checked several solutions found at > http://www.voip-info.org/wiki/view/Asterisk+High+Availability+Solutions > and some others returned by searching the net, but nothing that helped > me out. > > I see three possible solutions: > - is there a parameter in Asterisk to set the source-ip? > - patching Asterisk to include such a parameter? > - would be changing the primary ip-address to the "cluster"-ip and > changing the "real" host-ip to an alias, a good solution? > > Thanks for any hints in advance,-- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671