This article describes how to install Asterisk 11 on CentOS 6 using Yum. It will be kept short in order to it to be easy to follow. I’m assuming you are using a fresh install of CentOS 6.4.
This is the second of a series of tutorials about Asterisk and CentOS, the last document was about installing CentOS for Asterisk.
First install dnsmasq package:
# yum install dnsmasq
Add the Asterisk repository:
# rpm -Uvh http://packages.asterisk.org/centos/6/current/i386/RPMS/asterisknow-version-3.0.0-1_centos6.noarch.rpm
Update your system:
# yum update
Please note that after adding the Asterisk repository, a script will be installed on your system at ‘/usr/bin/update-etcissue.sh‘, this script will update your ‘/etc/issue‘ file when booting and a message like the following will appear when you restart your box:
The IP address of your AsteriskNOW system is AAA.BBB.CCC.DDD
where AAA.BBB.CCC.DDD is the current IP address of your CentOS box.
# yum install asterisk asterisk-configs —enablerepo=asterisk-11
As per my latest test, this will also install dahdi-linux and libpri
# yum install dahdi-linux dahdi-tools libpri
As per my last test, this will only install dahdi-tools
And that’s it, you have just succesfully made your way installing Asterisk 11 on Centos 6.4 box.
If you want Asterisk to run automatically when your server starts, issue the following command:
# chkconfig –level 3 asterisk on
Verbosity level and core dumping with asterisk -vvvv and asterisk -g
The flag -v is used for controlling the verbosity level of asterisk output.
# asterisk -vvvv
The -g flag is used in order to “remove resource limit on core size, thus forcing Asterisk to dump core in the unlikely event of a segmentation fault or abort signal”
# asterisk -g