← Back to list

Installing Asterisk Server

I recently had a really hard time installing Asterisk Server. We were trying to establish connection between 2 phones (soft phones). So…

Nidhiworah · 2024-06-11 07:20 · 1 claps · 1.4 min read
#pjsip #asterisk-phone-systems #voip #asterisk-tutorials #computer-networking
Open on Medium ↗

Installing Asterisk Server

I recently had a really hard time installing Asterisk Server. We were trying to establish connection between 2 phones (soft phones). So here is a guide to install Asterisk Server on your machine.

If you are using a Windows machine, it is advisable to install WSL-2 to follow along with the tutorial

Photo by Thomas Jensen on Unsplash

Photo by Thomas Jensen on Unsplash

What is an Asterisk Server?

Asterisk is an open source communication server which uses different communication protocols to handle the complexities of sending and receiving voice data over the internet. One important protocol implemented by Asterisk is the Session Initiation Protocol (SIP). This protocol is responsible for initiating, maintaining and terminating real-time sessions in voice, video and instant messaging applications.

Installing Asterisk Server

Getting right into the steps to install an Asterisk Server. Run the following commands and you’ll be good to go —

sudo apt update && sudo apt upgrade
sudo apt install wget build-essential subversion
cd /usr/src/ 
sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz
sudo tar zxf asterisk-18-current.tar.gz
cd asterisk-18.*/
sudo contrib/scripts/get_mp3_source.sh
sudo contrib/scripts/install_prereq install
sudo ./configure

Before doing menuselect, make sure the window of the terminal is fullsize or you’ll get the following error —

Reference — https://docs.asterisk.org/Getting-Started/Installing-Asterisk/Installing-Asterisk-From-Source/Using-Menuselect-to-Select-Asterisk-Options/

Terminal must be at least 80 x 27.

sudo make menuselect

in menuselect, select format_mp3 -> save and exit

sudo make -j2
sudo make install
sudo make samples
sudo make config
sudo ldconfig
sudo ufw allow 5060/udp

# this is optional
sudo systemctl start asterisk
sudo asterisk -vvvr

This will start your Asterisk Server

References :

[embed]Using Menuselect to Select Asterisk Options - Asterisk Documentation The next step in the build process is to tell Asterisk which modules to compile and install, as well as set various…docs.asterisk.org

[embed]GitHub - kousik19/SIP Contribute to kousik19/SIP development by creating an account on GitHub.github.com

[embed]


메타데이터
post_id
0e1a863a4bc0
slug
installing-asterisk-server-0e1a863a4bc0
url
https://medium.com/@nidhiworah02/installing-asterisk-server-0e1a863a4bc0
canonical_url
https://medium.com/@nidhiworah02/installing-asterisk-server-0e1a863a4bc0
author_url
https://medium.com/@nidhiworah02
status
ok
fetched_at
2026-06-28 04:42:08