ast installation (edited version) shared by voip.com.vn
DESCRIPTION
Ast installation (edited version) shared by voip.com.vnTRANSCRIPT
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-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++
Installation
Voice over IP (VoIP) Scenarios
Pure VoIP System Connecting Asterisk to PSTN
A Pure VoIP System
Installing a Pure VoIP ServerFiles needed
asterisk-1.4.x.tar.gzasterisk-addon-
1.4.x.tar.gzasterisk-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
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
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 ;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
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 <[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>
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