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

(Sentinel) #1
  1. 1. Migration Tool

  1. 2. Transfer of CDR Export / Import

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:
rsync -aP /etc/asterisk/voicemail.conf root@

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:

rsync -aP /var/spool/asterisk/voicemail root@

asterisk -x “voicemail reload”

Transfer Recordings :

Run the command Example:

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

Transfer Wav file custom recordings:

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

  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

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?
Upgrade path from fpbx 13 to sng7 to a new server
Distro Upgrade SNG7 trashes voicemail, devices, and users...anything else?
Using the FreePBX Conversion 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
Migrate calls
Migrating from AsteriskNOW 2.0.2 to FreePBX (latest stable)
Salvaging an old install
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
Migration from FreePBX11 to FreePBX14 with Migration Tool
Upgrading to New System
Upgrading to New System
Issabel to FreePBX
Freepbx Distro Conversion no recordings
Distro Conversion Tool and Commercial Module *configuration*
Upgrading from Asterisk11/OSSendpointmanager to current/EPM
V13 backup to v15 restore issues
UPGRADE from (too) OLD ver to ver 14. How is that possible?
From Freepbx13 to 15 - Location of recordings, Import Queues, other tips?
FreePBX conversion tool errors adding users (usernam)
Trixbox 2.8 migration to FreePBX
From fpbx to14.0.12, how to transfer Voicemails and CDR
N00b to FreePBX - FAQs for converting from PBXiaf?
(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@

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@

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