Can I make Hybrid FreePBX local and cloud an Sync between them?

I want to make a hybrid FreePBX setup with both local and cloud instance, I want to sync between local changes and cloud changes.

If you make any changes to local, Sync to cloud and opposite is right.

How can apply this Scenario?

What the best cloud company can I use to make this Scenario?

Maybe you could sync the databases like you would when working with MySQL databases in a master/slave setup?

But why?

I would recommend Vultr btw.

1 Like

You need to provide more details on how this is hybrid. You want to use both at once? One as a backup?

@BlazeStudios Upload Local FreePBX to Cloud and Sync Between local FreePBX and cloud, If I make any changes in Local FreePBX , I want to Sync changes to Cloud Freepbx.

In another Brands Like Grandstream and Yeastar, I can access Local PBX from Cloud by activate Licence and when I make any changes to Cloud, it Sync to Local PBX.

The Idea here I install FreePBX on my local server, I want to make FreePBX on cloud and sync between them.
By this way I can make calls via cloud and local and sync any changes between them.

The Advanced Recovery module syncs the system. How do you plan to use both at the same time? That will be problematic.

@BlazeStudios If I am not in the Local network, I can make calls via cloud from any where.
And sync CDR like call history, call record files to Local FreePBX

Yes, I get what the syncing does. I’m just curious as to how you would jump between both. This does seem to be overkill for when not on the local network and need to reach the PBX.

@BlazeStudios, I understand from your answer the best solution for this, installing Advanced Recovery Module in the Local FreePBX and link it with Cloud FreePBX.
If I make any changes to local, it will sync to cloud FreePBX and the opposite is correct.

No, it’s not real time syncing back and forth. It’s a backup/failover solution. Based on the details you’ve provided so far you want real-time syncing but that isn’t something FreePBX does. It is going to require to you to do your own solution. Then you’ll need to solve how you connect between the two when you’re inside or outside the LAN.

Again, this seems to be overkill in order to use your PBX remotely.

@BlazeStudios The idea from my question accessing Local FreePBX via cloud Like 3CX.

In 3CX I can install 3CX in local network and I can access 3CX by cloud via activate license and If I make changes by cloud it sync to local.

Are this solution available for FreePBX?

If you had a cloud instance , why would you need a local one too ?

I suggest that you might need a real SIP Proxy, not two B2BUA separated in different networks.

Are you sure you’re not confusing backup/failover solutions with “I can use both at the same time”?

If you work on another Brand Like 3CX ,Yeastar, Grandstream any one of them have a private cloud and you have image from local PBX on the cloud by activate license.

Are FreePBX have this solution?

The idea have an image from Local PBX on the cloud Like 3CX,Grandstream, Yeastar.
Any one of them have a private cloud and you have image from local PBX on the cloud by activate license, If you make any changes on cloud it Sync to Local.

Ignore this statement “I can use both at the same time”.

No it doesn’t

Again

If you had a cloud instance , why would you need a local one too ?

@dicko Upload local PBX to cloud the only target from this process.

Like any Software you can have snyc database changes.

There’s way more to sync than just database changes.

I want to Sync database changes and make changes from cloud or local.

There are three databases that need syncing, the easiest is the flatfile voicemail.conf. The second one is the MySQL/MariaDB storage that is used for CDR’s and configuration, the configuration is easy to ‘sync’ using standard mysql master/slave or master/master procedures but you will need to build a trigger to commit any changed tables which ‘pushes’ the GUI changes to the /etc/asterisk/*.conf files and then reload the Asteerisk dial-plan, the CDR’s can be written to many ‘backends’
Perhaps the hardest thing you will encounter is the sqlite3 database that maintains the ‘state’ of the asterisk instance, this can only be safely synced through the asterisk ‘database’ calls, or a complicated and unsupported by FReePBX network sync.

Making this all bi-directional increases your challenges a lot.