Barra de espaço
Barra de espaço

This tutorial describes a detailed procedure showing how to perform the installation of Asterisk on a computer running Ubuntu or Debian operating system 

YOUTUBE

In our channel you can view the video of this tutorial.



DATE & TIME

Follow the steps shown in the video tutorial below to configure the correct date & time on your system.

 


Install basic libs that are needed.

# apt-get install linux-headers-`uname -r`

Install Basic Compilers, necessary for further installation.

# apt-get install build-essential



Download and extract DAHDI.

# mkdir /downloads
# cd /downloads
# wget
http://downloads.asterisk.org/pub/telephony/dahdi-linux- complete/dahdi-linux-complete-current.tar.gz
# tar-zxvf dahdi-linux-complete-current.tar.gz

Compile and install DAHDI.

# cd dahdi-linux-complete-2.9.1.1+2.9.1
# make all
# make install


Install the startup scripts and restart the service through the following commands:

# make config
# /etc/init.d/dahdi restart


Install the rcconf package and use it to mark the service dahdi should start during the boot:

# apt-get install rcconf
# rcconf


Download and extract LIBPRI.

# mkdir /downloads
# cd /downloads
# wget
http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz

Compile and install LIBPRI.

# tar -zxvf libpri-1.4-current.tar.gz
# cd libpri-1.4.15
# make
# make install


INSTALLATION

Download and extract Asterisk.

# mkdir /downloads
# cd /downloads
# wget
http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
# tar -zxvf asterisk-11-current.tar.gz

Access the contrib / scripts directory and run install_prereq to install the prerequisites for the Asterisk installation:
(if a dialog box prompts some number, enter your country code)

# cd asterisk-11.10.2/ontrib/scripts
# ./install_prereq install


When you finish installing the prerequisites, return to the root directory of the package and prepare the Asterisk to build through the following commands:

# cd /downloads/asterisk-11.10.2
# ./configure

Run the command below to choose which Asterisk modules should be installed.
(Leave default modules if you dont know what to do)

# make menuselect

Compile and install asterisk.

# make
# make install


Create sample configuration files through the following command:

# make samples

Create Asterisk server startup scripts through the command:

# make config

Create rotation scripts logs through the command:

# make install-logrotate

Restart asterisk.

# /etc/init.d/asterisk start

Run the Rcconf utility and check that the Asterisk service starts automatically at boot time. 

# rcconf

Asterisk has been successfully installed.

CONCLUSion

This tutorial presented the Asterisk service installation process.

***UPDATED VERSION OF THIS TUTORIAL