Work Core
Work Core
Work Core
Step 1: Prerequisites
apt-get update
apt-get upgrade
1
LEUK 7
INSTALLATION OF IMS NETWORK CORE
Warning: If you have just installed a JDK>=1.5, check that this last version is well version is taken into
account by the system (it is possible that your system is still linked to an old still linked to an old version
of the JDK, despite the installation of a more recent JDK version).
It's done!
Remember: the initial configuration of openIMSCore only allows foroperation in localhost (at first
anyway).
Also, the default domain is "open-ims.test". It is better not to change it for the moment.
MySQL configuration:
cd /opt/OpenIMSCore/
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
DNS configuration:
A sample DNS zone file is present in the installation directory of installation directory. Copy it to your
DNS configuration directory:
cp ser_ims/cfg/open-ims.dnszone /etc/bind/
2
LEUK 7
INSTALLATION OF IMS NETWORK CORE
Edit the named.conf.local (always in /etc/bind/) to take into account this new zone (add the
following lines new zone (add the following lines):
zone "open-ims.test" {
type master;
file "/etc/bind/open-ims.dnszone";
} ;
Check that the named.conf file calls this file. To do this, the following line must be present in
named.conf:
include "/etc/bind/named.conf.local";
Add it if it is not the case.
Edit the /etc/resolv.conf file, delete (or comment out) the existing content and add the following
lines:
search open-ims.test
domain open-ims.test
nameserver 127.0.0.1
Warning: Each time the OS is restarted, this file will be overwritten by the Network Manager. So,
make a backup of this file (we will use it in our automatic server launch script, which we will script,
which we will see at the end of this tutorial):
cp /etc/resolv.conf /etc/resolv.conf.ims
127.0.0.1 localhost
127.0.0.1 open-ims.test ue.open-ims.test presence.open-ims.test
icscf.openims.test scscf.open-ims.test pcscf.open-ims.test hss.open-
ims.test
cp /etc/hosts /etc/hosts.ims
/etc/init.d/bind9 restart
Check that the configuration change has been taken into account (via dig):
dig open-ims.test
3
LEUK 7
INSTALLATION OF IMS NETWORK CORE
cd /opt/OpenIMSCore/
cp ser_ims/cfg/*.cfg /opt/OpenIMSCore/
cp ser_ims/cfg/*.xml /opt/OpenIMSCore/
cp ser_ims/cfg/*.sh /opt/OpenIMSCore/
Run pcscf.sh, icscf.sh and scscf.sh. These three servers must run in parallel; you can run
these three servers on the same VM. You can run these three servers on the same VM, this is not a
technical problem (however, not so good in terms of performance)
Keep the terminals open, you should be able to observe all the traffic between these servers.
FHoSS server:
cd FHoSS/deploy
./startup.sh
It is possible that you get an error when launching the script; in this case, it is most likely related to
the environment variable JAVA_HOME. Check that this variable has been correctly exported. If this is
not the case, run the following command in a terminal:
export JAVA_HOME=”/usr/lib/jvm/java-1.7.0-openjdk-i386”
Modify the path according to your tree structure. Moreover, it is also possible that this variable is
overwritten at each reboot of the machine.
http://localhost:8080/
- Login: hssAdmin
- Password: hss
#!/bin/bash
echo "-- Files configuration --"
4
LEUK 7
INSTALLATION OF IMS NETWORK CORE
echo ""
echo "-- Writting in resolv.conf"
cp /etc/resolv.conf.ims /etc/resolv.conf
echo "-- End of writting in resolv.conf"
echo ""
echo "-- Writting in hosts --"
cp /etc/hosts.ims /etc/hosts
echo "End of writting in hosts --"
echo ""
echo"-- Restart bind9 server --"
/etc/init.d/bind9 restart
export JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk-i386"
export PATH=$JAVA_HOME/bin:$PATH
mkdir /var/run/opensips
chmod 777 /var/run/opensips
echo""
echo"-- Starting Server x-cscf and FHoSS"
gnome-terminal \
--tab -e "bash -c 'cd /opt/OpenIMSCore && sudo ./pcscf.sh';bash" \
--tab -e "bash -c 'cd /opt/OpenIMSCore && sudo ./icscf.sh';bash" \
--tab -e "bash -c 'cd /opt/OpenIMSCore && sudo ./scscf.sh';bash" \
--tab -e "bash -c 'cd /opt/OpenIMSCore/FHoSS/deploy && ./startup.sh';bash"