QUESTION Failover

tritron

Member
Joined
May 26, 2013
Messages
76
Reaction score
5
How to create failover between in cloud pbx at atcost and my local pbx running under kvm?
 

howardsl2

Guru
Joined
Aug 5, 2013
Messages
88
Reaction score
25
You can achieve this using Monit combined with a dynamic DNS service such as No-IP. Use Monit to check the ping status of your cloud server every monitor cycle, and when it fails for X cycles, execute some bash script that will update your No-IP DNS hostname's IP address to your local server via their API. After it succeeds for Y cycles, change it back.
 

SkykingOH

Guru
Joined
Dec 12, 2008
Messages
35
Reaction score
16
Ping is not a reliable indicator, a system with a filesystem mounted as read only and Asterisk stopped dead will still respond to ping.

You have two choices, roll your own with DRDB, heartbeat and corosync. This will give you a floating IP.

Call state can't be maintained under failover.

If you are not comfortable installing and configuring *nix software then the FreePBX HA module works very well. It's not inexpensive and you need a license for each node. If it takes you over 20 hours to roll your own depending on how you value your time you will have spent less to buy the commercial module.
 

vic555

Member
Joined
Aug 24, 2014
Messages
76
Reaction score
14
High Availability Disaster Recovery $3000 ($1500 per HA Node/PBX) for 25 year license
FreePBX High Availability or "FreePBX HA" was created to fill a need for organizations that have a low tolerance for downtime in the event of system failures and outages. Traditional Backup solutions for FreePBX include onsite or offsite backups and warm spares, both solutions are adequate, but when days, hours or even minutes of downtime are not ideal FreePBX HA is now available.

My take: not cheap, but what are the alernatives?

 

atsak

Guru
Joined
Sep 7, 2009
Messages
2,381
Reaction score
436
Another very cheap way would be to setup an http page which checks the status of Asterisk and replies with OK or BROKEN, then use a health check on Amazon route 53 or other DNS provider with that feature to see if it's up then failover the IP when it doesn't say OK. While not realtime a TTL of 5 minutes would get you fairly prompt automatic failover. You can sync config using a script for freepbx backup and restore and capture most things. That wouldn't take as long. It's not as complete as the other options (SkykingOH has the best way along with the Freepbx commercial module) but it wouldn't take as long and it would be ultra cheap.
 

Dave Gray

Guru
Joined
May 22, 2013
Messages
150
Reaction score
60
From experience (we use these sorts of things on large-scale database platforms), this is a pest to get working, and a downright PITA to get bulletproof. It takes a lot of testing (which a lot of people tend to gloss over) and a *really* good understanding to make reliable. We use commercially built stuff, with extra hardware (dedicated net cards to gen a heartbeat between servers) and it still happens that the failover software is a lot less reliable than the databases it's supposed to protect :eek:

Is this for a business? Or just your house? Or do you have a business that runs from your house? If it isn't just messing around, if there's money on the line, spend the bucks and get a supported system. Otherwise, if you have the time and the inclination, good on ya - maybe you'll come up with something saleable.
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,145
Reaction score
1,235
Most phones have primary and secondary addresses for registration. Then depending on who your carrier is, you can have them route to PBX1 and then if its not available, it routes to PBX2. Then setup the backup to backup from PBX1 to 2 as often as you like. Should PBX1 ever go offline, PBX2 kicks in. Not realtime - only updated to the extent of the backup/restore ... but It Works.
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,203
Latest member
frapu
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top