Tuesday, 23 September 2014

Installing OpenIMSCore on Ubuntu

First install the prerequisites for OpenIMSCore

sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install bison
sudo apt-get install curl
sudo apt-get install debhelper cdbs lintian build-essential fakeroot devscripts pbuilder dh-make debootstrap dpatch flex libxml2-dev libmysqlclient15-dev ant docbook-to-man
sudo apt-get install ipsec-tools
sudo apt-get install subversion
sudo apt-get install mysql-server-5.5

To install JDK 7:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

#It'll keep your java 7 installation up to date.

#To automatically set up the Java 7 environment variables JAVA_HOME and PATH:

sudo apt-get install oracle-java7-set-default

------ Download openIMScore-------------------
sudo mkdir /opt/OpenIMSCore
cd /opt/OpenIMSCore

sudo mkdir ser_ims
sudo svn checkout https://svn.code.sf.net/p/openimscore/code/ser_ims/trunk/

------- problem on ubuntu 12 and solve it by this code----------------

sudo sed -i '/include <curl\/types.h>/d' ser_ims/lib/lost/client.h

------ installing IMScore-------
cd ser_ims
sudo make install-libs all
cd ..

------------- Compile FHoSS----------
sudo mkdir FHoSS
sudo svn checkout https://svn.code.sf.net/p/openimscore/code/FHoSS/trunk/ FHoSS

cd FHoSS
sudo ant compile deploy
sudo sed -i 's/JAVA_HOME\/bin\/java/JAVA_HOME\/usr\/bin\/java/g' deploy/startup.sh
cd ..

--------------- Copy databases to sql server---------
mysql -u root -p -h localhost < ser_ims/cfg/icscf.sql
mysql -u root -p -h localhost < FHoSS/scripts/hss_db.sql
mysql -u root -p -h localhost < FHoSS/scripts/userdata.sql

---- Configure DNS--------------
- To install DNS on ubuntu
sudo apt-get install bind9
sudo cp ser_ims/cfg/open-ims.dnszone /etc/bind/

sudo sed -i '3azone "open-ims.test" {\n\ttype master;\n\tfile "\/etc\/bind\/open-ims.dnszone";\n};' /etc/bind/named.conf.local

sudo sed -i '2a127.0.0.1\topen-ims.test mobicents.open-ims.test ue.open-ims.test presence.open-ims.test icscf.open-ims.test scscf.open-ims.test pcscf.open-ims.test hss.open-ims.test' /etc/hosts

- To restart DNS server
sudo /etc/init.d/bind9 restart
------------- copy start up files-------------
sudo cp ser_ims/cfg/*.cfg ./
sudo cp ser_ims/cfg/*.xml ./
sudo cp ser_ims/cfg/*.sh ./

------ Start up your servers----------
sudo ./pcscf.sh
sudo ./scscf.sh
sudo ./icscf.sh
cd FHoSS/deploy
sudo sh startup.sh

----- to access the FHoSS use this URL----------


  1. Thanks for posting , i did install open-ims successfully by following the post.

  2. Thank you so much. I successfully installed open-ims core with this instructions (on Ubuntu 14.04). It took me 1 hour and 10 minutes).

  3. hi
    i follow your instruction but i fail to install it correctly
    I cant configure the server SSH spcf and iscf with thes command
    Start up your servers----------
    sudo ./pcscf.sh
    sudo ./scscf.sh
    sudo ./icscf.sh

    i need help

  4. Hello,
    Your tuto is very good.
    But I have some problem.
    When I do ./pcscf.sh or ./icscf.sh or ./scscf.sh. I get errors.

    (20306) parse error; load_module: could not open module :lib_ser_cds.so: connot open shared object file: No such file or diretory
    set_mod_param_regex: No module maching found

  5. It looks like this module did not compile "lib_ser_cds". What's the dist and linux version?

  6. This comment has been removed by the author.