Tutorials

Set up your own Call Center Server on Ubuntu

In this comprehensive guide, we will walk you through the process of setting up a VoIP Asterisk server on an Ubuntu machine. Additionally, we will add two clients to the server, enabling them to make calls between each other.

What is VoIP Call Center Server?

VoIP, or Voice over Internet Protocol, is a technology that enables clients to communicate with each other over IP networks. To implement VoIP, we need to set up a server and install VoIP server software. In this guide, we will use Ubuntu as our operating system and install the Asterisk VoIP server on it.

Installing Asterisk

Let’s start by installing Asterisk on our Ubuntu machine. Open a terminal and update the system by running the following command:

sudo apt-get update

Once the update is complete, install Asterisk by running:

sudo apt-get install asterisk

After installing Asterisk, launch the Asterisk console by typing:

sudo asterisk -r

Configuring Asterisk

Editing Configuration Files

All the configuration files for Asterisk are located in the /etc/asterisk directory. Let’s navigate to that directory:

cd /etc/asterisk

The main configuration files we need to work with are:

  • sip.conf: SIP configuration
  • extensions.conf: Extensions configuration
  • voicemail.conf: Voicemail configuration

Modifying sip.conf

Let’s take a backup of the sip.conf file first:

sudo cp sip.conf sip.conf.backup
sudo nano sip.conf

Add the following configuration to sip.conf:

[general]
...
[7001]
type=friend
secret=7301
...
[7002]
type=friend
secret=7302
...

Modifying extensions.conf

Take a backup of extensions.conf:

sudo cp extensions.conf extensions.conf.backup
sudo nano extensions.conf

Add the following configuration to extensions.conf:

[default]
...
exten => 7001,1,Dial(SIP/7001)
...
exten => 7002,1,Dial(SIP/7002)
...

Modifying voicemail.conf

Take a backup of voicemail.conf:

sudo cp voicemail.conf voicemail.conf.backup
sudo nano voicemail.conf

Add the following configuration to voicemail.conf:

[default]
...
7001 => 1234,User1,user1@example.com
...

Reloading Asterisk

Reload the Asterisk server by typing the following command in the Asterisk console:

reload

Checking Clients

To verify that the clients have been added successfully, run the following command in the Asterisk console:

sip show peers

Adding Clients

Adding Windows Client (7001)

  • Install a SIP softphone like MicroSIP on your Windows machine.
  • Add an account with the following details:
  • Username: 7001
  • Server: Asterisk Server IP
  • Password: 7301
Call Center Server
Call Center Server

Adding Android Client (7002)

  • Install a SIP softphone like Zoiper on your Android device.
  • Add an account with the following details:
  • Username: 7002
  • Server: Asterisk Server IP
  • Password: 7302
Call Center Server

Making Calls

You can now make calls between the clients. Check the Asterisk logs using sip show peers to verify that both clients are online.

Frequently Asked Questions (FAQs)

Q: Can I add more than two clients to my Asterisk server?

A: Yes, you can add as many clients as you want to your Asterisk server. Simply follow the same process outlined in this guide for each additional client.

Q: Can I use different SIP softphones for my clients?

A: Yes, you can use different SIP softphones for your clients. As long as the softphone supports SIP protocol, you can use it to connect to your Asterisk server.

Q: Can I make calls between different types of devices, such as from Windows to Android?

A: Yes, you can make calls between different types of devices connected to your Asterisk server. Whether it’s from Windows to Android, Android to iOS, or any other combination, as long as the clients are connected to the same Asterisk server, you can make calls between them.

Q: Do I need a static IP address for my Asterisk server?

A: While a static IP address is recommended for better stability, you can also use dynamic DNS services to map a domain name to your dynamic IP address.

Conclusion

In conclusion, we have successfully set up a VoIP Asterisk server on an Ubuntu machine and added two clients to it. Now, you can enjoy seamless communication between your devices using VoIP technology.

Was this helpful ?
YesNo

Adnen Hamouda

Software and web developer, network engineer, and tech blogger passionate about exploring the latest technologies and sharing insights with the community.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

Back to top button