Changing server IP: Difference between revisions
Jump to navigation
Jump to search
(Created page with "If you like to change the server IP, you need to perform additional activities to ensure all continue to work. * Change the server IP in /etc/sysconfig/network-scripts/ifcfg-...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
* Change the peer IP in /etc/asterisk/sip.conf | * Change the peer IP in /etc/asterisk/sip.conf | ||
* Change the allowed IP in /etc/asterisk/manager.conf | * Change the allowed IP in /etc/asterisk/manager.conf | ||
* Change the IP in /var/lib/ | * Change the IP in /var/lib/asterisk/agi-bin/devstate.conf.php | ||
* Change the IP in Admin/PBX Nodes | * Change the IP in Admin/PBX Nodes | ||
* Restart the server | * Restart the server | ||
If you are running asterisk behind NAT and you are going to just change the external IP Address, then it is only needed to change the external IP defined as externip in sip.conf and reload IP/restart the server | |||
If you use separate databases, you may need to update the address for the database server. This is listed in the following files: | |||
* /etc/odbc.ini | |||
* /var/www/html/pbx/include/db.inc.php | |||
* /var/lib/asterisk/agi-bin/include/db.inc.php | |||
* /etc/voipmonitor.conf | |||
If you are going to change the server name, be sure to update /etc/asterisk/extconfig.conf and the relevant part in Admin/PBX Nodes |
Latest revision as of 13:33, 22 May 2022
If you like to change the server IP, you need to perform additional activities to ensure all continue to work.
- Change the server IP in /etc/sysconfig/network-scripts/ifcfg-* (assuming you are running CentOS)
- Change the direct IP resolving in /etc/hosts
- Change the peer IP in /etc/asterisk/sip.conf
- Change the allowed IP in /etc/asterisk/manager.conf
- Change the IP in /var/lib/asterisk/agi-bin/devstate.conf.php
- Change the IP in Admin/PBX Nodes
- Restart the server
If you are running asterisk behind NAT and you are going to just change the external IP Address, then it is only needed to change the external IP defined as externip in sip.conf and reload IP/restart the server
If you use separate databases, you may need to update the address for the database server. This is listed in the following files:
- /etc/odbc.ini
- /var/www/html/pbx/include/db.inc.php
- /var/lib/asterisk/agi-bin/include/db.inc.php
- /etc/voipmonitor.conf
If you are going to change the server name, be sure to update /etc/asterisk/extconfig.conf and the relevant part in Admin/PBX Nodes