FusionPBX for ex-Trixbox users

This blog is intended to be read in sequential order as it is a series of steps that I followed to build a fully functioning fusionpbx phone system. However you might just need to find out how to do a particular thing so you might want to use the search box below to find that specific step. Please give feedback - if you know a better way to do something share it!

Thursday, August 5

Migrating

Ok, so I have to make a confession at this point.  This is not my first FusionPBX installation.  My first one was when I accidentally installed it on an old laptop thinking it was a LiveCD and it formatted my laptop harddrive.  I never intended to install it on that machine!  But I did get it up and running there, with slightly broken audio because the processor was far too slow (the laptop is nearly 10 years old and wasn't top of the line at the time).

So as I got everything initially setup on that machine, I didn't want to go through the trouble of setting up things again that I had already got working on that machine.  Therefore when I setup my new server, on the machine I had actually intended to install it on, I wanted to migrate as much as possible over from the old machine rather than starting again.  So this blog entry is to provide notes to people in case they want to migrate settings from one FusionPBX to another.  If you are not migrating from one FusionPBX to another you wouldn't do any of these steps, however, you might want to make a note of how to import recordings below as you could import your Trixbox recordings and put them on your FusionPBX machine if you wanted to make life easier for yourself (however, you would want to convert them to 8000Mhz WAV files if they aren't already before copying them to FusionPBX).


a. backup the database from the old machine (web admin home, backup, download) or alternatively you can pull it from /var/www/fusionpbx/secure/fusionpbx.db using PSFTP (secure FTP provided with Putty).
b. put it onto the new machine using PSFTP
c. on the console of the new machine -
cd /var/www/fusionpbx/secure
cp fusionpbx.db fusionpbxoriginal.db
cp the_uploaded_fusionpbx.db .
(Note that by using cp to copy the new file over the existing file we maintain the file permissions on the existing file.  Note that it is not necessary to stop any processes on the machine etc before doing this.)
d. on the web administration screens go through each of the voice menu features you have made use of and open one item in each and save it (no need to make any changes).  Once you've done that for each feature you can apply your changes and it will have all taken effect. - note that you may be able to avoid this step if you copy the /usr/local/freeswitch/scripts folder from your old server to the new one - I haven't tried this but theoretically it will work.
e. you will need to reload the xml file, rescan your external and internal connections and then restart these - you do this all from the status webpage.
f. you will need to transfer any of your recordings such as voicemail greetings and IVRs etc from the old machine to the new one (/usr/local/freeswitch/recordings on FusionPBX.  If you are copying these from Trixbox look in /var/lib/asterisk/sounds).  You'll need to apply the same permissions to these files as is on the folder you are putting them into (using chmod, chgrp, chown).
g. voicemails greetings are stored in /usr/local/freeswitch/storage/voicemail/default/IPADDRESSOFYOURMACHINE/EXTENSION - you can copy them to your new machine using sftp - they will be "greeting_X.wav" and "recorded_name.wav" where X is the greeting number.  The greeting will not actually play until you dial into the voicemail for that extension and select that greeting number, then it will be active.  Personally I would not bother copying these - it would be better to re-record all of the outgoing messages.  Also, you would want to have listened to all your incoming messages before migrating as you don't want to have to copy those.

h. if you made any customisations to the sip profiles you'll have to manually copy those changes over as well as they are not stored in the database.  Look for these in /usr/local/freeswitch/conf/sip_profiles
i. if you made any custom scripts you will need to transfer these manually too.  Theoretically you would have stored these in /usr/local/freeswitch/scripts.  But if not, you created them, so hopefully you know where you put them!


That's everything I've found.  If you try it and you come up with anything else that it is helpful to migrate or any alternative steps then please submit them as comments so everyone can be helped by your insight.

No comments:

Post a Comment