Asterisk

Asterisk is a free and open source framework to build your own PBX server. And if you are here, means you already have read and researched about asterisk. Asterisk can be installed on many Linux based operating system. We are going to install it on Ubuntu 18.04 LTS, because Ubuntu is one of the most widely used Linux system at present.

Installing Asterisk and Configuring it to make calls, both are different processes. We’ll try to cover both as much as possible.

so lets get started…

Hardware Requirements´╗┐

If you own a real server, that’s great…If not???…no problem…You can turn any of your PC into the server. The selection of hardware is highly dependent on size of your PBX. But make sure it have at least a dual core or above processor, with minimum 2-4 GB of RAM if you are having a small sized PBX with 10-20 extensions. The storage you can choose according to your requirement, but if you are going to record calls, make sure to have enough space to save every single call recording.

Some VoIP service providers, uses a wired line to provide VoIP services to their customers. If your VoIP provider also provided you with wired VoIP line, we recommend to use one extra NIC card on server. One to access LAN, and another to access VoIP line.

Configure VLAN

To add little bit more security, some wired line VoIP service providers sometimes give you a VLAN ID to configure on your VoIP setup. If you are provided with VLAN ID or VLAN number, you will need to set VLAN to properly make external outbound calls. If you are not provided with VLAN ID, you don’t need to follow this step.

To set and configure VLAN on Ubuntu, you can check our article How to Configure VLAN in Ubuntu

AsteriskInstallation

Open the terminal (or press Ctrl+Alt+T) and type the following command:

sudo apt-get install asterisk

When prompted with “Do you want to continue [Y/n]?“….. type Y

Installing Asterisk

This will install asterisk in your Ubuntu.

Now to see if it is running, launch the Asterisk CLI (Command Line Interface) by typing following line:

sudo asterisk -r

Installing Asterisk

Now you are in a Asterisk CLI mode, you can now configure asterisk from here. Any time if you want to exit, you can type the following code:

exit

Configuration

After successfully installing Asterisk, its time to configure it for real work. You can directly configure Asterisk from CLI or by manually editing the configuration files. Though, Asterisk configuration is a wast topic and explaining everything is beyond the scope of this particular article, we will try our best to explain you the configuration part in as simple as possible way.

Check the Basic Asterisk Configuration here.

Check the Advanced Asterisk Configuration here.