On 5/21/07, Blaine Aldridge <[EMAIL PROTECTED]> wrote:
I'm trying to create a failover / redundant asterisk solution.
You probably want to look into the 'heartbeat' application for Linux. By using this, you essentially have 2 physical boxes. The heartbeat application runs on both of them and shares a virtual IP address (which is a real IP address, its just typically attached to the eth0 interface as something like eth0:1). The heartbeat application then is what actually starts up the Asterisk application, and monitors the connection between the two boxes. If one of the boxes goes down, then the other server notices this and takes over the IP address and starts up Asterisk. Using this method, you don't have to mess with anything in DNS, and your phones don't need to support a backup server since the IP address is the same. This is a good solution for failover -- this is not going to be a load balancing solution since only one box is going to be active at a time, and the other box will just be sitting there idle when it comes back up. Maybe install [EMAIL PROTECTED] on it :) I don't use this for Asterisk, but rather for OpenSER, but it works really well. I have a single OpenSER box which uses the dispatcher.list file which distributes calls to multiple Asterisk boxes (there is your load balancing solution). -- Leif Madsen. http://www.leifmadsen.com http://www.oreilly.com/catalog/asterisk
