I have an Asterisk PBX set up in a failover configuration so that the active server gets a floating IP address assigned. As an example, server-A may have an address such as 192.168.1.81 and server-B has an address of 192.168.1.82. The floating address for the active server assigned to the same interface is 192.168.1.80. I also have a vlan and the same type of floating address is used for that. Because of the multiple addresses, I have bindaddr = 0.0.0.0 in the sip.config. All of these addresses are assigned to the same physical interface. for Server one, eth0 = 192.168.1.81 eth0:0 = 192.168.1.80
eth0.129 = 10.10.1.81 eth0.120:0 = 10.10.1.80 This is if server one is the active server.
The problem is that the server accepts traffic on 192.168.1.80, the floating address, but sets the From: address in a sip response to the address 192.168.1.81, in the case of server-A active. If I did not have a vlan network on 10.10.1.0/24 I could use a binaddr = 192.168.1.80 and all would be happy. If I could specify multiple bind addresses, this would also solve the problem, but I do not think Asterisk allows that.
So any ideas on how to force Asterisk to place the floating address, assigned to interface eth0 as eth0:0 in the sip message? Any ideas would be greatly appreciated.