Installation of asterisk 11 on centos 6

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.
sedi s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config

After you update and disable SELinux, you’ll need to reboot.

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.

cd /usr/src/

Download the source tarballs. These commands will get the current release of DAHDI 2.6, libpri 1.4 and Asterisk 11.

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz

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.

Install DAHDI.

cd /usr/src/dahdilinux-complete*
make && make install && make config

Install libpri.

cd /usr/src/libpri*
make && make install

Change to the Asterisk directory.

cd /usr/src/asterisk*

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.

make samples

Then add the Asterisk start script to the /etc/init.d/ directory

make config

Start DAHDI.

servicedahdi start

Start Asterisk.

service asterisk start

Connect to the Asterisk CLI.

asteriskrvvv

And now you have Asterisk 11 running on CentOS 6

Related Posts

  • 38
    You'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…
    Tags: command, dahdi, asterisk, will
  • 35
    How to Install MySQL on CentOS 6.4 su to root install mysql and mysql-server download and install all dependencies done start mysql start mysql at startup  
    Tags: install, centos, start, asterisk
  • 34
      Generally 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…
    Tags: install, centos, command
  • 33
        First 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-1.8.9.0.tar.gz tarxvzf asterisk-1.8.9.0.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…
    Tags: install, cd, wget, asterisk
  • 33
    Installing Free g729 codec in asterisk 1. Download the appropriate codec from the below link http://asterisk.hosting.lv/ Check your asterisk version  --  asterisk -rx "core show version" check whether 32bit or 64 bit ---  uname -a For asterisk 1.4 version and 32 bit Pentium based server (like intelxeon ,p4, dualcore core2duo0 http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium4.so…
    Tags: asterisk, bit, install

3 thoughts on “Installation of asterisk 11 on centos 6

  • September 10, 2013 at 7:49 am
    Permalink

    yum install unixODBC unixODBC-devel mysql-server mysql-devel nano ncurses-devel patch gcc gcc-c++ kernel-devel libtiff-devel libtermcap-devel bison flex curl-devel libtool-ltdl-devel gmime-devel wget make svn libxml2-devel

    Reply
  • September 29, 2013 at 9:24 pm
    Permalink

    I have been just analyzing this post it is very well written, My organization is looking around on the web searching for just how to begin this blog thing and your site happens to be extremely high quality.

    Reply
  • March 13, 2015 at 12:39 pm
    Permalink

    Use lspci command from linux command prompt to check if PRI card has been detected or not!!!

    if yes, follow the Step to configure digium card:

    Once the card is Detected follow the below steps

    [root@localhost ~]# dahdi_genconf -vvvvvv
    Default parameters from /etc/dahdi/genconf_parameters
    Generating /etc/dahdi/system.conf
    Generating /etc/asterisk/dahdi-channels.conf

    [root@localhost ~]# dahdi_cfg -vvvv
    DAHDI Tools Version – 2.4.1
    DAHDI Version: 2.4.1.2
    Echo Canceller(s): MG2
    Configuration
    ======================
    SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
    31 channels to configure.
    Channel 01: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 01)
    Channel 02: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 02)
    Channel 03: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 03)
    ……………………………………………………………………………………………..
    Channel 30: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 30)
    Channel 31: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 31)

    Now configuration is done, some small changes to be done to enable the channels in the asterisk
    go to vi /etc/asterisk/chan_dahdi.conf
    go to last line of the file by pressing shift+g
    then add this line #include dahdi-channels.conf
    save and exit the file.

    Now go to asterisk cli and type module reload chand_dahdi.so or restart the server.

    And all done…!!!!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: