- Resolve Dependencies
- Download latest opensips from www.opensips.org or for opensips-1.10beta use the following command
- Use "tar -zxvf" to extract opensips tar file
- go into the directory
- make the configuration file
- Select the modules to be loaded
- If you want to configure opensips with Database then do the changes in the following file
- Go to Install prefix directory
/usr/local/sbin/
For Ubuntu
$ apt-get install build-essential openssl bison flex mysql-server libmysqlclient16 libmysqlclient-dev libsctp-dev openssl libssl-dev libradiusclient-ng-dev libxml2-dev libxml2 libconfuse0 libconfuse-dev libdb-dev libcurl4-gnutls-dev libcurl3 libpostgresql-ocaml-dev libpq-dev unixodbc-dev libpcre3-dev libexpat1-dev libjson0-dev libmemcached-dev libmemcache-dev libxmlrpc-c3-dev libgeoip-dev python-dev libsnmp-dev
For CentoOS
yum groupinstall "Development Tools"
yum install ncurses-devel.x86_64 libmicrohttpd-devel.x86_64 openssl openssl-devel.x86_64
$ wget http://opensips.org/pub/opensips/latest/src/opensips-1.10_src.tar.gz
$ tar -zxvf opensips-1.10_src.tar.gz
$ cd opensips-1.10.0beta-tls
$ make menuconfig
--> Configure Compile Options
--> Configure Excluded Modules
--> Configure Install Prefix
/usr/local/
--> Save Changes
--> Compile And Install OpenSIPS
--> Exit & Save All Changes
$ vim /usr/local/etc/opensips/opensipsctlrc
# 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="opensips"
$ ./opensipsdbctl create
$ ./opensipsctl start
********************************* PROBLEMS ***********************************
evi/../lock_alloc.h:60:2: error: #error "locking requires shared memory support"
Add line following line in Makefile
DEFS+= -DSHM_MEM
Enjoy ;)
No comments:
Post a Comment