Asterisk Installation

Note that if you don't have kernel sources you should install them. You can use yum again: `yum install kernel-devel`. If you use this command yum will install the sources for your current version of the kernel.

It is time to 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++

Update Fedora

yum install kernel-smp

yum install kernel-smp-devel

Download Asterisk

go to fedora terminal (like command prompt in windows)

cd /usr/src/

# wget http://ftp.digium.com/pub/zaptel/\zaptel-1.4-current.tar.gz

# wget http://ftp.digium.com/pub/libpri/\libpri-1.4-current.tar.gz

# wget http://ftp.digium.com/pub/asterisk/\asterisk-1.4-current.tar.gz

after download right click on gz file one by one and click extract here

Install Asterisk

cd /usr/src/zaptel-1.4.5.1 (X= latest Asterisk version like 1.4.5)

make clean or make dist clean

./configure

make menuselect

make install

cd /usr/src/libpri-1.4.1

make clean

make

make install

cd /usr/src/asterisk-1.4.13

make clean

./configure (for 64 bit ./configure --libdir=/usr/lib64)

make menuselect

make

make install

=========================================================================

HOW TO START ASTERISK AFTER REBOOTING THE MACHINE:

Login to the Linux Box as root. In the terminal write the following commands

modprobe wct4xxp

ztcfg

Now Check the LED's of DIGIUM Card they should be green with pri lines pluuged in the ports. Then run the following.

cd /usr/sbin

./safe_asterisk

asterisk -r

NOW ASTERISK LOGS WILL START SCROLLING .. WHICH INDICATES THAT ASTERISK HAS STARTED SUCCESSFULLY.