TUTORIAL Incredible Wazo Upgrade to 17.17

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Very helpful. Thanks. I had assumed you were using the documented upgrade procedure on the first page.
 

lrosenman

Guru
Joined
Oct 17, 2014
Messages
221
Reaction score
30
I was, but seeing you talk about 16.16.... (I went looking, in prep for my NUC coming tomorrow).
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Upgrading to Wazo 16.16 Final Release

This upgrade includes Asterisk 14.2:

CzKyQaEW8AAyAbr.jpg


Also features Voicemail and Avatar support in WebRTC:

Cx5bYDQWEAALJLq.jpg


Code:
cd /root
xivo-dist wazo-16.16
/etc/init.d/netfilter-persistent stop
wget --no-check-certificate https://raw.githubusercontent.com/wazo-pbx/xivo-upgrade/master/bin/xivo-to-wazo-upgrade
chmod +x xivo-to-wazo-upgrade
./xivo-to-wazo-upgrade
iptables-restart
sed -i 's|noload => app_cdr.so|;noload => app_cdr.so|' /etc/asterisk/modules.conf
sed -i 's|noload => app_festival.so|;noload => app_festival.so|' /etc/asterisk/modules.conf
sed -i 's|noload => cdr_adaptive_odbc.so|;noload => cdr_adaptive_odbc.so|' /etc/asterisk/modules.conf
sed -i 's|noload => cdr_csv.so|;noload => cdr_csv.so|' /etc/asterisk/modules.conf
sed -i 's|noload => cdr_odbc.so|;noload => cdr_odbc.so|' /etc/asterisk/modules.conf
sed -i 's|noload => cdr_sqlite3_custom.so|;noload => cdr_sqlite3_custom.so|' /etc/asterisk/modules.conf
sed -i 's|noload => func_cdr.so|;noload => func_cdr.so|' /etc/asterisk/modules.conf
sed -i 's|noload => func_odbc.so|;noload => func_odbc.so|' /etc/asterisk/modules.conf
# add Google Voice OAuth support for Asterisk 14
apt-get update
apt-get install git asterisk-dev libiksemel-dev -y
cd /usr/src
git clone https://github.com/sboily/asterisk-res-xmpp-oauth.git
cd asterisk*
make patch
make
make install
xivo-service restart
# put the Incredible PBX web add-ons back in place
cd /
wget http://incrediblepbx.com/incredible-nginx.tar.gz
tar zxvf incredible-nginx.tar.gz
rm -f incredible-nginx.tar.gz
ln -s /etc/nginx/locations/https-available/01_incrediblepbx /etc/nginx/locations/https-enabled/.
cd /etc/nginx
wget http://incrediblepbx.com/nginx-config.tar.gz
tar zxvf nginx-config.tar.gz
rm -f /etc/nginx/sites-enabled/default
/etc/init.d/nginx restart
sed -i 's|XiVO PBX|Wazo PBX|' /usr/local/sbin/pbxstatus
sed -i 's|`hostname -s`|Wazo|' /usr/local/sbin/pbxstatus
sed -i 's|13.|14.|' /etc/pbx/.version
sed -i 's|XiVO|Wazo|' /var/www/html/asteridex4/config.inc.php
sed -i 's|XiVO|Wazo|' /var/www/html/reminders/index.php

This upgrade will also load the terrific CDR CEL viewer from @Bart:

CDR%20LOG%20Basic1.png


In the XiVO GUI, goto IPX -> Call Management -> Call Logs.

AsteriDex 4 (yourIP/asteridex4/) and Telephone Reminders (yourIP/reminders/) now use https! Don't forget the trailing slash to access the applications.
 
Last edited:

GraphiteJess

New Member
Joined
Nov 7, 2016
Messages
5
Reaction score
0
Hmm, I didn't get the CDR CDL viewer, and I had to disable Superfecta to get caller ID to work.
 

Jack Miller

Member
Joined
Jun 16, 2016
Messages
33
Reaction score
6
I've re-installed on a different server and the CDR CEL viewer is working well.
 

GraphiteJess

New Member
Joined
Nov 7, 2016
Messages
5
Reaction score
0
I haven't fully restarted the system since I installed; so I'll probably give that a shot before I scrap it entirely. I'm also willing to entertain the idea that Superfecta was my fault; it wasn't working entirely correctly before the update, but the update totally killed my caller ID. It's working well enough for now, the viewer is icing I wasn't expecting to get anyway.

Thanks for the tip, though.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Upgrading Wazo .anything to Wazo 17.17

