Install Asterisk 1.8 from source on Ubuntu 12.04
New install updating the patches
apt-get update
apt-get upgrade
Verifying kernel headers are installed
apt-get install linux-headers-`uname -r`
Downloding a packages for building asterisk, dependencies, compilers, etc
Compiler
apt-get install build-essential
sudo apt-get install libssl-dev
Required Dev file
apt-get install libxml2-dev
Termcap dev files
apt-get install libncurses5-dev libreadline-dev libreadline6-dev
For Google Talk requirements
apt-get install libiksemel-dev
For ogg Vorbis format support
apt-get install libvorbis-dev
Needed for SIP
apt-get install libssl-dev
For speex codec
apt-get install libspeex-dev libspeexdsp-dev
Few more addons
apt-get install mpg123 libmpg123-0 sox openssl wget subversion openssh-server
Switch into /usr/src director build the source files
Download DAHDI pseudo timing source for MeetMe conferences
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.1+2.6.1.tar.gz
tar -zxvf dahdi-linux-2.6.1.tar.gz
cd dahdi-linux-2.6.1*/
make
make install
cd ..
Download Asterisk
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.15.0.tar.gz
tar -zxvf asterisk-1.8.15.0.tar.gz
cd asterisk-1.8.15.0/
Add Mp3 support
./contrib/scripts/get_mp3_source.sh
./configure
If everything works out, you should get the ascii art Asterisk logo
asterisk components to be installed
make menuconfig
Build the binaries for asterisk
make && make install
copy the sample configs into /etc/asterisk
make samples
Copy the init startup scripts to make asterisk start on boot
make config
Now installation is Done.
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.6.1+2.6.1.tar.gz
tar -zxvf dahdi-linux-complete-2.6.1+2.6.1.tar.gz
cd dahdi-linux-complete-2.6.1+2.6.1/
…
root@Asterisk:/home/fmiranda# asterisk -r
Instrucción ilegal (`core’ generado)
root@Asterisk:/home/fmiranda#