Skip to content

Instantly share code, notes, and snippets.

@ronokdev
Last active September 7, 2022 01:04
Show Gist options
  • Save ronokdev/e0da8e819c5a96f4df601c1cb5824f4e to your computer and use it in GitHub Desktop.
Save ronokdev/e0da8e819c5a96f4df601c1cb5824f4e to your computer and use it in GitHub Desktop.
Install Asterisk 14 on centos 7
:: Disable SELinux ‼️ πŸ”΄πŸ”΄πŸ”΄
1. check selinux status β†’ sestatus
2. RUN β†’ vi /etc/sysconfig/selinux
3. SELINUX=disabled
4. reboot the server β†’ reboot now
5. Check status again β†’ sestatus πŸ‘“
πŸ˜βš½πŸ€
Now Install Asterisk β†’
:: wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz
:: ls -l
:: tar -zxvf asterisk-14-current.tar.gz
:: cd asterisk-14.7.7/contrib/scripts
:: ./install_prereq test
:: ./install_prereq install
:: ./install_prereq install-unpackaged
:: yum install epel-release
:: yum -y install xmlstarlet
:: cd.. .. .. ; you should be in β†’ /root/asterisk-14.7.7
:: sudo contrib/scripts/get_mp3_source.sh
:: ./configure --libdir=/usr/lib64 --with-pjproject-bundled
:: sudo make menuselect
:: what to select & Check :
1. From Add-ons select β†’ format_mp3
2. From codec_Translators β†’
select codec_opus ,
codec_silk ,
codec_siren7 ,
codec_siren14,
codec_g729a
3. From Resource Modules β†’
Check if pjsip is selected or not
4. save & exit
:: sudo make
:: sudo make install
:: sudo make samples
:: sudo make config
:: sudo ldconfig
:: run β†’ systemctl restart asterisk
@ronokdev
Copy link
Author

ronokdev commented Aug 26, 2018

Firewall should be stopped & disabled

CheckStatus firewall β†’ systemctl status firewalld
stopping firewall β†’ systemctl stop firewalld
Disable Firewall β†’ systemctl disable firewalld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment