Project

General

Profile

Cluster Setup

Added by Steve Turner 10 months ago

Have just started to review ver4, and curious how to cluster the servers? Is the same as Vicidial or what is the process?


Replies (12)

RE: Cluster Setup - Added by Demian Lizandro Biscocho 10 months ago

It's similar to the cluster process of Vicidial. With the exception of having a centralized Kamailio SIP server that handles all SIP registrations. So there are no SIP extensions configured in the Asterisk servers.

RE: Cluster Setup - Added by Steve Turner 10 months ago

ok, so pretty much go into the astguiclient.conf and make all the changes as normal. I will give it a try and see if run into issues.
Thanks

RE: Cluster Setup - Added by Steve Turner 10 months ago

Ok, finally got some time to work on this. Installed from ISO into local VM with "problem connecting to "localhost", port 5038: Connection refused at /usr/share/astguiclient/AST_conf_update.pl line 266"
.
As for the clustering:

The CLUSTER STATUS shows an IP of 127.0.0.1, not the actual 192.168.100.60. Tried to change in the Server setting GUI and the CLUSTER STATUS went empty. Ran the install.pl and deleted the kamailio settings so copied them over to updated astguiclient.conf. On reboot Asterisk does not start automatically and Kamailio still says 127.0.0.1 as host.

RE: Cluster Setup - Added by Steve Turner 10 months ago

anyone know the settings to change for the cluster? what is the best recommendation for a setup?

RE: Cluster Setup - Added by Levy Ryan Nolasco 9 months ago

Hi,

What is the output of your /etc/hosts?

RE: Cluster Setup - Added by Demian Lizandro Biscocho 9 months ago

Here's the initial cluster HOWTO:

HOWTO Cluster

RE: Cluster Setup - Added by Steve Turner 4 months ago

When we add phones to the cluster, how are the PHONE ALIASES created or the load balancing handled?

Or do we only create one phone and point it toward the KAMAILIO server?

RE: Cluster Setup - Added by Demian Lizandro Biscocho 3 months ago

Hey Steve,

Kamailio handles all SIP phone registrations. They are created as EXTERNAL phones (even though they're SIP phones) on the database.

You can choose which server IP or Asterisk server to associate the phones. You can do this on the admin GUI or via the MariaDB CLI.

RE: Cluster Setup - Added by Steve Turner 3 months ago

ok, but if an asterisk server goes down will Kamailio reregister the phone to a different server for the agent to continue. As you know, in Vici if a server crashed, the agent only need to log out and back in to connect to another server. Also as the load balancing between asterisk boxes, as not to have 30 agents dialing from one and having 2 others sit idle. I do see in the Server admin LOADBALANCING yes or no.

Phone 10001
alias 10001a
alias 10001b
alias 10001c
etc

RE: Cluster Setup - Added by Demian Lizandro Biscocho 3 months ago

If an Asterisk server goes down, you can run an SQL command to shift all the phones from the down server to the working ones. Nothing needs to be done from the agent side unless the server goes down while they're logged-in. Then they just need to refresh or re-login to the campaign.

Just set the LOADBALANCING on the admin GUI to yes.

RE: Cluster Setup - Added by Steve Turner 3 months ago

is there any way to use the alias phones same as Vicidial so we do not have to worry about SQL? This can be a huge disruption if no one is available to repair asterisk or run the SQL commands. Or is this not an option?

RE: Cluster Setup - Added by Demian Lizandro Biscocho 3 months ago

Can you try it and let us know how it goes?

    (1-12/12)
    Go to top