Install OpenSips on Debian Lenny 5.0

Lets put this one down as well. It is a very straight forward procedure using apt-get and the opensips repo.

First edit apt sources file and add the new repo

nano /etc/apt/sources.list
deb http://www.opensips.org/apt/ lenny main

Run an Update

apt-get update
apt-get upgrade

Download the Prerequisits

apt-get install gcc bison flex make openssl libmysqlclient-dev /
libradiusclient-ng2 libradiusclient-ng-dev mysql-server libxmlrpc-c3-dev

And install opensips + all the modules

apt-get install opensips opensips-mysql-module opensips-postgres-module opensips-unixodbc-module /
opensips-jabber-module opensips-cpl-module opensips-radius-modules opensips-presence-modules /
opensips-xmlrpc-module opensips-perl-modules opensips-snmpstats-module opensips-xmpp-module /
opensips-carrierroute-module opensips-berkeley-module opensips-ldap-modules opensips-geoip-module /
opensips-regex-module opensips-identity-module opensips-b2bua-module opensips-dbhttp-module opensips-console

If you need MySQL support and a DB to store various info about registrations etc. Do the following

Edit opensipsctlrc

nano /etc/opensips/opensipsctlrc

Comment out the type of DB, the dbname and user and passes to be created:

## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT,
## by default none is loaded
# If you want to setup a database with opensipsdbctl, you must at least specify
# this parameter.
 DBENGINE=MYSQL
## database host
 DBHOST=localhost
## database name (for ORACLE this is TNS name)
 DBNAME=opensips
# database path used by dbtext or db_berkeley
# DB_PATH="/usr/local/etc/opensips/dbtext"
## database read/write user
 DBRWUSER=opensips
## password for database read/write user
 DBRWPW="opensipsrw"
## database read only user
 DBROUSER=opensipsro
## password for database read only user
 DBROPW=opensipsro

No create the database provided you know all the credentials of you MySQL

opensipsdbctl create

And there it is. Off you go and create your own config.

Comments are closed.