After a fresh install of Ubuntu 11.10 I needed to install asterisk again, so I figured I’d make some notes for the next time I have to do it.
I’m using Asterisk 1.8 rather than the latest bleeding edge because 1.8 has long term support until 2015-10-21 where as the 10.x branch is end of life 2013-10-12. I have too many other things to do these days than reconfigure asterisk, figure out which of my third party add-ons work, etc every time there is an update.
Since this is a new install, I’m updating the package list and all my files that might be out of date
apt-get upgrade
Make sure kernel headers are installed
Grab a bunch of packages for building asterisk, dependencies, compilers, etc
apt-get install libxml2-dev # Required
apt-get install libncurses5-dev libreadline-dev libreadline6-dev # Termcap stuff
apt-get install libiksemel-dev # For Google Talk support
apt-get install libvorbis-dev # For Ogg Vorbis format support
apt-get install libssl-dev # Needed for SIP
apt-get install libspeex-dev libspeexdsp-dev # For speex codec
apt-get install mpg123 libmpg123-0 sox openssl wget subversion openssh-server # Odds and ends
Switch into /usr/src directory as a place to build the source from
Downloaded and untar DAHDI. I don’t have any Digium hardware in this computer, but I wanted the DAHDI pseudo timing source for MeetMe conferences.
tar -zxvf dahdi-linux-2.6.0.tar.gz
Move into the build directory, compile and install DAHDI
make
make install
cd ..
Download and untar Asterisk
tar -zxvf asterisk-1.8.10.1.tar.gz
Move into the build directory
Add mp3 support
Run the configure script
If everything works out, you should get the ascii art Asterisk logo
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ (TM)
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.
Optionally choose asterisk components to be installed
Build the binaries
Copy the files to the right places
Optionally copy the sample configs into /etc/asterisk
Copy the init startup scripts to make asterisk start on boot
And you’re done.
Leave a Reply to Chris Cancel reply