Adding a node to a cluster: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
(Created page with "if you want to add a node to an existing cluster, proceed in installing the new node as usual. The new node needs to share the same database as the other nodes. You can instal...")
 
No edit summary
Line 10: Line 10:
</pre>
</pre>
* Edit Admin/PBX Nodes and add the new node.
* Edit Admin/PBX Nodes and add the new node.
* Edit /var/lib/asterisk/agi-bin/devstate.conf.php on all the nodes and list all the nodes IP. Restart devstatesender and devstatereceiver on all nodes.

Revision as of 15:50, 13 January 2017

if you want to add a node to an existing cluster, proceed in installing the new node as usual. The new node needs to share the same database as the other nodes. You can install a MySQL Multimaster with the other nodes or just connect to their database. Once done, these are the steps to do:

  • Configure manager.conf to allow connection from all other nodes. You need to configure the manager.conf on the new nodes with the IP of the other nodes and add the new node IP to manager.conf in other nodes.
  • Configure sip.conf to allow connection from all other nodes. You need to configure the sip.conf on the new nodes with the Peers from other nodes and add the new node Peer to sip.conf in other nodes.
  • Enable sipregs configuring it in include/db.inc.php
  • Edit /etc/asterisk/extconfig.conf and configure the sipregs hookup like the following. srv01 in this case is the short name for the server
sipregs => odbc,asterisk1,sipregs_srv01,1
sipregs => odbc,asterisk2,sipregs_srv01,2
  • Edit Admin/PBX Nodes and add the new node.
  • Edit /var/lib/asterisk/agi-bin/devstate.conf.php on all the nodes and list all the nodes IP. Restart devstatesender and devstatereceiver on all nodes.