Book Image

Building Telephony Systems with OpenSIPS Second Edition - Second Edition

By : Flavio E. Goncalves, Bogdan-Andrei Iancu
Book Image

Building Telephony Systems with OpenSIPS Second Edition - Second Edition

By: Flavio E. Goncalves, Bogdan-Andrei Iancu

Overview of this book

OpenSIPS is a multifunctional, multipurpose signalling SIP server. SIP (Session Initiation Protocol) is nowadays the most important VoIP protocol and OpenSIPS is the open source leader in VoIP platforms based on SIP. OpenSIPS is used to set up SIP Proxy servers. The purpose of these servers is to receive, examine, and classify SIP requests. The whole telecommunication industry is changing to an IP environment, and telephony as we know it today will completely change in less than ten years. SIP is the protocol leading this disruptive revolution and it is one of the main protocols on next generation networks. While a VoIP provider is not the only kind of SIP infrastructure created using OpenSIPS, it is certainly one of the most difficult to implement. This book will give you a competitive edge by helping you to create a SIP infrastructure capable of handling tens of thousands of subscribers. Starting with an introduction to SIP and OpenSIPS, you will begin by installing and configuring OpenSIPS. You will be introduced to OpenSIPS Scripting language and OpenSIPS Routing concepts, followed by comprehensive coverage of Subscriber Management. Next, you will learn to install, configure, and customize the OpenSIPS control panel and explore dialplans and routing. You will discover how to manage the dialog module, accounting, NATTraversal, and other new SIP services. The final chapters of the book are dedicated to troubleshooting tools, SIP security, and advanced scenarios including TCP/TLS support, load balancing, asynchronous processing, and more. A fictional VoIP provider is used to explain OpenSIPS and by the end of the book, you will have a simple but complete system to run a VoIP provider.
Table of Contents (21 chapters)
Building Telephony Systems with OpenSIPS Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Installing MySQL support


To save the users and location information in a database, OpenSIPS will need to be configured with a database such as MySQL. Before you proceed, it is important to verify that you have MySQL installed and the opensips-mysql module compiled and installed.

In Chapter 3, Installing OpenSIPS, we compiled OpenSIPS with MySQL support. Check the lib directory for the db_mysql.so module.

Some additional tasks have to be done before you can use OpenSIPS with MySQL.

The following are the step-by-step instructions to create a database using the opensipsdbctl command and change the opensips.cfg file to allow the authentication of the REGISTER and INVITE requests:

  1. Verify the existence of the db_mysql.so module in the directory:

    For 32 bit:

    ls /lib/opensips/modules/db_mysql.so
    

    For 64 bit:

    ls /lib64/opensips/modules/db_mysql.so
    

    If the module does not exist, compile OpenSIPS with MySQL support. The path depends on the installation prefix. For 64-bit systems, check lib64 instead of lib...