FREE Simple Failover Solution for Windows & Your Windows Based PBX
Basically you have 2 servers running pbxnsip with the configuration you want. When the live server goes down the backup server will take on the IP address of the live server.
On the failover server you schedule the attached vbscript to run every minute:
c:\heartbeat <live_server_ip> <live_server_mask> <live_server_gateway>
c:\heartbeat 192.168.1.10 255.255.255.0 192.168.1.1
Everytime the script runs and the live server is up a windows event log will be written of success.
The instant the live server fails, the failover process will role into action:
#1-windows event log of failure will be written
#2-IP address change will be done and event log written.
-copy data from live server to failover on ongoing basis
-automatically start the pbxnsip service
-pbxnsip running on a second server with the configuration in place
-a pbxnsip license key with MAC address of master and backup server
Warning! This is beta, sloppy code (hey, i did it in 1.5hr) and not tested very much yet so use at your own risk. So test on a test senario and give me feedback by commenting below. THANKS for your feedback.
The vbscript download is available here: