Install Asterisk-18 on CentOS 8
Asterisk-installation
A little house keeping before installation.
yum update yum groupinstall "Development Tools" sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config sestatus reboot sestatus sudo yum install httpd firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone=public --permanent --add-service=http firewall-cmd --zone=public --permanent --add-service=https firewall-cmd --reload sudo systemctl enable httpd.service sudo systemctl start httpd.service
Installing DependenciesPermalink
yum install -y epel-release dmidecode gcc-c++ ncurses-devel libxml2-devel make wget openssl-devel newt-devel kernel-devel sqlite-devel libuuid-devel gtk2-devel jansson-devel binutils-devel
dnf --enablerepo=PowerTools install libedit-devel dnf --enablerepo=PowerTools install libsrtp dnf --enablerepo=PowerTools install libsrtp-devel
yum install -y libedit-devel libsrtp libsrtp-devel
Install Asterisk 18
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz
tar -zxvf asterisk-18-current.tar.gz mv asterisk-18.3.0/ asterisk/ cd asterisk
contrib/scripts/install_prereq install
./configure --libdir=/usr/lib64 --with-pjproject-bundled --with-crypto --with-ssl=ssl --with-srtp --with-jansson-bundled make menuselect make make install make install-headers (optional if requires. Development headers are only installed if the “install-headers” target of make is done.) make samples make config
Start at server restart
ldconfig
sudo service asterisk start
Entering into command line of asterisk
asterisk -rvv
core show help exit
Configure extensions.conf and pjsip.conf
cd /etc/asterisk mv extensions.conf extensions.sample mv sip.conf sip.sample mv pjsip.conf pjsip.sample
Creating a basic Dial Plan by editing extensions.conf
vi extensions.conf
[public] exten = 100,1,Goto(hello-world,s,1) [default] [hello-world] exten = s,1,Answer() same = n,Wait(1) same = n,Playback(hello-world) same = n,Hangup()
Create SIP members in pjsip.conf
vi pjsip.conf
[transport-udp] type=transport protocol=udp bind=0.0.0.0 [7000] type=endpoint context=public disallow=all allow=ulaw auth=7000 aors=7000 [7000] type=auth auth_type=userpass password=7000 username=7000 [7000] type=aor max_contacts=1
asterisk -rx "core restart now"
asterisk -rvvvvv
Tagged:
1
Howdy, Stranger!
Categories
- 83 All Categories
- 15 VoIP
- 7 SIP
- 11 asterisk
- 41 Programming
- 1 Nodejs
- 4 javascript
- 18 PHP
- 8 Codeigniter
- 12 database
- 1 UI/UX
- 2 Flutter
- 25 OS
- 23 Linux
- 1 Virtualization
- 1 Android
- 1 Windows
- 2 legal