Avatar of Mohammed Hamada
Mohammed Hamada
Flag for Portugal asked on

FreePBX Failover/Load Balance over two different datacenters

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
IP TelephonyVoice Over IPTelecommunications* Failover

Avatar of undefined
Last Comment
Mohammed Hamada

8/22/2022 - Mon
SOLUTION
David Favor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Mohammed Hamada

ASKER
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
noci

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 Hamada

ASKER
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 ?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
noci

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Mohammed Hamada

ASKER
Thank you both,