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 http://www.pjsip.org/release/2.3/pjproject-2.3.tar.bz2
# 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 http://downloads.asterisk.org/pub/telephony/certified-asterisk/asterisk-certified-13.21-current.tar.gz

 

# 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!!!!

 

2 thoughts on “Install Asterisk 13 and PJSIP on CentOS 6

Leave a Reply