Skip to content

Instantly share code, notes, and snippets.

@suleymanbilgin
Last active December 10, 2017 01:07
Show Gist options
  • Save suleymanbilgin/e62824a441ecb78504f28429fa477aa2 to your computer and use it in GitHub Desktop.
Save suleymanbilgin/e62824a441ecb78504f28429fa477aa2 to your computer and use it in GitHub Desktop.
wget
yum update
yum install wget
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-15-current.tar.gz
cd asterisk-15.1.3
contrib/scripts/install_prereq install
# spandsp-devel
yum install libtiff-devel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/s/spandsp-0.0.6-0.10.pre21.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/s/spandsp-devel-0.0.6-0.10.pre21.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/s/spandsp-apidoc-0.0.6-0.10.pre21.el7.x86_64.rpm
# freetds-devel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/f/freetds-0.95.81-1.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/f/freetds-doc-0.95.81-1.el7.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/f/freetds-devel-0.95.81-1.el7.x86_64.rpm
# iksemel-devel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/i/iksemel-1.4-6.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/i/iksemel-utils-1.4-6.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/i/iksemel-devel-1.4-6.el7.x86_64.rpm
# libsqlite3x-devel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libsqlite3x-20071018-20.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libsqlite3x-devel-20071018-20.el7.x86_64.rpm
# radiusclient-ng-devel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/radiusclient-ng-0.5.6-9.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/radiusclient-ng-utils-0.5.6-9.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/r/radiusclient-ng-devel-0.5.6-9.el7.x86_64.rpm
# portaudio-devel and jack-audio-connection-kit
yum -y install alsa-lib
rpm -Uvh http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/x86_64/RPMS.classic/libportaudio2-19-alt6.x86_64.rpm
yum -y install libconfig glibmm24 libiec61883
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libxml++-2.37.1-1.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libffado-2.1.0-4.el7.x86_64.rpm
yum -y install opus libsamplerate
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/j/jack-audio-connection-kit-1.9.9.5-6.el7.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/portaudio-19-16.el7.x86_64.rpm
yum -y install alsa-lib-devel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/portaudio-devel-19-16.el7.x86_64.rpm
yum -y install epel-release
yum update
contrib/scripts/install_prereq install
rpm -Uvh http://repo.iotti.biz/CentOS/7/x86_64/libresample-0.1.3-20.el7.lux.1.x86_64.rpm
rpm -Uvh http://repo.iotti.biz/CentOS/7/x86_64/libresample-devel-0.1.3-20.el7.lux.1.x86_64.rpm
./configure
make menuselect
make
make install
make samples
make basic-pbx
## NOW, INSTALLED ASTERISK
## Automatically Start
cp /usr/src/asterisk-15.1.3/contrib/init.d/rc.redhat.asterisk /etc/init.d/asterisk
change lines at /etc/init.d/asterisk
old: AST_SBIN=__ASTERISK_SBIN_DIR__
new: AST_SBIN=/usr/sbin/
find / -name asterisk
nano /etc/selinux/config
chkconfig asterisk on
shutdown -r now
; EXTENSIONS
[101]
type=peer
secret=asterisk
disallow=all
allow=ulaw
host=dynamic
context=default
qualify=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment