5. 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
6. Installing a Pure VoIP Server
Download required packages
wget http://downloads.digium.com/pub/asterisk/oldreleases/ asterisk
1.4.14.tar.gz
wget http://downloads.digium.com/pub/asterisk/oldreleases/asterisk
addons1.4.6.tar.gz
wget http://downloads.digium.com/pub/asterisk/oldreleases/asterisk
sounds1.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/mpg1231.2.0.tar.gz
tar zxvf mpg1231.2.0.tar.gz
7. Installation
cd mpg1231.2.0
./configure
make
make install
ln s /usr/local/bin/mpg123 /usr/bin/mpg123
Installing Asterisk
tar zxvf asterisk1.4.14.tar.gz
cd asterisk1.4.14
make clean
./configure
make
make install
make samples
make config
12. Installation
Installing libpri
tar zxvf libpri1.4.3.tar.gz
cd libpri1.4.3
make
make install
Installing zaptel
tar zxvf zaptel1.4.8.tar.gz
cd zaptel1.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
13. 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
14. 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 <markster@digium.com>
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>
15. 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