HowTo, The Basics
Build Your PBX – Step 2: Compile Asterisk
There is no ‘yum’ package for asterisk, but it’s no problem to compile it from source.
Download asterisk from digium. They’ve made it hard to find the link from their homepage, but you can browse the files from their download area.
At the time of writing, the latest version was 1.4.21.2, which you can be download directly onto your server.
curl -O http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.21.2.tar.gz tar zxvf asterisk-1.4.21.2.tar.gz cd asterisk-1.4.21.2 ./configure make make install
If there are any errors, check that you aren’t missing any of the packages. For example, if you get errors about termcap, try searching in the package manager.
yum search termcap
You’ll also want to get the library of audio files. These are required for some of the built-in applications such as voicemail, but it’s also handy to have standard audio files such as “please wait while I try that extension”.
The file is called asterisk-sounds-1.2.1. You can download this file directly to your server with:
curl -O http://downloads.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz tar xzvf asterisk-sounds-1.2.1.tar.gz cd asterisk-sounds-1.2.1 make install
Now that you’ve got the asterisk PBX installed, you’re ready to configure it.
