Asterisk 11 Installation On CentOS 6
Asterisk 11 Installation On CentOS 6
This page shows installation of Asterisk 11.0.0 on CentOS 6. It's been assumed that you have already installed CentOS 6 on your machine. The main steps of installation can be summarized as: 1. CentOS Updates (If Any) 2. Disabling SELinux 3. Reboot 4. Installation of Dependencies for Asterisk 11 5. Downloading your Asterisk Source Code 6. Extraction of Downloaded Files 7. DAHDI Installation 8. LibPRI Installation 9. Change Asterisk Directory 10. Run Configure Script for Asterisk 11. Install Sample Files 12. Start DAHDI 13. Start Asterisk Each step is elaborated as under:
1. CentOS Updates
Update your CentOS 6 Server for any possible unimplemented updates. yum update -y
2. Disabling SELinux
You can use any text editor (VIM etc) to commit this change. Go to /etc/selinux/config and change SELINUX=enforcing to SELINUX=disabled This can also be done by using command line: sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
3. Reboot
Once the aforementioned change is committed and the file is updated, reboot the system using: reboot
7. DAHDI Installation
DAHDI (Digium Asterisk Hardware Device Interface) can be installed using the command line: cd /usr/src/dahdi-linux-complete* make && make install && make config
8. LibPRI Installation
In order to enable your BRI, PRI and QSIG based hardware, you will be needing PRI Library or LibPRI. You can install these libraries using: cd /usr/src/libpri* make && make install
For 32 Bit, you will be getting response like: 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:23:01 EDT 2011 i686 i686 i386 GNU/Linux
For 64 Bit, system will respond with something like: 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Based on your OS Architecture, go ahead with these commands for Asterisk Configuration Script. For 32 Bit: ./configure && make menuselect && make && make install
For 64 Bit: ./configure --libdir=/usr/lib64 && make menuselect && make && make install
Once done, add the Asterisk Install Script in directory /etc/init.d/ using: make config
And you're done. Contribute back to Voip-info.org if you're done. Start discussion in case of any problem. Newbies, do search and get updated with 'sudo' command. It may bug the beginners too much.