Skip to content

Instantly share code, notes, and snippets.

@ambiorixg12
Last active April 21, 2023 22:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ambiorixg12/28379efe9c1d1ce7a1833ca9898e5357 to your computer and use it in GitHub Desktop.
Save ambiorixg12/28379efe9c1d1ce7a1833ca9898e5357 to your computer and use it in GitHub Desktop.
Asterisk 16 installation on Centos 7
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config
reboot
MAKE SURE SELINUX IS DISABLED running the next command
sestatus
yum -y update
yum -y groupinstall core base "Development Tools"
yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar zxvf asterisk*
cd /usr/src/asterisk*
contrib/scripts/install_prereq install
./configure --libdir=/usr/lib64 --with-pjproject-bundled --with-jansson-bundled && make menuselect && make && make install
make samples
make config
ldconfig
service asterisk start
asterisk -rvvvvvvvvvvvvv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment