Top Banner
Asterisk’s Installation Requirements Kernel source bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++
15

Ast installation (edited version) shared by voip.com.vn

Jun 21, 2015

Download

Technology

Tran Thanh

Ast installation (edited version) shared by voip.com.vn
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ast installation (edited version) shared by voip.com.vn

Asterisk’s Installation

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

Page 2: Ast installation (edited version) shared by voip.com.vn

Installation

Check the required packages:

rpm -q kernel-develrpm -q bisonrpm -q bison-develrpm -q ncursesrpm -q ncurses-develrpm -q zlibrpm -q zlib-develrpm -q opensslrpm -q openssl-develrpm -q gnutls-develrpm -q gccrpm -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++

Page 3: Ast installation (edited version) shared by voip.com.vn

Installation

Voice over IP (VoIP) Scenarios

Pure VoIP System Connecting Asterisk to PSTN

Page 4: Ast installation (edited version) shared by voip.com.vn

A Pure VoIP System

Page 5: Ast installation (edited version) shared by voip.com.vn

Installing a Pure VoIP ServerFiles needed

asterisk-1.4.x.tar.gzasterisk-addon-

1.4.x.tar.gzasterisk-sounds-

1.4.x.tar.gz

Page 6: Ast installation (edited version) shared by voip.com.vn

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

wget http://downloads.digium.com/pub/asterisk/old-releases/asterisk-

sounds-1.2.1.tar.gz Installation

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

Page 7: Ast installation (edited version) shared by voip.com.vn

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

Page 8: Ast installation (edited version) shared by voip.com.vn

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

Page 9: Ast installation (edited version) shared by voip.com.vn

Connecting Asterisk to PSTN

Page 10: Ast installation (edited version) shared by voip.com.vn

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

Page 11: Ast installation (edited version) shared by voip.com.vn

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

Page 12: Ast installation (edited version) shared by voip.com.vn

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 ;Check for dependencies ./install_prereq install ;Install dependencies if not installed ./configure make make install make config

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

Page 13: Ast installation (edited version) shared by voip.com.vn

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

Page 14: Ast installation (edited version) shared by voip.com.vn

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 <[email protected]>Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show

warranty' for details.This is free software, with components licensed under the GNU General

PublicLicense version 2 and other licenses; you are welcome to redistribute it

undercertain conditions. Type 'core show license' for details.==============================================

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

Page 15: Ast installation (edited version) shared by voip.com.vn

Asterisk’s Console Commands

Type the following commands on Asterisk’s console:

help To have a list of all commands reload To reload the configuration stop To stop the Asterisk process exit To exit the command line interface