According to wikipedia:
Asterisk is a software implementation of a telephone private branch exchange (PBX) originally created in 1999 by Mark Spencer of Digium. Like any PBX, it allows attached telephones to make calls to one another, and to connect to other telephone services including the public switched telephone network (PSTN) and Voice over Internet Protocol (VoIP) services. Its name comes from the asterisk symbol, "*".
Asterisk also supports a wide range of Video and Voice over IP protocols, including SIP, MGCP and H.323. Asterisk can interoperate with most SIP telephones, acting both as registrar and as a gateway between IP phones and the PSTN
Well, to install it on Arch Linux, we will use the AUR Tarball, as there is still no binary available to install using the normal pacman repositories. You can download the AUR tarball here.
Now create a directory to build it.
Go to that directory
And download there the tarball file.
This will install Asterisk 1.4, if you want 1.6 use this command instead
And decompress it.
tar xvzf asterisk.tar.gz
Go to the asterisk directory.
And compile it, but first make sure you are authorized to use sudo read, how to use visudo or sudo
makepkg -s -i
If is the first time you use sudo, something like this will appear:
==> Making package: asterisk 184.108.40.206-1 i686 (Thu Apr 9 18:00:42 BOT 2009) ==> Checking Runtime Dependencies... ==> Installing missing dependencies... We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility.
Enter you passwords, and the process shall start, it will use
pacman to install any missing dependencies, and then it will compile the source, and install it using
pacman, after some time, (maybe some minutes) you will get this if everything goes OK
loading package data... checking dependencies... (1/1) checking for file conflicts [#####################] 100% (1/1) installing asterisk [#####################] 100% adding asterisk system group... done. adding asterisk system user... done. >>> >>> To get Music on Hold working do pacman -S mpg123 >>> To get the postgresql, unixodbc or sqlite2 modules working >>> download the respective package and modify modules.conf to reflect >>> your changes. >>>
Now you have Asterisk installed, on Arch Linux, in the next post I will show you how to configure asterisk for simple uses.
Edit: April 11, 2009: You may want to download Asterisk 1.6 instead of the 1.4 version shown above, to do that, just download this tarbal http://aur.archlinux.org/packages/asterisk16/asterisk16.tar.gz Instead of the above one, and proceed with it.