Asterisk is an enterprise level
telephone system that uses real desk phones capable of seamlessly calling
normal phones.
Install wget to pull down Asterisk
&& Download Asterisk 1.8 & DAHDI Tools:
#yum install wget
#wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.5.0.tar.gz
#wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.5.0+2.5.0.tar.gz
Asterisk & DAHDI Tools need
extracting, to extract the tar.gz
#tar -xvzf asterisk-1.8*
#tar -xvzf dahdi-linux-complete-*
Install dependencies so we can
compile Asterisk 1.8
#yum install kernel-devel gcc make
gcc-c++ libxml2-devel
Next, install Perl & Ncurses
Development
#yum install perl ncurses-devel
#cd dahdi-linux-complete*
#make all
#make install
#make config
#make install
#make config
For this tutorial I am only going to
be using SIP trunks. If you have are using cards / hardware you might want to
check out /etc/dahdi/system.conf and /etc/asterisk/chan_dahdi.conf
Start DAHDi at Boot:
Start DAHDi at Boot:
#chkconfig dahdi on
#service dahdi start
#service dahdi start
Build Asterisk 1.8 on CentOS:
Time to build Asterisk!
#cd asterisk-*
#make clean
#./configure
#make clean
#./configure
Configure your Asterisk Server options and install:
#make menuselect
#make
#make install
#make
#make install
Install sample config files in /etc/asterisk and set Asterisk to start at boot:
#make samples
#make config
#chkconfig asterisk on
#make config
#chkconfig asterisk on
Start Asterisk:
#asterisk -vvvvc
Stop Asterisk Core with:
#core stop now
Now you know Asterisk runs correctly
you can start the service with:
#/etc/init.d/asterisk start