Recently i have installed asterisk 11 on centos 6 as per the instruction from Digium blog. The instruction i have followed to install is :-
For this install I am using Asterisk 11.2.1 and will be compiling from source on CentOS 6.3. This tutorial should also work on Fedora and RHEL (Red Hat Enterprise Linux) systems with little or no modification.
First, you will want to be sure that your server OS is up to date.
yum update -y
Disable SELinux by changing “enforcing” to “disabled” in /etc/selinux/config. Use a text editor or copy and paste this command.
sed –i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
After you update and disable SELinux, you’ll need to reboot.
Next, you will want to resolve basic dependencies. (More information on Asterisk dependencies.)
yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel
Change into the /usr/src/ directory to store your source code.
Download the source tarballs. These commands will get the current release of DAHDI 2.6, libpri 1.4 and Asterisk 11.
Extract the files from the tarballs.
tar zxvf dahdi-linux-complete*
tar zxvf libpri*
tar zxvf asterisk*
For the next set of commands it is important to follow the proper order: DAHDI first, then libpri, then Asterisk.
make && make install && make config
make && make install
Change to the Asterisk directory.
In the next step, running the “configure” script will vary depending on whether your system is 32-bit or 64-bit. (Watch the video for more details.) When the menuselect command runs, select your options, then choose “Save and Exit” and the install will continue.
Use this command if you are installing Asterisk on 32bit CentOS.
./configure && make menuselect && make && make install
Use this command if you are installing Asterisk on 64bit CentOS.
./configure –libdir=/usr/lib64 && make menuselect && make && make install
Optional: If you ran into errors you will want to clean the install directory before recompiling.
make clean && make distclean
Once you have an error-free install, copy the sample files from the configs subdirectory into /etc/asterisk.
Then add the Asterisk start script to the /etc/init.d/ directory
service asterisk start
Connect to the Asterisk CLI.
And now you have Asterisk 11 running on CentOS 6
- 38You'll need to: Stop Asterisk Stop DAHDI Unload the driver for your card from the Linux kernel Load the driver for your card with the module parameter "vpmsupport=0". You can stop Asterisk with the command: asterisk -rx "core stop gracefully" You can stop DAHDI with the command: /etc/init.d/dahdi stop In…
- 34Generally setup command is not used to install in centos minimal installation: Here is the step to install setup command in centos: # yum install setuptool -y # yum install system-config-network* -y # yum install system-config-firewall* -y # yum install system-config-securitylevel-tui -y # yum install system-config-keyboard -y # yum…
- 33First step is to set static IP by edit /etc/sysconfig/network-scripts/ifcfg-eth0. Then get the latest updates via: yum update Get Asterisk Source: cd /usr/src wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-22.214.171.124.tar.gz tarxvzf asterisk-126.96.36.199.tar.gz Install dependencies/libraries: yum install unixODBC unixODBC-devel mysql-server mysql-devel nano ncurses-devel patch gccgcc-c++ kernel-devel libtiff-devel libtermcap-devel bison flex curl-devel libtool-ltdl-devel gmime-devel wget…