This article illustrates how to implementing VERY simple active/passive IP failover using ScopTEL IP PBX.
The Automatic Failover (heartbeat) module allows two (2) servers to share an high availability IP address.
Each server has its own normal IP address used to administer the server. There is then a 3nd Floating IP address that SIP/IAX2 clients and SIP Gateways/Trunks connect to. This normally runs on the primary server as an IP alias for the WAN (eth0:0) Interface.
The backup (slave) server then monitors the health of the primary server, and if it crashes the backup (slave) takes over the service IP address. The backup monitors the primary through the LAN network and optionally through a null modem cable connected between the serial ports on each server.
For the purposes of this article we will have two (2) servers, and three (3) IP addresses, for this setup we have two (2) internal/LAN IP’s and one (1) Public/WAN IP address.
The IP/Hostnames/DNS we will be using are as follows:
To configure Heartbeat on ScopTEL PBX is pretty easy. Do the steps below on both servers :
You also have others options to manage the Failover (Heartbeat) service. By sample, if you want to use a null model cable instead of Network broadcast, you can change the Interface Mode to Serial Port.
That’s it!!! Fire up both servers/nodes, pull the plug on your primary node (server 1), and check backup server (server 2) to see that it has taken over your High Availability services and Floating IP Address.