You are on page 1of 2

tar1getenforce

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config


yum update -y
shutdown -r now
rpm -q kernel
uname - r
rpm -e kernel-
yum -y install kernel-devel-$(uname -r)
systemctl stop firewalld
systemctl disable firewalld
yum -y install mlocate wget curl net-tools lsof

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

cd /usr/src
wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz
tar -xzvf jansson-2.7.tar.gz
cd /usr/src/jansson-2.7
./configure --prefix=/usr
make clean
make && make install
ldconfig

cd /usr/src
wget https://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-
complete-2.10.2+2.10.2.tar.gz
tar -xzvf dahdi-linux-complete-2.10.2+2.10.2.tar.gz
cd /usr/src/dahdi-linux-complete-2.10.2+2.10.2
make all
make install
make config

cd /usr/src
wget https://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz
tar -xzvf libpri-current.tar.gz
cd /usr/src/libpri-1.6.0
make
make install
cd
cd /usr/src
wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-
current.tar.gz
tar -xzvf asterisk-14-current.tar.gz
cd /usr/src/asterisk-14.6.1
./configure --libdir=/usr/lib64
make menuselect.co

//Seleccionar: format_mp3 res_config_mysql app_mysql cdr_mysql

contrib/scripts/get_mp3_source.sh
make
make install
make config
make samples
systemctl restart dahdi
systemctl restart asterisk

asterisk -vvvr

You might also like