Last active
December 5, 2024 08:11
-
-
Save shahriarhasib/26fa5b67b04fd08b3d833580084c830e to your computer and use it in GitHub Desktop.
Installing Asterisk Cert on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Updateing aptitude | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install build-essential libxml2-dev libncurses5-dev libsqlite3-dev uuid-dev libjansson-dev libssl-dev libedit-dev libxml2-utils xmlstarlet | |
#Go to the directory where you want to download the files: | |
cd /usr/local/src | |
#Download the file usding wget | |
#Source: https://downloads.asterisk.org/pub/telephony/ | |
#http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz | |
#sudo wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz | |
sudo wget https://downloads.asterisk.org/pub/telephony/certified-asterisk/asterisk-certified-current.tar.gz | |
#Extract the downloaded file: | |
#sudo tar -zxvf asterisk-20-current.tar.gz | |
sudo tar -zxvf asterisk-certified-current.tar.gz | |
#Change directory to the extracted folder: | |
#cd asterisk-20.4.0/ | |
#cd asterisk-20.5.2/ | |
#cd asterisk-20.6.0/ | |
#cd asterisk-certified-18.9-cert8/ | |
cd asterisk-certified-20.7-cert3/ | |
#Install packaged prerequisites: | |
sudo ./contrib/scripts/install_prereq install | |
#Install unpackaged prerequisites: | |
#sudo ./contrib/scripts/install_prereq install-unpackaged | |
#Configure | |
sudo ./configure | |
#sudo ./contrib/scripts/install_prereq install-unpackaged | |
#sudo ./configure --with-pjproject-bundled | |
#Select Modules to compile and install: | |
sudo make menuselect | |
#Ensure to enable chan_sip module in Channel Driver. See Image below | |
#Compile | |
sudo make && make install | |
sudo make samples && sudo make config && make progdocs && sudo make install-logrotate | |
#During compile if face any issue, after fixing the issue, to try rebuild, first | |
#Clean Up Previous Build Attempts | |
#sudo make clean | |
#sudo make distclean | |
#Add auto module load chan_sip.so | |
vi /etc/asterisk/modules.conf | |
load = chan_sip.so | |
noload = res_pjsip.so | |
#Start Asterisk | |
sudo /etc/init.d/asterisk start | |
sudo systemctl enable asterisk | |
#Enter Asterisk Console (Command Line Interface) | |
asterisk -rvvvvvvv | |
#Check Verions in Console | |
core show version | |
exit | |
#Backup | |
#mv /etc/asterisk/sip.conf /etc/asterisk/sip-conf-backup-$(date +'%Y-%m-%d-%H%M') | |
#mv /etc/asterisk/extensions.conf /etc/asterisk/extensions-conf-backup-$(date +'%Y-%m-%d-%H%M') | |
#mv /etc/asterisk/manager.conf /etc/asterisk/manager-conf-backup-$(date +'%Y-%m-%d-%H%M') | |
#mv /etc/asterisk/http.conf /etc/asterisk/http-conf-backup-$(date +'%Y-%m-%d-%H%M') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment