How to: Upgrade FreePBX13 to FreePBX14 on Hyper V - Guide


(Sentinel) #1
  1. 1. Migration Tool

https://wiki.freepbx.org/display/PPS/Elastix+and+PBXinaFlash+to+FreePBX+Distro+Conversion+Tool

  1. 2. Transfer of CDR Export / Import

OLD PBX:
mysqldump --skip-add-drop-table --no-create-db --no-create-info --complete-insert asteriskcdrdb cdr > cdr.sql
mysqldump --skip-add-drop-table --no-create-db --no-create-info --complete-insert asteriskcdrdb cel > cel.sql

Transfer the sql files to the new server (WinSCP, etc)

Run on new PBX:
mysql asteriskcdrdb < cdr.sql
mysql asteriskcdrdb < cel.sql

  1. 3. Voicemail and Recordings not Transferred

As of 8/28/2018 the conversation tool does not transfer voicemail into the new system

Copy the Voicemail.conf to the new system:
Example:
rsync -aP /etc/asterisk/voicemail.conf root@192.168.30.32:/etc/asterisk/voicemail.conf

Access old system Voicemail. Voicemail is located in /var/spool/asterisk/voicemail.

Locate the voicemail.conf and open on the old system. Copy the [default] and entire section below it. and paste into the new pbx conf file.

Use rync, no other tool. Winscp won’t copy the permissions and the voicemails on the extensions break. Run the following command:

Example:
rsync -aP /var/spool/asterisk/voicemail root@192.168.30.32:/var/spool/asterisk

asterisk -x “voicemail reload”

Transfer Recordings :

Run the command Example:

rsync -aP /var/spool/asterisk/monitor root@192.168.30.32:/var/spool/asterisk

Transfer Wav file custom recordings:
Example:

rsync -aP /var/lib/asterisk/sounds/en/custom root@192.168.30.32:/var/lib/asterisk/sounds/en/

  1. 4. Commercial Modules

Endpoint Manger and Sysadmin have to be configured manually. Check all commercial modules before going live! (I’m serious dumbass, do it, you forgot about ones they use)

  1. 5. Move Commercial License to a new Deployment ID

https://wiki.freepbx.org/display/FPAS/How+to+Move+a+PBX+Deployment+to+a+New+PBX


Upgrading a Hyper-V FreePBX Machine to Sangoma-7 - You CAN get there from here!
Can I turn a primary FreePBX 14 server into a backup?
Distro Upgrade SNG7 trashes voicemail, devices, and users...anything else?
Upgrade path from fpbx 13 to sng7 to a new server
Distro Upgrade SNG7 trashes voicemail, devices, and users...anything else?
Preferred upgrade path from 12.0.25 - moving from hardware to hyper-v VM preferred
On-boarded new customer with an older pbx
Using the FreePBX Conversion Tool
Upgrading to New System
Upgrading to New System
Issabel to FreePBX
Freepbx Distro Conversion no recordings
Migration from FreePBX11 to FreePBX14 with Migration Tool
Upgrade from 13 to 14 issues
Best path to upgrade FreePBX
Upgrade from 5.211.65
Upgrade from Freepbx 2.11 to Freepbx 14
FreePBX 14
Restore problems
Distro Conversion Tool and Commercial Module *configuration*
Migrating from AsteriskNOW 2.0.2 to FreePBX (latest stable)
Salvaging an old install
(Lorne Gaetz) #2

Until this ticket is addressed, you will need to manually copy system recordings as well:

rsync -aP /var/lib/asterisk/sounds/en/custom root@192.168.30.32:/var/lib/asterisk/sounds/en

Iterate over any other languages as necessary.


(Sentinel) #3

forgot about that thank you


(Sentinel) #4

Guide updated


(Itzik) #5

SIP Settings is also not included in the script.

I’m not sure tho if there’s already a ticket addressing this.


(Sentinel) #6

Which settings are you referring to? I have all my sip settings in the trunks


(Itzik) #7

I assume @GSnover meant: Settings > SIP Settings page.


(Greg Snover) #8

Yup - Things such as your Public and Private IP, what RTP Ports you use, which Codecs you allow - Since you can have both machines up at the same time (actually you have to have them both up to use the script…) you can just copy and paste over to the new machine - This step is pretty easy.


(Lorne Gaetz) #9

Another point, the conversion script deliberately does not migrate /etc/asterisk/*custom.conf files. Those have to be migrated manually post migration. Look for non zero byte files from this output:

 ll /etc/asterisk/ | grep custom

(Itzik) #10

And another point which was just discussed over in another thread, MOH is also not being migrated.


(Sentinel) #11

HYPERV is highly used. Can sangoma please add this to the supported upgrade script? Pretty embarrassing that it isn’t


(Itzik) #12

Nothing to do with Sangoma, this was a RHEL decision. Explained here:

Don’t get me wrong, I also want upgrade script for our HyperV machines, but I guess it’s not up to Sangoma…


(Tony Lewis) #13

No sorry. It’s not something we will spend time on. It’s not a supported Hyper Visor by us and RHEL has decided to not support this so it’s not something we will spend even a second of time on. We have much more important things from our custmers to focus on.


(Sentinel) #14

interesting. What hypervisors are supported besides vmware? Pretty odd


(Greg Snover) #15

In case you really want to Migrate, Here are instructions:


(BGM) #16

The directions didn’t mention music on hold, but it needs done too.
rsync -aP /var/lib/asterisk/moh root@192.168.0.222:/var/lib/asterisk

Ah, I guess someone mentioned it already in the comments.