# How to install Asterisk on Ubuntu 20.04?

{% embed url="<https://youtu.be/K-Pm-FVSsAA>" %}

### **Overview**

Asterisk is a free and open-source communication platform that allows developers to create their own telephony applications. Originally developed by Mark Spencer in 1999, Asterisk has grown to become one of the most popular PBX (Private Branch Exchange) systems in the world.

Asterisk can be used to build a wide range of communication applications, such as VoIP (Voice over IP) gateways, IVR (Interactive Voice Response) systems, conference bridges, and call centers. It provides a powerful set of features, including call recording, call forwarding, caller ID, voicemail, and many more.

This tutorial demonstrates how to set up Asterisk on Ubuntu 20.04.

### **Prerequisites**

There are certain prerequisites that need to be met before you begin.&#x20;

* Ubuntu 20.04-equipped system
* A sudo-privileged user account
* Internet connection
* Knowledge of CLI

### Get Started

**Step 1:** Update the package index and upgrade the system:

```
sudo apt update
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1326_1-2.png)

```
sudo apt upgrade
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1327_2-2.png)

When prompted to continue, enter 'y'.

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1328_3-2.png)

&#x20;

**Step 2:** Install dependencies required by Asterisk:

```
sudo apt install build-essential wget curl libncurses5-dev libssl-dev libxml2-dev uuid-dev sqlite3 libsqlite3-dev pkg-config libjansson-dev
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1329_1.png)

When prompted to continue, enter 'y'.

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1330_2.png)

&#x20;

**Step 3:** Download the latest version of Asterisk:

```
cd ~
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1331_3.png)

&#x20;

**Step 4:** Extract the Archive

```
tar -zxvf asterisk-18-current.tar.gz
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1332_4.png)

&#x20;

**Step 5:** Change to the Asterisk source directory:

```
cd asterisk-18.*
```

&#x20;

**Step 6:** Run the following command to configure Asterisk:

```
./configure
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1333_5.png)

&#x20;

**Step 7:** If there are any missing dependencies, Asterisk will let you know. Install the missing dependencies and then run ./configure again.

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1334_6.png)

Since the 'libedit' development package is not configured, we'll first install it on our system.

```
sudo apt-get install libedit-dev
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1335_7.png)

When prompted to continue, enter '**y**'.

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1336_8.png)

Once all the dependencies are configured. Run the following command once again.

```
./configure
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1337_9.png)

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1338_10.png)

Asterisk has successfully been configured.

&#x20;

**Step 8:** Build and install Asterisk:

```
make
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1339_11.png)

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1340_12.png)

```
sudo make install
```

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1341_13.png)

![](https://customer.acecloudhosting.com/index.php?rp=/images/kb/1342_14.png)

### **Conclusion**

This tutorial demonstrated how to set up Asterisk on a system running Ubuntu 20.04. Before you begin building and installing Asterisk, make sure you have all the necessary tools accessible.

&#x20;
