We will install asterisk13 with pjproject bounled on a CentOS 6.x x64 as it is recommended from Asterisk developers.
you can also use this installation for Webrtc config.
First lets update all packages:
yum -y update
Then we will install all necessary packages and add epel repository please read comments while the text.
Some optional packages already included.
#epel repositiry installation
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum install nano
# WARNING check that selinux is disabled in /etc/sysconfig/selinux
#need to reboot after changes selinux file
yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel
yum install wget gcc gcc-c++ ncurses-devel libxml2-devel sqlite-devel libuuid-devel openssl-devel libsrtp-devel
#install mysql http php and ODBC connector (optional)
yum install mysql-server httd mysql-connector-odbc php mysql php
yum install svn htop sngrep wget mysql-devel jansson-devel git patch autoconf
#get last asterisk and install it
cd /usr/src/ wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar xzf asterisk-13-current.tar.gz
cd asterisk-13*
#support mp3
contrib/scripts/get_mp3_source.sh
#configure and installation servises
./configure –with-pjproject-bundled –libdir=/usr/lib64
make menuselect
make
make install
make samples
make config
make install-logrotate
#start services
/etc/init.d/mysqld start
/etc/init.d/asterisk start
/etc/init.-----------------------------------------------------------------------------