Upgrading Asterisk

I have been tasked w/ upgrading our Asterisk server from version
CVS-v1-0-06 to asterisk-1.2.10,

Can this be done while asterisk is running or do i need to shut it down first.

stop it , should only take a few mins…
You make need to update zaptel as well (really you need to update along the same trunk and all the addons / sounds / libpri at the same time…

download the new files (asterisk+zaptel, with libpri if you have any PRI’s), untar them

zaptel folder- make clean ; make
asterisk folder- make clean ; make

(assuming redhat/centos/fedora and you use config scripts)
service asterisk stop
service zaptel stop
zaptel folder- make install
asterisk folder- make install
service zaptel start
service asterisk start

if you dont have the config scripts you can make them with make config.

if you dont have the config scripts you can make them with make config.
Where is this done? in the untared Asterisk dir?

in the untarred Asterisk and zaptel dirs. Keep in mind that you may already have something else starting * when the machine boots- adding a config script will make that redundant.

This should work:

wget ftp.digium.com/pub/asterisk/rele … .10.tar.gz
tar -xzvf ./asterisk-1.2.10.tar.gz
mv ./asterisk-1.2.10 ./asterisk

wget ftp.digium.com/pub/zaptel/releas … 2.7.tar.gz
tar -xzvf ./zaptel-1.2.7.tar.gz
mv ./zaptel-1.2.7 ./zaptel

wget ftp.digium.com/pub/libpri/releas … 2.3.tar.gz
tar -xzvf ./libpri-1.2.3.tar.gz
mv ./libpri-1.2.3 ./libpri

wget ftp.digium.com/pub/asterisk/rele … 2.3.tar.gz
tar -xzvf ./asterisk-addons-1.2.3.tar.gz
mv ./asterisk-addons-1.2.3 ./asterisk-addons

wget ftp.digium.com/pub/asterisk/rele … 2.1.tar.gz
tar -xzvf ./asterisk-sounds-1.2.1.tar.gz
mv ./asterisk-sounds-1.2.1.tar.gz ./asterisk-addons

Then after all of that is done, compile/install:

cd /usr/src/zaptel
make clean
make install

cd …/libpri
make clean
make install

cd …/asterisk
make clean
make install

cd …/asterisk-addons
make clean
make install

cd …/asterisk-sounds
make install

Good luck. This is what I used to update and it worked just fine.

Sorry for offtopic. Is there a need to recompile zaptel and libpri every time my kernel is updated?

well, the zaptel modules are stored in the lib/modules/ directory specific to the kernel in use … so yes … change the kernel, you need to recompile zaptel.

it’s never a bad idea to recompile software that uses the kernel headers or sources anyway.

one thing everyone forgets (and has burnt me more htan once) is to make sure to clean out /usr/lib/asterisk/modules

it’s not required, probably, but it definitely cannot hurt, especially if you’re going from the 1.0 branch to the 1.2 branch…

Hi

[quote]it’s not required, probably, but it definitely cannot hurt, especially if you’re going from the 1.0 branch to the 1.2 branch…
[/quote]

Personaly I think its a must and its a shame its not a better documented must do.

Ian

hell, couldn’t that be added to the makefile? that way there would be NO question of whether you had deprecated modules loading or not…