Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

How to install asterisk on Arch Linux

Date: 2009-04-09 00:00:00 -0400

In the past I have shown you, how to install Asterisk on Debian and CentOS, Now I will show you how to do it on Arch Linux

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[2] 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.

mkdir $HOME/builds

Go to that directory

cd $HOME/builds

And download there the tarball file.

wget http://aur.archlinux.org/packages/asterisk/asterisk.tar.gz

This will install Asterisk 1.4, if you want 1.6 use this command instead

wget http://aur.archlinux.org/packages/asterisk16/asterisk16.tar.gz

And decompress it.

tar xvzf asterisk.tar.gz

Go to the asterisk directory.

cd asterisk

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 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.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.