Although it is easier to install OpenSIPS using the Debian packages, we will go through the compilation process. It is more flexible and we may need to recompile OpenSIPS a few times in this material to include other modules. The step-by-step installation process is as follows:
Step 1: Install the dependencies.
apt-get install gcc bison flex make openssl libmysqlclient-dev libradiusclient-ng2 libradiusclient-ng-dev mysql-server libxmlrpc-c3-dev
Note
The MySQL server is not really a dependency, but we will install it at this moment to make things easier.
Step 2: Download the source packages and decompress them. (Replace x with the current version.) There are two packages—tls
and no-tls
. The tls
package contains the tls
directory and some changes in the core to support encryption for the signaling.
cd /usr/src
wget http://opensips.org/pub/opensips/1.6.x/src/opensips-1.6.x-tls_src.tar.gz
tar -xzvf opensips-1.6.x-tls_src.tar.gz
Step 3: Compile and inst...