This guide is to show you how to upgrade Trixbox 2.6.x or 2.8.x to Elastix. I have tested this with Trixbox 2.6.3 and Elastix 2.0.3 but this should work with most versions. It seems like development has stalled on Trixbox CE so I decided to start moving my customers over to Elastix.  My only solution before this was to completely reprogram the phone system from Scratch. Some of my Customers are call centers with allot of queues and 100+ phones so were taking about allot of programming. Below are the steps I took to make it work

 

1.

First backup your Trixbox

Trixbox 2.6.x left out the freepbx backup and restore module which I thought was better then the Trixbox backup. You will have to go to the module admin and upload it

First down load the module from freepbx

http://www.freepbx.org/trac/browser/modules/release/2.5/backup-2.5.0.2.tgz

Go to module admin / upload module/ browse for the module you just downloaded / manage modules locally / scroll down to the backup & restore module / click on install / process / apply changes

Now go to tools / backup & restore  and do a complete backup of your phone system.

The backup file is store in /var/lib/asterisk/backups.

You will need a ftp utility to get the file off the server. I use coretfp, its free and easy to use.

You should also backup the tftpboot folder is you want to save your phone config files.

2.

Now that you have a backup of your Trixbox system login into your newly installed Elastix system. We first need to copy over the backup file to Elastix

Since Elastix has not backed anything up yet a backups folder does not exist on the system. You will need to create this folder in SSH or some sFTP client

SSH

[root@elastix]# cd /var/lib/asterisk

[root@elastix]# mkdir backups

Now copy your Trixbox backup to

/var/lib/asterisk/backups

 

3.

Log into Elastix and click on PBX. Click on unembedded freePBX. This should open another windows. Login and now you should be in unembedded freePBX. Click on tools / backup & restore. On the right hand side click on restore backup.

You should now see the trixbox backup file. Click on it and do a Restore Full Backup Set. Is a few seconds you should see that ugly green Trixbox version of freePBX. Do not click the orange apply bar yet

 

 

 

Clicking the orange apply bar at this point will not do anything. The problem here is that Elastix and Trixbox use two different Asterisk Manager passwords. Elastix uses elastix456 and trixbox used amp111.

SSH into your box to go to

[root@elastix]# cd /etc/asterisk

[root@elastix]# nano manager.conf

 

Config should look like this.

 

;
; AMI – Asterisk Manager interface
;
; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need
; to assure that this can’t be reached from un-authorized hosts with the ACL settings (permit/deny).
; Also, remember to configure non-default port or IP-addresses in amportal.conf.
;
; The AMI connection is used both by the portal and the operator’s panel in FreePBX.
;
; FreePBX assumes an AMI connection to localhost:5038 by default.
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret = elastix456
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=192.168.1.99/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

#include manager_additional.conf
#include manager_custom.conf

 

Know that we have the Asterisk manager password fixed we need t update freePBX to a version that is compatible with Elastix. The problem with Trixbox is when you go into freepbx module admin and click check online for updates the system try’s to call update.trixbox.com instead of the real freePBX update servers. You need to either update all the links in the file /var/www/html/admin/functions.inc.php or just down a copy of mine that is already fixed.

http://www.fintechcommunications.com/trixbox-to-elastix-fix.zip

The only major issue and key to this upgrade is the file above

Unzip and overwrite the file that is aleady in /var/www/html/admin

When you do updates now it will call freePBX update servers instead of trixbox.

 

The next major step is to update freepbx to version 2.6. On the module admin click on check for updates. Download and intall 2.6 upgrade tool.

Now click on upgrade tool (upper left corner) click on the 2.6 upgrade tool.

Do as the 2.6 upgrade instruction says. Click upgrade.

Go back to module admin and click check for updates.

Download freepbx framework and upgrade and install.

 

Yeah, Your back to freepbx colors again

From here its just a matter of updating modules and version until you end up with the freePBX version you want.

 

 

 

 

 

 

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.