How To Install opensips on CentOS 7

In this tutorial we learn how to install opensips on CentOS 7. opensips is Open Source SIP Server

Introduction

In this tutorial we learn how to install opensips on CentOS 7.

What is opensips

OpenSIPS or Open SIP Server is a very fast and flexible SIP (RFC3261) proxy server. Written entirely in C, opensips can handle thousands calls per second even on low-budget hardware. A C Shell like scripting language provides full control over the server’s behaviour. It’s modular architecture allows only required functionality to be loaded. Currently the following modules are available MySQL and UNIXODBC support, a presence agent, radius authentication, record routing, an SMS gateway, a jabber gateway, a transaction and dialog module, OSP module, statistics support, registrar and user location.

We can use yum or dnf to install opensips on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install opensips.

Install opensips on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install opensips using yum by running the following command:

sudo yum -y install opensips

Install opensips on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install opensips using dnf by running the following command:

sudo dnf -y install opensips

How To Uninstall opensips on CentOS 7

To uninstall only the opensips package we can use the following command:

sudo dnf remove opensips

References

Summary

In this tutorial we learn how to install opensips on CentOS 7 using yum and dnf.