Book Image

Building Telephony Systems with OpenSIPS 1.6

By : Flavio E. Goncalves
Book Image

Building Telephony Systems with OpenSIPS 1.6

By: Flavio E. Goncalves

Overview of this book

<p>SIP is the most important VoIP protocol and OpenSIPS is clearly the open source leader in VoIP platforms based on pure SIP. The whole telecommunication industry is changing to an IP environment, and telephony in the way we know today will disappear 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.<br /><br />This book will give you a competitive edge by helping you to create a SIP infrastructure capable of handling tens of thousands of subscribers. You can extend the examples given in this book easily to other applications such as a SIP router, load balancing, IP PBX, and Hosted PBX as well. This book is an update of the title Building Telephony Systems with OpenSER.<br /><br />The book starts with the simplest configuration and evolves chapter by chapter teaching you how to add new features and modules. It will first teach you the basic concepts of SIP and SIP routing. Then, you will start applying the theory by installing OpenSIPS and creating the configuration file. You will learn about features such as authentication, PSTN connectivity, user portals, media server integration, billing, NAT traversal, and monitoring. The book uses a fictional VoIP provider to explain OpenSIPS. The idea is to have a simple but complete running VoIP provider by the end of the book.&nbsp;</p>
Table of Contents (17 chapters)
Building Telephony Systems with OpenSIPS 1.6
Credits
About the Author
About the Reviewers
Preface
Index

Installation of opensips-cp


The step-by-step instructions to install opensips-cp in a server with Debian 5.0 are as follows:

Note

Installation instructions change very often. For updates, check the opensips-cp project's website at http://opensips-cp.sourceforge.net/.

Step 1: Install Apache and PHP as follows:

apt-get install apache2 php5

Step 2: Install php5-mysql and php5-xmlrpc packages, and set the right parameters in the php.ini file. (It has been done for you to save time.)

apt-get install php5-mysql php5-xmlrpc php-pear
vi /etc/php5/apache2/php.ini

Please verify that you have set the short_open_tag = On ; option in your php.ini file.

Step 3: Download opensips-cp and untar the file.

Download opensips-cp from http://opensips-cp.sourceforge.net/index.php?req=download (or copy from DVD) and copy the opensip-cp_3.0.tgz file to /var/www as follows:

cd /var/www
wget http://sourceforge.net/projects/opensips-cp/files/opensips-cp/3.0/opensips-cp_3.0.tgz/download
tar –xzvf opensips-cp_3.0.tgz
chown...