For anyone that would like to try updating asterisk the usual disclaimers apply (YOU SHOULD NOT BE DOING THIS ON A PRODUCTION BOX) but this should hopefully do the trick. Make sure FreePBX is up to date before you start.
If anything goes wrong, it should be fairly simple to roll back to the older versions as they are kept and renamed.
Thanks go to kenn10 and jroper.
Obviously once new versions come out you will have to change the url's and file names, I've put them in there to make it clear how it needs to be. Most likely I'll update my box with every new version and update the file names in this post.
If anything goes wrong, it should be fairly simple to roll back to the older versions as they are kept and renamed.
Thanks go to kenn10 and jroper.
Obviously once new versions come out you will have to change the url's and file names, I've put them in there to make it clear how it needs to be. Most likely I'll update my box with every new version and update the file names in this post.
Code:
First, get the current tarball files:
1) cd /usr/src
2) wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.6.tar.gz
3) wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-addons-1.6.2.0.tar.gz
4) wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.1.1+2.2.1.1.tar.gz
5) wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.2.tar.gz
Now move the directories to make room for the new ones:
6) mv asterisk asterisk.old
7) mv asterisk-addons asterisk-addons.old
8) mv libpri libpri.old
9) mv zaptel zaptel.old (if you have zaptel still)
10) mv dahdi dahdi.old
Now expand the tarballs:
11) tar -xvf asterisk-1.6.2.6.tar.gz
12) tar -xvf asterisk-addons-1.6.2.0.tar.gz
13) tar -xvf dahdi-linux-complete-2.2.1.1+2.2.1.1.tar.gz
14) tar -xvf libpri-1.4.10.2.tar.gz
The steps above create new directories for asterisk, libri, etc., which are named something like asterisk-1.6.2.2.
Rename directories to standard directories:
15) mv asterisk-1.6.2.6 asterisk
16) mv asterisk-addons-1.6.2.0 asterisk-addons
17) mv dahdi-linux-complete-2.2.1.1+2.2.1.1 dahdi
18) mv libpri-1.4.10.2 libpri
Now build in each of your new directories in this order:
cd /usr/src/libpri
make clean
make
make install
cd /usr/src
cd /usr/src/dahdi
make all
make install
make config
cd /usr/src
service dahdi start
cd /usr/src/asterisk
make clean
./configure
make menuselect
# your now at a menu screen, use tab select whichever sounds/additional sounds/MOH you might want, save and exit.
make
make install
cd /usr/src/asterisk-addons
make clean
./configure
make menuselect
# save and exit
make
make install
When you've done that for libpri, dahdi, asterisk, addons etc., then do a:
shutdown -r now
to reboot the system. (I prefer this to just doing an amportal restart to insure everything is cleared out.)