udy786 wrote:Hi,
First install vicidial on new server then after copy below things from old server to new server:-
1. Asterisk DB
2. Web folder (/var/www/html)
3. /etc/asterisk/
4. If you want to copy sound also then /var/lib/asterisk/sounds
I have any changes in web folder then only need to copy else its not required. Once you copied, run server IP update.
Reboot server.
This worked for me. Hope it will work you too.
Do not copy the /etc/asterisk folder unless the version of asterisk is identical ... and if it is identical, then the contents of that folder should already be identical (in other words: don't copy that folder).
Note that the new server's IP will likely be different than the previous server, so /etc/asterisk/sip.conf may require editing of externip if you DO copy that folder.
You must also run /usr/share/astguiclient/ADMIN_update_server_ip.pl to change any references to the prior IP in the old server to the new IP in the new server.
You must also copy
/usr/share/astguiclient
/var/lib/asterisk/agi-bin
Voicemail files if you use voicemail
/var/spool/asterisk/voicemail/
Recordings if you want them
/var/spool/asterisk/monitorDONE/
Audio store which is a randomly named folder in the web root (/var/www/html or /srv/www/htdocs). It's name is listed in admin->system settings as well
Depending on usage, you may also want to copy any files missing from the new server's
/var/lib/asterisk/sounds
Once again, be careful if your asterisk version is different than the original.
Of course: You could install a fresh Vicibox server instead and upgrade the database (there's an UPGRADE document in /usr/src/astguiclient/trunk of Vicibox which contains instructions to upgrade the DB to the latest version). Then you'd have a stock server with the latest version and all your data.
(You still have to run /usr/share/astguiclient/ADMIN_update_server_ip.pl after the upgrade).
When done copying/upgrading: Modify admin->servers for each server to generate new configuration files for all categories, and verify that those files are updated one minute later (especially the ones ending with "-vicidial.conf" in /etc/asterisk).