Because the installation of Asterisk via Yum didn’t work out-of-the-box for me, I have decided to install it from source. The instructions to compile and install Asterisk from source from the Asterisk wiki is pretty much straight-forward except for a couple of hiccups, which I encountered. So here is a slightly modified version of their installation instruction that worked for me on Fedora 16:
Install the compiler and system libraries
sudo yum install gcc, gcc-c++, openssl, ncurses, ncurses-devel, newt, libxml2, libxml2-devel, kernel-devel, kernel-devel make |
We also need to install SQLite3 in order to avoid seeing this message later on:
configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database. configure: WARNING: *** Please install the SQLite3 development package.
So let’s install SQLite3:
sudo yum install sqlite, sqlite-devel |
We also need to install doxygen for the Asterisk documentation:
sudo yum install doxygen |
Download, build, and install libpri
Execute the following as root:
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.12.tar.gz tar -zxvf libpri-1.4.12.tar.gz cd libpri-1.4.12 make make install |
Download, build, install, and start DAHDI
Execute the following as root:
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.6.0+2.6.0.tar.gz tar -zxvf dahdi-linux-complete-2.6.0+2.6.0.tar.gz cd dahdi-linux-complete-2.6.0+2.6.0 make make install make config chkconfig dahdi on service dahdi start |
Download, build, install, and start Asterisk
Execute the following as root:
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-10.3.0.tar.gz tar -zxvf asterisk-10.3.0.tar.gz cd asterisk-10.3.0 ./configure make menuselect make make install make samples make progdocs make config chkconfig asterisk on asterisk -vvvvc |
Notes: This set of instructions has been tested to also work on Fedora 14 and CentOS 5.7.
Sources:
- https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source
- https://wiki.asterisk.org/wiki/display/AST/System+Requirements
- https://wiki.asterisk.org/wiki/display/AST/Compiler
- https://wiki.asterisk.org/wiki/display/AST/System+Libraries
- https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+LibPRI
- https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+DAHDI
- http://techspotting.org/how-to-install-asterisk-on-centos-5/

While installing the compiler and system libraries, I get:
[Errno 14] HTTP Error 404 – Not Found : http://packages.asterisk.org/centos/16/current/i386/repodata/repomd.xml
+ kernel-PAE-devel
Thanks, it works for me.