

- How to install freepbx high availability how to#
- How to install freepbx high availability password#
- How to install freepbx high availability free#
You need to add the as well. You may want to do this on all configuration files that support DSN to allow data sharing as much as possible. The way you do this depends on your deployment for example, if you are using my FusionPBX RPM's, it is done by adding it using the web interface, as FreeSWITCH uses the MySQL/MariaDB to get the profiles-config. When you are done, you need to add a tracking call method to your FreeSWITCH profiles configuration. Remember at this point you should have your FreeSWITCH with the following milestones:

Before we continue, there are some configurations you need to do to your FreeSWITCH server. Configure your FreeSWITCH for High AvailabilityĪt this point, you have your cluster ready but there is nothing to do. You can read the current configuration by typing crm configure show. Type these commands, this will allow corosync to deal with 2 nodes cluster:Ĭrm configure property stonith-enabled=falseĬrm configure property no-quorum-policy=ignore Type crm status to verify all is good, you shall see nodes names. Use the command service or systemctl, for example, service corosync start and service pacemaker start. You can start the corosync and pacemaker daemons on each node. You must make the hostnames of your nodes resolvable, you can do this with your DNS or by editing your /etc/hosts file on each file.
How to install freepbx high availability free#
You will also need to add an IPTables rule to warrant free traffic from and to port 5405/udp. Please make sure the hostnames you use are resolvable. Here it is my config file, do your changes to fit your needs. To be sure, check your /etc/corosync/nf configuration file, both files should have the same.

You might want to restart corosync and pacemaker services. If there is no error when you type pcs status or crm status you will see your nodes. After that, you can type pcs cluster setup -name cluster_name freeswitch-1 freeswitch-2. If all goes for good, you will have no errors. It is a good idea to use hacluster username, as CentOS RPM's will do all the privilege setup for you. Start the pcsd service on each node and then type pcs cluster auth freeswitch-1 freeswitch-2, you will be asked for a username.
How to install freepbx high availability password#
hacluster username on both servers needs to have the same password.Hostnames must be resolvable against each other.Before starting the service please make sure you have the following requisites: The easiest way is by using the pcsd service.
How to install freepbx high availability how to#
