Asterisk 13 with PJSIP Installation Steps on CentOS 7

Asterisk Installation Prerequisite
$ yum groupinstall "Development Tools"
$ yum install ncurses-devel.x86_64 libuuid-devel.x86_64 libxml2-devel sqlite-devel bison libical-devel.x86_64 neon.x86_64 unixODBC-devel.x86_64 speex.x86_64 libcurl.x86_64 libcurl-devel.x86_64 openssl.x86_64 openssl-libs.x86_64 openssl-devel.x86_64 git autoconf automake libtool
janssson will installed through git
$ cd /usr/src/
$ git clone https://github.com/akheron/jansson.git
$ cd jansson
$ autoreconf –i
$ ./configure –prefix=/usr/
$ make && make install
for chan_pjsip
$ cd /usr/src/
$ git clone https://github.com/pjsip/pjproject.git
$ cd pjprojects
$ ./configure --prefix=/usr --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr CFLAGS='-O2 -DNDEBUG'
$ make dep
$ make
$ make install
$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
for further details about pjsip issues, please consult Asterisk wiki
Asterisk Installation Steps
$ cd /usr/src/
$ wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
$ tar –xzvf asterisk-13-current.tar.gz
$ cd asterisk-13.0.0
$ ./bootstrap.sh
# For Asterisk 13 and 14...
$ ./configure --with-pjproject-bundled
# For Asterisk 15+...
$ ./configure
$ make && make install
$ make samples
$ sudo make config
$ make samples
$ chkconfig asterisk on
Start Asterisk server
$ asterisk -r
Asterisk 13.23.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 13.23.1 currently running on ip-10-45-3-249 (pid = 8169)
Enjoy ;)

No comments:

Post a Comment

SIPp UAC Scenario to send RTP

Please install the latest sipp ( >=3.7.3 ) wget https://github.com/SIPp/sipp/releases/download/v3.7.3/sipp chmor +x sipp mv sipp /usr/bin...