How to upgrade 1.2.6 to 1.7.1

Hi, I have a small asterisk system built with Asterisk at home. Its 1.2.6.

What is the best way to upgrade this to 1.2.7.1 ? while keeping all my configs and voice mail settings etc…

thank you in advance
Andy

Save (diff. harddisk eg.)

/etc/asterisk
and
/var/lib/asterisk
and
/var/spool/asterisk

and all its folders under that completely.

Your /etc/asterisk files wont be touch if you DONT (dont do…) end the update with
"make samples"

But the standard installation is replacing any customized (same name) voicefiles in
/var/lib/asterisk/sound

so copy this directory back after update.

The update itself is a install in the order:
asterisk addons
Zaptel
libpri
astarisk

The commandorder is in all 4 directories:
make clean
make
make install

Make sure you have the appropiate execute rights on all files.

one more thing we always do is clear out the /usr/lib/asterisk/modules directory, just to be safe…that way, any archaic modules will be removed, and you won’t get weird crashes when modules.conf has autoload set to yes…

Very good hint !
I do that to to avoid version mixmax!

Tnx for pointing to it !

upgrading from 1.2.6 to 1.2.7.1 should be as simple as just reinstalling the binaries and making sure you dont override any custom sound files…

if you have not used unique names for your own custom sound files (which I would recommend doing at all times) simply get 1.2.7.1 and make && make install…

/etc/asterisk is not touched unless you make samples

To upgrade A@H to the latest drivers, the following procedure will take approximately 20-30 minutes:

amportal stop

cd /usr/src
wget ftp.digium.com/pub/telephony/zap … 2.5.tar.gz
wget ftp.digium.com/pub/telephony/lib … 2.2.tar.gz
wget ftp.digium.com/pub/telephony/ast … 7.1.tar.gz
wget ftp.digium.com/pub/telephony/ast … 2.2.tar.gz
wget ftp.digium.com/pub/telephony/ast … 2.1.tar.gz

tar -zxvf zaptel-1.2.5.tar.gz
tar -zxvf libpri-1.2.2.tar.gz
tar -zxvf asterisk-1.2.7.1.tar.gz
tar -zxvf asterisk-addons-1.2.2.tar.gz
tar -zxvf asterisk-sounds-1.2.1.tar.gz

cd zaptel-1.2.5
make clean
make install
cd …

cd libpri-1.2.2
make clean
make install
cd …

cd asterisk-1.2.7.1
make clean
make install
cd …

cd asterisk-addons-1.2.2
make clean
make install
cd …

cd asterisk-sounds-1.2.1
make clean
make install
cd /root

amportal start

This is one the best and less intrusive ways to upgrade A@H to the latest drivers.