Installing Asterisk

From Etel

Jump to: navigation, search

Contents

Title

Installing Asterisk

Problem

You want to install Asterisk.

Solution

Download the latest release version of either the 1.4 or 1.6 branch of Asterisk. Substitute the version of Asterisk for the X.X in the command below. Asterisk is available for download from: http://downloads.digium.com/pub/telephony/asterisk

# wget http://downloads.digium.com/pub/telephony/asterisk/asterisk-X.X-current.tar.gz

Expand the downloaded file, compile its contents, and install the application. Substitute the version of Asterisk for the the X.X and X.X.X in the command lines below.

# tar -zxvf asterisk-X.X-current.tar.gz
# cd asterisk-X.X.X/
# ./configure
# make menuselect
# make
# make install

Discussion

If this is the first Asterisk installation on this system, you should install the sample configuration files. To do this, run:

# make samples

Caution: Running this command will overwrite, after making a backup copy, any older Asterisk configuration files that you have in the /etc/asterisk directory.

If your installation has failed, it may be because you are missing one or more of the build dependencies, the kernel headers, or the development tools.

If you will be used DAHDI-based hardware in Asterisk, you must compile and install DAHDI before Asterisk. Otherwise, the DAHDI channel driver will not be available in Asterisk. Instructions for installing DAHDI are available in the Installing DAHDI section. If necessary, follow through the steps in the solution listed above again in order for DAHDI support to be compiled into Asterisk.

If you will be using PRI signaling in Asterisk, you must compile and install libpri before Asterisk. Otherwise, PRI support will not be available in Asterisk. Instructions for installing libpri are available in the Installing libpri section. If necessary, follow through the steps in the solution listed above again in order for PRI support to be compiled into Asterisk.

See Also

Installing libpri

Installing DAHDI

Metadata

  • By: ChrisHozian
Personal tools