We can help you installing OpenSIPS
, but if you would like to install it by yourself, here you can find a way that should help. Let's see the way how you can install OpenSIPS on CentOS.
All software dependencies can be installed via yum, if you going to use several modules with OpenSIPS, then the packages are depends on the modules what you intend to use from OpenSIPS. For example you will need to install pcre-devel package if you going to use regexps.
This howto will walk you through the installing process for OpenSIPS with MySQL support.
When you are done with it, it's the time to grab OpenSIPS directly from their website. Just change directory to /usr/src.
yum -y install wget gcc bison flex zlib-devel openssl-devel mysql-server mysql-devel
Let's go and unzip the file.
Unzip the file
tar -xzf opensips-1.10.0_src.tar.gz
Okay, how we have the directory opensips-1.10.0 under /usr/src, let's start compiling the beast
But first change directory to /usr/src/opensips-1.10.10. Personally I don't prefer editing makefiles directly, so I'll go my on way to compile OpenSIPS
Making the modules
make include_modules="db_mysql" modules
We are almost done with the compile, let's go to the next step!
Installing the modules
make include_modules="db_mysql" install
Running make install
It is possible that you will need to add OpenSIPS's library path to LD config, simply change directory to /etc/ld.so.conf.d and make a file opensips.conf with the following contents(depends on your architecture, you may need to use lib64 instead of lib):
And then run ldconfig.
Now it's the time to run OpenSIPS! Run the following command:
You should see something like this:
:~# ps aux | grep opensips
root 4843 0.0 0.0 362104 5160 ? S Jun24 0:00 /usr/local/sbin/opensips -P /var/run/opensips.pid -m 256
root 4845 0.0 0.0 362104 2412 ? S Jun24 0:00 /usr/local/sbin/opensips -P /var/run/opensips.pid -m 256
root 4846 0.0 0.0 362108 1464 ? S Jun24 0:00 /usr/local/sbin/opensips -P /var/run/opensips.pid -m 256
Well done! By default, OpenSIPS'd default configuration file is placed under /usr/local/etc/opensips. There are a tons of documents and cookbooks to help you with progrmaming OpenSIPS, for example: OpenSIPS Tutorials
But we are always here to help! If you would like to save yourself the time and the flustration of learning this whole new SIP technology, just contact us
and ask us a quote for setting up your new OpenSIPS server. We have a lot of experience in OpenSIPS, so we have no problem to help you out!
Your suggestions are always welcome!
We want to say thank you for your continued liking and sharing. If you haven’t liked this post yet, you may do that by hitting the buttons just below.
If you are a blogger and you appreciate the hard work, whether or not you copied this post, we implore you to kindly link back this post here
, you may do it anyhow you can. We consider that a great contribution.