Install Asterisk 13 and PJSIP on CentOS 6

Install Asterisk 13 and PJSIP on CentOS 6+ 64 bit

Step 1 – Setup the environment

The first step is to install the dependencies required to build the PJSIP libraries and Asterisk 13. Using the CentOS yum package manager we’ll update all currently installed packages to their latest version and then install some of the most common dependencies for Asterisk and PJSIP.

# yum update

# yum install -y epel-release dmidecode gcc-c++ ncurses-devel libxml2-devel make wget openssl-devel newt-devel kernel-devel sqlite-devel libuuid-devel gtk2-devel jansson-devel binutils-devel

Step 2 – Install pjproject

# cd /usr/src
# wget
# tar -jxvf pjproject-2.3.tar.bz2

# cd pjproject-2.3

# ./configure CFLAGS=”-DNDEBUG -DPJ_HAS_IPV6=1″ –prefix=/usr –libdir=/usr/lib64 –enable-shared –disable-video –disable-sound –disable-opencore-amr

This command must be modified when using a 32-bit operating system. Just remove the –libdir=/usr/lib64 option from the command.

# make dep
# make
# make install
# ldconfig

And finally this next command will verify the pjsip libraries have been dynamically linked.

# ldconfig -p | grep pj

Step 3 – Install Asterisk 13

# cd /usr/src

# wget

# tar -zxvf certified-asterisk-13.1-current.tar.gz

# cd certified-asterisk-13.1-cert1

The next set of commands will build and install Asterisk. Remember to skip the –libdir=/usr/lib64 option for 32-bit versions of CentOS. In that case just run the command ./configure.

# ./configure –libdir=/usr/lib64

# make menuselect

# make && make install

# make samples

# make config

Now All done!!!!

Related Posts

  • 63
    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…
    Tags: asterisk, install, centos, cd, wget, command, bit
  • 60
    Installing Free g729 codec in asterisk 1. Download the appropriate codec from the below link 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…
    Tags: asterisk, bit, install, installing
  • 44
    What is Nagios? Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.  It has the capability of monitoring application, services, entire IT infrastructure. It has been designed with scalability and flexibility in mind, Nagios gives you the peace…
    Tags: install, step, centos
  • 37
      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, yum, centos, command
  • 36
        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 tarxvzf asterisk- 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

Leave a Reply

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

%d bloggers like this: