Adding a node to a cluster: Difference between revisions
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 |
||
(4 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
sipregs => odbc,asterisk2,sipregs_srv01,2 | sipregs => odbc,asterisk2,sipregs_srv01,2 | ||
</pre> | </pre> | ||
* Edit /etc/asterisk/extconfig.conf and configure the queue hookup like the following. srv01 in this case is the short name for the server | |||
<pre> | |||
queues => odbc,asterisk1,queue_srv01,1 | |||
queues => odbc,asterisk2,queue_srv01,2 | |||
</pre> | |||
* Edit /etc/asterisk/extconfig.conf and configure the ps_contact hookup like the following. srv01 in this case is the short name for the server | |||
<pre> | |||
ps_contacts => odbc,asterisk1,ps_contacts_srv01,1 | |||
ps_contacts => odbc,asterisk2,ps_contacts_srv01,2 | |||
</pre> | |||
* Reload the extconfig module, if needed | |||
* 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. |
Latest revision as of 14:21, 23 September 2020
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 /etc/asterisk/extconfig.conf and configure the queue hookup like the following. srv01 in this case is the short name for the server
queues => odbc,asterisk1,queue_srv01,1 queues => odbc,asterisk2,queue_srv01,2
- Edit /etc/asterisk/extconfig.conf and configure the ps_contact hookup like the following. srv01 in this case is the short name for the server
ps_contacts => odbc,asterisk1,ps_contacts_srv01,1 ps_contacts => odbc,asterisk2,ps_contacts_srv01,2
- Reload the extconfig module, if needed
- 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.