CentOS 5 and Asterisk 1.4.x installation

Business PBX Solutions
Provider Solution Details
Bicom VoIP Become an ITSP Now!
  • Become a serious competitor in VoIP Immediately
  • FULL Consultancy, Installation, Training & Support
  • Sell Hosted IP PBXs, Biz Lines, Call Centre
  • Turnkey Provisioning at your data center
Details
3CX Software PBX for Windows
  • Windows Software Solution
  • Easy to Install and Manage
  • Auto Configures Phones & Trunks
  • Android, iOS, Windows & Mac clients
Details

Base Install of Asterisk on a CentOS/RHEL box:


Before you begin, you'll probably want to bring all your packages up to date. To do so, run 'yum -y update'. If any kernel files were updated as part of this process, you will need to reboot the machine (shutdown -r now). Repeat the process until no more updates are available.

Download the pre-requisite of asterisk:

gcc
gcc-c++
kernel-devel
bison
openssl-devel
libtermcap-devel


We'll be using yum for now(there's no support for apt-get in CentOS 5)

yum -y update
yum install gcc gcc-c++ kernel-devel bison openssl-devel libtermcap-devel


then download the latest asterisk version at asterisk.org to /usr/src:

cd /usr/src

wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz


#if you plan to use PRI cards(eg. TE110P, TE406P) you need to download this package:


wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz


then untar all the files

tar -zxf zaptel-1.4-current.tar.gz
tar -zxf asterisk-1.4-current.tar.gz
tar -zxf libpri-1.4-current.tar.gz


### INSTALLING ZAPTEL ###

cd /usr/src/zaptel

make clean
make
make install

#If you want "service zaptel restart" command to work do this
make config


### INSTALL LIBPRI ###
# If you are using E1 cards you need to install LIBPRI

cd /usr/src/libpri

make clean
make
make install


### INSTALLING ASTERISK ###

cd /usr/src/asterisk

./configure
make
make install

#If you want sample files to be created in /etc/asterisk
make samples

#If you want program docs/manual pages for asterisk
make progdocs

#If you want "service asterisk restart" command to work do this
make config



now you're finish installing asterisk.



See Also




Base Install of Asterisk on a CentOS/RHEL box:


Before you begin, you'll probably want to bring all your packages up to date. To do so, run 'yum -y update'. If any kernel files were updated as part of this process, you will need to reboot the machine (shutdown -r now). Repeat the process until no more updates are available.

Download the pre-requisite of asterisk:

gcc
gcc-c++
kernel-devel
bison
openssl-devel
libtermcap-devel


We'll be using yum for now(there's no support for apt-get in CentOS 5)

yum -y update
yum install gcc gcc-c++ kernel-devel bison openssl-devel libtermcap-devel


then download the latest asterisk version at asterisk.org to /usr/src:

cd /usr/src

wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz


#if you plan to use PRI cards(eg. TE110P, TE406P) you need to download this package:


wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz


then untar all the files

tar -zxf zaptel-1.4-current.tar.gz
tar -zxf asterisk-1.4-current.tar.gz
tar -zxf libpri-1.4-current.tar.gz


### INSTALLING ZAPTEL ###

cd /usr/src/zaptel

make clean
make
make install

#If you want "service zaptel restart" command to work do this
make config


### INSTALL LIBPRI ###
# If you are using E1 cards you need to install LIBPRI

cd /usr/src/libpri

make clean
make
make install


### INSTALLING ASTERISK ###

cd /usr/src/asterisk

./configure
make
make install

#If you want sample files to be created in /etc/asterisk
make samples

#If you want program docs/manual pages for asterisk
make progdocs

#If you want "service asterisk restart" command to work do this
make config



now you're finish installing asterisk.



See Also




Created by: markq, Last modification: Mon 05 of Nov, 2007 (11:42 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+