We help IT Professionals succeed at work.

FreePBX Failover/Load Balance over two different datacenters

262 Views
Last Modified: 2018-12-20
Dear Experts,

I have two FreePBX virtual machines distributed over two different data centers but both are for the same company, I am planning to use sip trunk on those two VMs and seeking to get them to work in failover/load balance mode.

I know that some sip trunk provider provide the capabilities of failover in case my primary Public IP is not responsive however I would like to extend the failover and load balance to the level of the VM as well.

Have anyone tried to do the load balance/failover method on a VM level between two datacenters ? How would VoIP traffic react in case of primary VM down? how about end points configuration ? Can I direct end points to a single FQDN where both IPs can resolve and if one of the VMs are down still the end point would get register and act like nothing is happening ?

I would appreciate any person's comment that have had an experience with such scenario.

Thank you
Comment
Watch Question

David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Mohammed HamadaSenior IT Consultant
CERTIFIED EXPERT

Author

Commented:
Hi David,

Thank you for the advise, my major concern here is that in case of failover I don't want to switch IPs ..etc thats why I asked this question.

Is this achievable in anyway? I have tried to do it with Microsoft Skype for Business on two different pools in different datacenters with pool pairing but unfortunately it requires manual failover. I know it can be done using branch server or appliance but not all functionalities will be there.

So I am trying it with FreePBX in order to maintain multiple sites without doing much work or down time.

I thought of using cloudflare's DNS load balancing capabilities but not sure if it would work properly with VoIP. I would appreciate if you can tell me whether you tried it or not?

Thank you
nociSoftware Engineer
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
The bigest hurdle would be the failover of IP addresses, if those don't migrate from one DC to the other then all connections on the failing equipment will be lost. after reregistration by the phones (phone should be able to register on both systems)  and of the PBX to the ISP a retry by the endusers can be attempted.

The RTP links will fail (They use barebones IP addresses determined using stun etc.) No DNS help here.
Mohammed HamadaSenior IT Consultant
CERTIFIED EXPERT

Author

Commented:
Hi Noci,

Do you think it depends on the phone of how regularly it checks whether the phone is registered/not and re-register ? how would it be possible to do this on an end point ?
Software Engineer
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Mohammed HamadaSenior IT Consultant
CERTIFIED EXPERT

Author

Commented:
Thank you both,

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.