≡ Ubuntu 6.06
Installing Asterisk itself isn’t all that difficult, but, I had a horrible time getting it to compile correctly for the first time on Dapper server. After hours of searching, I eventually found this page, that outlined the dependencies for Asterisk on Dapper.
You’ll want to this as root, so su over, or run sudo -s for a root shell.
First, we have to download those dependencies, that’s easily done with:
apt-get install libssl-dev libncurses5-dev libspeex-dev sox sox-dev build-essential manpages-dev libasound2-dev linux-headers-2.6.15-23-server
Then, we need to download the Asterisk source files:
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.16.tar.gz
-OR-
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.4.1.tar.gz
To uncompress the tarball and move into the new directory run:
tar -vzxf asterisk-1.2.16.tar.gz; cd asterisk-1.2.16
To configure make, run:
./configure
Then, run these commands to make and install Asterisk:
make
make install
Asterisk is now installed! In order to start Asterisk from init, you’ll have to run:
cp /usr/src/asterisk/asterisk-1.2.13/contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk
chmod 755 /etc/init.d/asterisk
Then, you can use /etc/init.d/asterisk start|stop|restart to start, stop or restart the Asterisk daemon, and asterisk -r to connect to the Asterisk console on a running daemon.
Congratulations! You’ve got Asterisk working on Ubuntu Dapper server. Setup a trunk and some extensions, and you’re all set.
– the evil genius


