Asterisk VOIP Server Setup On Ubuntu 20 | Making Calls via SIP Soft Phone | Rocket System

Asterisk VOIP Server Setup On Ubuntu 20 | Making Calls via SIP Soft Phone | Rocket System

Setting Up a VoIP Asterisk Server on Ubuntu

Introduction to VoIP and Asterisk

  • The video introduces the process of setting up a VoIP Asterisk server on an Ubuntu machine, aiming to enable communication between two clients.
  • VoIP (Voice over IP) allows clients to communicate over IP addresses, necessitating the installation of a server—in this case, the Asterisk VoIP server on Ubuntu.
  • Clients can be various devices such as Windows, Android, iOS, or Linux machines. Once connected to the Asterisk server, they can initiate calls among themselves.

Installing Asterisk

  • The presenter begins by updating the system using sudo apt-get update before installing Asterisk with sudo apt-get install asterisk.
  • After successful installation, the command sudo asterisk -r is used to launch the Asterisk console.

Configuring Asterisk

Configuration Files Overview

  • All configuration files for Asterisk are located in the /etc/asterisk directory. Key files include:
  • sip.conf: For SIP client configurations.
  • extensions.conf: For defining call handling rules.
  • voicemail.conf: For voicemail settings.

Modifying sip.conf

  • The presenter emphasizes backing up existing configuration files before making changes. The backup command used is sudo mv sip.conf sip.conf.backup.
  • New configurations are added in sip.conf, including IP address ranges and client details (e.g., usernames and secret keys).

Modifying extensions.conf and voicemail.conf

  • Similar backup procedures are followed for extensions.conf, where necessary settings for call extensions are defined.
  • In voicemail.conf, basic voicemail settings are configured.

Reloading and Verifying Configuration

  • After all modifications, the command reload is issued in the Asterisk console to apply changes.
  • To verify that clients have been added correctly, the command sip show peers is executed. It confirms that both clients (7001 and 7002) have been recognized but not yet connected.

Setting Up Client Software

Connecting Clients to Server

  • The presenter switches back to their Windows system to configure it as client 7001 using MicroSIP software—chosen for its lightweight nature.

Connecting VoIP Clients to Asterisk Server

Setting Up the Windows Client

  • The speaker connects to an Ubuntu machine using PuTTY and checks the SIP peers with the command sip show peers, confirming that the Windows machine (7001) is connected.
  • The next step involves installing a SIP softphone application called "Music Droid" on an Android device to set it up as client 7002.

Configuring the Android Client

  • The configuration process includes entering the server IP address of the Ubuntu machine, setting username as 7002, and using a password also set to 7002.
  • After clicking 'OK', registration is confirmed when it shows "registered," allowing calls between the Android device and Windows machine.

Making Calls Between Devices

  • The speaker initiates a call from the Android phone to the Windows machine by dialing 7001, successfully receiving a call on the Windows side.
Video description

In this video we will learn how we can install asterisk VOIP server on Ubuntu 20. VOIP is a voice over IP phone through which clients can place call and talk to each other on IP address. We will install VOIP Asterisk server and then will add 2 clients. This can be done by editing the sip.conf file. We can then register these clients on windows or android or apple devices and can make calls easily. Download files from here: https://github.com/mailrocketsystems/AsteriskVOIP For any queries : mailrocketsystems@gmail.com