Code:
cd /root
cp -pr /etc/postfix /root
cp -p /etc/nginx/sites-enabled/xivo /root
echo "noload => res_xmpp_oauth.so" >> /etc/asterisk/modules.conf
xivo-dist wazo-17.17
apt-get update
/etc/init.d/netfilter-persistent stop
wazo-upgrade
iptables-restart
# put the Incredible PBX web add-ons back in place
cd /
wget http://incrediblepbx.com/incredible-nginx.tar.gz
tar zxvf incredible-nginx.tar.gz
rm -f incredible-nginx.tar.gz
ln -s /etc/nginx/locations/https-available/01_incrediblepbx /etc/nginx/locations/https-enabled/.
cd /etc/nginx
wget http://incrediblepbx.com/nginx-config.tar.gz
tar zxvf nginx-config.tar.gz
rm -f /etc/nginx/sites-enabled/default
cp -p /root/xivo /etc/nginx/sites-enabled
/etc/init.d/nginx restart
cp -pr /root/postfix /etc
/etc/init.d/postfix restart
sed -i 's|fr|us|' /etc/asterisk/indications.d/99-general.conf
/etc/init.d/asterisk restart
pbxstatus

DO NOT USE THE CODE BELOW WITH WAZO 17.14 OR ABOVE!!

If the version of Asterisk changes in the update from the version you already have, you'll also need to do the following to restore Google Voice OAuth 2 functionality:
Code:
cd /tmp
 git clone https://github.com/sboily/asterisk-res-xmpp-oauth.git
 cd asterisk-res-xmpp-oauth
 make patch
 make
 make install
/etc/init.d/asterisk restart
 
Last edited:

ZachG

New Member
Joined
Jan 7, 2015
Messages
15
Reaction score
3
I followed these instructions to update from Wazo 16.16 to Wazo 17.01. once completed, i'm unable to log into the web interface.

I am using a letsencrypt certificate. I followed the instructions here: http://documentation.wazo.community/en/stable/system/https_certificate.html
prior to upgrading, and everything was working fine...

I have checked the xivo-auth log, and i don't see the errors that indicate its a hostname issue.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Is it a password failure or an inability to access the web site?
 

Glenn Hanlin

New Member
Joined
Nov 18, 2016
Messages
7
Reaction score
1
Upgrading Wazo 16.16 to Wazo 17.01

Code:
cd /root
xivo-dist wazo-17.01
/etc/init.d/netfilter-persistent stop
wazo-upgrade
iptables-restart
# put the Incredible PBX web add-ons back in place
cd /
wget http://incrediblepbx.com/incredible-nginx.tar.gz
tar zxvf incredible-nginx.tar.gz
rm -f incredible-nginx.tar.gz
ln -s /etc/nginx/locations/https-available/01_incrediblepbx /etc/nginx/locations/https-enabled/.
cd /etc/nginx
wget http://incrediblepbx.com/nginx-config.tar.gz
tar zxvf nginx-config.tar.gz
rm -f /etc/nginx/sites-enabled/default
/etc/init.d/nginx restart
pbxstatus


Is the procedure to upgrade from 17.01 to 17.02 the same as this?
 

Sylvain Boily

Active Member
Joined
Apr 30, 2016
Messages
259
Reaction score
144
Hello, wazo-upgrade is enough to upgrade 17.01 to 17.02. The next release 17.03 is planned for monday.
 
Joined
Nov 14, 2008
Messages
1,398
Reaction score
320
Time to make this a "click" process. Many products check for a newer version, offer to back up certain things and then the upgrade goes forward after confirmation. Seems like that wouldn't be hard to do on Wazo.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
The script above does exactly that. The problem at the moment is fresh installs of the latest release. Because Incredible PBX uses a snapshot image of the Wazo database, it means we need a new snapshot with each new release because the devs regularly make database changes. Once we can build everything with API calls, this will go away.
 

Glenn Hanlin

New Member
Joined
Nov 18, 2016
Messages
7
Reaction score
1
I always get the following message at the end of a Wazo UPGRADE procedure....is this something I need to be concerned about?


Executing post-start upgrade action...

INFO:urllib3.connectionpool:Starting new HTTP connection (1): localhost

WARNING: The following configuration files were overwritten during the upgrade:


/etc/asterisk/modules.conf

/etc/asterisk/res_odbc.conf


To finish the upgrade, you must merge the new version with the old

one. For example:


vimdiff FILENAME FILENAME.dpkg-old


Once this is done, remove the old files and run "xivo-service restart".
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Compare the two versions of the files and add any missing pieces to modules.conf and res_odbc.conf.
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
Hi Ward,
I think CaC has fixed 10GB limit issue now. I see my disk space more than 38GB. Or maybe I misunderstanding.
upload_2017-4-8_21-37-31.png
 

Members online

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top