Asterisk Installation

Download Report

Transcript Asterisk Installation

Asterisk’s Installation

Requirements

 Kernel source   bison bison-devel      ncurses ncurses-devel zlib zlib-devel openssl     openssl-devel gnutls-devel gcc gcc-c++

Installation

Check the required packages: rpm -q kernel-devel rpm -q bison rpm -q bison-devel rpm -q ncurses rpm -q ncurses-devel rpm -q zlib rpm -q zlib-devel rpm -q openssl rpm -q openssl-devel rpm -q gnutls-devel rpm -q gcc rpm -q gcc-c++ Install the packages if they are not installed: yum install kernel-devel yum install bison yum install bison-devel yum install ncurses yum install ncurses-devel yum install zlib yum install zlib-devel yum install openssl yum install openssl-devel yum install gnutls-devel yum install gcc yum install gcc-c++

Installation

Voice over IP (VoIP) Scenarios

  Pure VoIP System Connecting Asterisk to PSTN

A Pure VoIP System

Installing a Pure VoIP Server

Files needed

 asterisk-1.4.x.tar.gz

 asterisk-addon-1.4.x.tar.gz

 asterisk-sounds-1.4.x.tar.gz

Installing a Pure VoIP Server

 Download required packages  wget http://downloads.digium.com/pub/asterisk/old-releases/ asterisk-1.4.14.tar.gz

 wget http://downloads.digium.com/pub/asterisk/old releases/asterisk-addons-1.4.6.tar.gz

  releases/asterisk-sounds-1.2.1.tar.gz

Installation  wget http://downloads.digium.com/pub/asterisk/old Install mpg123 to play mp3 files for music-on-hold before Asterisk’s installation  wget http://mpg123.orgis.org/download/mpg123-1.2.0.tar.gz

 tar -zxvf mpg123-1.2.0.tar.gz

Installation

  cd mpg123-1.2.0

 ./configure   make make install  ln -s /usr/local/bin/mpg123 /usr/bin/mpg123 Installing Asterisk  tar -zxvf asterisk-1.4.14.tar.gz

 cd asterisk-1.4.14

      make clean ./configure make make install make samples make config

Installation

 Installing Asterisk’s Add-ons  tar -zxvf asterisk-addon-1.4.6.tar.gz

 cd asterisk-addon-1.4.6

 make clean  make   make install Installing Asterisk’s Sounds  tar -zxvf asterisk-sounds-1.2.6.tar.gz

 cd asterisk-sounds-1.2.6

 make  make install

Connecting Asterisk to PSTN

Installation

Files needed

     libpri-1.4.x.tar.gz

zaptel-1.4.x.tar.gz

asterisk-1.4.x.tar.gz

asterisk-addon-1.4.x.tar.gz

asterisk-sounds-1.4.x.tar.gz

Installation

 Download required packages  wget http://downloads.digium.com/pub/asterisk/old-releases/ asterisk 1.4.14.tar.gz

 wget http://downloads.digium.com/pub/zaptel/releases/ zaptel 1.4.8.tar.gz

 wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.3.tar.gz

 wget http://downloads.digium.com/pub/asterisk/old-releases/asterisk addons-1.4.6.tar.gz

 wget http://downloads.digium.com/pub/asterisk/old-releases/asterisk sounds-1.2.1.tar.gz

Installation

   Installing libpri  tar -zxvf libpri-1.4.3.tar.gz

 cd libpri-1.4.3

 make  make install Installing zaptel       tar -zxvf zaptel-1.4.8.tar.gz

cd zaptel-1.4.8

./install_prereq test ./install_prereq install ./configure make ;Check for dependencies ;Install dependencies if not installed  make install  make config

The remaining installation is similar to that of a pure VoIP Asterisk System

Starting and Managing Asterisk

 Asterisk can be started by typing:  /usr/sbin/asterisk  To connect to an Asterisk daemon, type:  asterisk –r  To make Asterisk more verbose, type:  asterisk -vvvvvr

Connecting to Asterisk Console

Once connected to an Asterisk console, you will get:

Asterisk 1.4.14, Copyright (C) 1999 - 2007 Digium, Inc. and others.

Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.

This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details.

===================================================================== ==== Connected to Asterisk 1.4.14 currently running on localhost (pid = 3960) Verbosity is at least 3 localhost*CLI>

Asterisk’s Console Commands

 Type the following commands on Asterisk’s console:     help reload stop exit To have a list of all commands To reload the configuration To stop the Asterisk process To exit the command line interface