Get Serious CRM. Professional products, articles and focus from the top providers.

12/08/2014

How to - Install Asterisk 13 on Centos 7

This guide is a quick memorandum on how to install Asterisk 13 on Centos 7.0
No repositories are available, so the better way is download the last Asterisk version from the offical repository, and compile it following the standard procedure.

During this post, these version running:

Asterisk 13.0.1
Centos  7.0.1406


Access as root to your installation.

First step, load the developers tools package:
# yum groupinstall -y Development Tools kernel-devel 

Install also additional the packages:
yum install –y ncurses-dev uuid-devel libuuid-devel libxml2-devel sqlite-devel bison subversion git-core

Disable selinux
# nano /etc/selinux/config

Change the
SELINUXTYPE=targeted
to
SELINUXTYPE=disabled

Reboot your system
# /sbin/shutdown -r now

Install libjansson from github:

# cd /usr/src/
# git clone https://github.com/akheron/jansson.git
# cd jansson
# autoreconf -i
# ./configure -prefix=/usr/
# make && make install

Now we are ready to download Asterisk and compile it:

# 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*
# ./bootstrap.sh

if the system is 32-bit
# ./configure
if the system is 64-bit
#./configure --libdir=/usr/lib64

Select the packages:
# make menuselect

Install it

# make && make install && make samples

Launch Asterisk for the first time:
# asterisk -r

If errors occurring during the launch take a look to the Client:
# asterisk -vvvvvvc
or
# asterisk -&



6 commenti :

Posta un commento