Asterisk 14.3.0 CentOS 7. , Asterisk . , !


, , SElinux, . , vim nano . :

nano /etc/sysconfig/selinux

SELINUX = disabled:

SELINUX=disabled

reboot. , CentOS EPEL:

(22.02.2017). 24.07.2017 ( 2 ), , , .
rpm -Uvh http://mirror.pnl.gov/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
yum -y update

,

yum install -y gcc gcc-c++  lynx bison mariadb-devel mariadb-server mariadb gmime-devel psmisc php php-mysql php-pear php-mbstring
yum install tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel
yum install  kernel-devel-$(uname -r) git subversion kernel-devel php-process crontabs cronie cronie-anacron wget vim php-xml uuid-devel libtool sqlite-devel libuuid-devel bzip2

mariadb (MySQL):

systemctl enable mariadb.service
systemctl start mariadb.service

PearDB:

pear uninstall db
pear install db-1.7.14

, pjproject, DAHDI, jansson lame.

cd /usr/src/
wget http://www.pjsip.org/release/2.4/pjproject-2.4.tar.bz2
tar -xjvf pjproject-2.4.tar.bz2
cd pjproject-2.4*
./configure  --prefix=/usr --enable-shared --disable-sound --disable-resample --disable-video --libdir=/usr/lib64
make dep
make
make install
cd ..

DAHDI

wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz 
tar xvfz dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-*
make all
make install
make config
cd ..

lame:

wget https://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz 
tar zxvf lame-3.98.4.tar.gz 
cd lame-3.98.4 
./configure
make
make install
cd ..

jansson. yum -y install jansson-devel :

wget http://www.digip.org/jansson/releases/jansson-2.5.tar.gz
tar zvxf jansson-2.5.tar.gz
cd jansson-2.5 
./configure --prefix=/usr
make clean
make
make install 
ldconfig
cd ..

Asterisk, ISDN - libpri:

wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.6.0.tar.gz
tar xvfz libpri-1.6.0.tar.gz
cd libpri-1.6.0
make 
make install
cd ..

Asterisk

, Asterisk

wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz
tar xvfz asterisk-14-current.tar.gz
cd asterisk-14*
./configure --libdir=/usr/lib64
contrib/scripts/get_mp3_source.sh
make menuselect

menuselect . , , , . , , Add-ons mp3, format_mp3, :

 mp3    Asterisk

Core Sound Packages , , :

   Core Sound Packages asterisk

Music On Hold File Packages :

Music On Hold File Packages  Asterisk

, Extras Sound Packages F12:

 Asterisk Extras Sound Packages

, :

 Asterisk 14  CentOS 7

,

make

, , Asterisk :

 Asterisk  CentOS 7

:

make install
make samples
make config

Asterisk ,

 Asterisk  CentOS

Asterisk

useradd -m asterisk
chown asterisk.asterisk /var/run/asterisk 
chown -R asterisk.asterisk /etc/asterisk
chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk
chown -R asterisk.asterisk /usr/lib64/asterisk

, Asterisk,

systemctl restart asterisk

MySQL Asterisk:

mysql -u root p //   mysql    

MySQL Asterisk

create user 'merionuser'@'localhost' identified by 'merionpass'; //  merionuser,   merionpass

Asterisk:

create database asterisk;
create database asteriskcdrdb;

, :

GRANT ALL PRIVILEGES ON asterisk.* TO merionuser@localhost IDENTIFIED BY 'merionpass';
GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO merionuser@localhost IDENTIFIED BY 'merionpass';
flush privileges;

(CLI) Asterisk :

asterisk -rvv
  Asterisk CLI

core show help

core show help  Asterisk 14

?

 .

P.S. , :)

"",