Tuesday, July 7, 2009

Asterisk installation

Before we can start, make sure you have the following:
1. Computer with installed Linux OS (Fedora 7)
2. Asterisk's installation packages

1. Download the Asterisk Installation packages
zaptel 1.4
asterisk addons 1.4.8
(For Mp3 Support and MySql)

2. Obtain from a SVN server:

Do not forget that you need to have an installed SVN package. Use the following command:

# yum install subversion

2.1 Latest CVS Head Version

To get the latest head version use this command:

# svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
# svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel
# svn checkout http://svn.digium.com/svn/libpri/trunk libpri

Check for the availability of some other packages:

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++

If any of those packages are not installed install them by using yum

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++

3. Compiling Asterisk on most Linux distributions

Extract the tar file and go to the folder where you extracted the files.
#cd /usr/src/asterisk

Important: Follow this installation order: libpri, zaptel, asterisk

-Installing libpri
#cd /usr/src/asterisk/libpri
#make clean
#make install

-Installing zaptel
#cd /usr/src/asterisk/zaptel
#make clean

Note: If you are using kernel 2.6 enter the following command '#make linux26', before doing '#make install'.

-Installing asterisk

#cd /usr/src/asterisk/asterisk
#make clean

Note: If you want to use a mp3 files for music-on-hold enter the following command '#make mpg123', before doing '#make install'.

#make install

If this is your first installation perform 'make samples' to install sample configuration files.

Check your asterisk installation by stating your asterisk daemon by typing safe_asterisk and connect to its CLI (Command Line interface) by typing asterisk -gvvvvvvvvvvvr. Now type this command in the asterisk CLI "module reload".

No comments:

Post a Comment


Related Posts with Thumbnails