Skip to content

How To: Install Opensips 1.6.0 on CentOS 4.8

by Jon on November 16th, 2009

Recently I went to install Opensips on CentOS 4.8 and I ran into a bunch of dependencies that it needed to install so I though I would share instructions. I will first go thorough the installation of all the dependencies then move onto the Opensips install.

Before we get into it I want to list the modules this installation applies to since I don’t install all modules by default. In order to change what modules you are installing modify the Makefile in the Opensips source directory, here is the default module list.

exclude_modules?= b2b_logic jabber cpl-c xmpp rls mi_xmlrpc xcap_client \ db_mysql db_postgres db_unixodbc db_oracle db_berkeley aaa_radius \
osp perl snmpstats perlvdb carrierroute mmgeoip \
presence presence_xml presence_mwi presence_dialoginfo \
pua pua_bla pua_mi pua_usrloc pua_xmpp pua_dialoginfo \
ldap h350 identity regex memcached db_http json

Here is what modules I exclude by default by simply removing the following from the above section.

exclude_modules?= b2b_logic jabber cpl-c xmpp rls xcap_client \
db_postgres db_unixodbc db_oracle db_berkeley aaa_radius \
osp perl perlvdb mmgeoip \
presence presence_xml presence_mwi presence_dialoginfo \
ldap h350 identity regex memcached db_http json

The list of modules below are the installed when removed from the Makefile.

pua pua_bla pua_mi pua_usrloc pua_xmpp pua_dialoginfo carrierroute snmpstats db_mysql mi_xmlrpc

So to install these modules on CentOS 4.8 the following dependencies must be isntalled first. Lets use yum to install the easy ones then there are a couple we must install from source.

yum install -y curl-devel bind-utils system-config-securitylevel kernel kernel-devel kernel-smp-devel kernel-smp openssl-devel openssl gcc gcc-c++ gtk+ gtk+-devel libtermcap-devel newt-devel ncurses-devel mysql mysql-server mysql-devel mysql-server-devel flex bison net-snmp net-snmp-libs net-snmp-devel lib-xml2 lib-xml2-devel

Once those are installed then its time to move onto the source installed dependencies which are libconfuse and xml-rpc-c.

First lets download and install libconfuse.

wget http://bzero.se/confuse/confuse-2.6.tar.gz
tar zxf confuse-2.6.tar.gz
cd confuse-2.6/
./configure
make
make install

Next download and install xml-rpc-c.

wget http://downloads.sourceforge.net/project/xmlrpc-c/Xmlrpc-c%20Super%20Stable/1.06.38/xmlrpc-c-1.06.38.tgz?use_mirror=voxel
tar zxf xmlrpc-c-1.06.38.tgz
./configure
make
make install

Now all the dependencies have been installed its time to move onto the Opensips install. Before you use the “./configure” command make sure to change the modules in the exclude list within the Makefile. Any text editor will work I prefer to use nano but vi will also do the trick.

wget http://opensips.org/pub/opensips/latest/src/opensips-1.6.0-tls_src.tar.gz
tar zxf opensips-1.6.0-tls_src.tar.gz
cd opensips-1.6.0-tls
./configure
make prefix=/ all
make prefix=/ install

All done, now Opensips is installed. You can now access the config file at /etc/opensips/opensips.cfg and make changes as needed. By default the Opensips config file does not have any security so be sure to make security changes to the file before using it for production use.

From → VOIP

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

%d bloggers like this: