User Tools

Site Tools


Note: This document is now (2021) outdated, as the IMS packages have been integrated into the common Kamailio repository

Note: This document is work in progress and yet unfinished!

This is a short installation howto for Debian Wheezy (stable).

This installation howto has been derived from here:

General preparations

We recommend, you install all components into a dedicated virtual machine. In our lab we use OpenVz-Containers, but you can also use any other virtual environment.

If you are not familiar with OpenVz or any other, please try Proxmox or similar.

Installation of the DNS-Server

Important note: A properly configured DNS-Server is mandatory for IMS, just adding according entries in your /etc/hosts/ will not be enough!

If you are running the DNS on your own machine then edit the file /etc/dhcp3/dhclient.conf and uncomment this line:

prepend domain_name_servers;

Copy the open-ims-DNS file to the bind folder and add these lines to /etc/bind/named.conf.local:

zone "" {
            type master;
            file "/etc/bind/";

You can find a very basic dnszone-file in “examples/ims_dnszone”-folder of the Kamailio repository

You will need to restart bind for these changes to take effect.

/etc/init.d/bind9 restart

Check that this all works. Try a ping and see if you get a response:


If you can not ping by DNS address, try:


If the DNS address resolved to IP address currectly. You may need to update your “/etc/nsswitch.conf” file according to this question on SO.. After that modification you should be able to ping by DNS address.

Installation of the Kamailio-IMS-Packages

Configuration of the repository (All nodes)

First, install the Key for our repository:

wget -O - | apt-key add -

Then add the repository to your “/etc/apt/sources.list”:

echo "deb jessie ims rtpproxy" >> /etc/apt/sources.list


  • The repository is 64 Bit only
  • we do have packages for Debian 7, Debian 8 (jessie) and Ubuntu LTS (trusty)
  • the packages are updated regularly from trunk

And update the available packets:

apt-get update

Installation of Proxy-/Interrogating-/Serving-CSCF Binary packages

Install the modules:

apt-get install kamailio kamailio-ims-modules kamailio-presence-modules kamailio-tls-modules kamailio-xml-modules kamailio-xmlrpc-modules

If you want to have an RTP-Proxy/RTP-Relay, you find the “mediaproxy-ng” from Sipwise in that repository as well,

apt-get install ngcp-mediaproxy-ng

For I-CSCF you will also need a database structure:

mysql -uroot -p < icscf.sql

(on the database server)

Configuration of the network entities

You find the according configs in the examples folder of Kamailio (Trunk). For the Proxy-CSCF, use the configurations in examples/pcscf, for the Interrogating-CSCF in examples/icscf/, for the Serving-CSCF in examples/scscf/.

The configuration for each server consists of minimum two files:

  • kamailio.cfg - the main configuration-file (general for each entity)
  • pcscf.cfg / icscf.cfg / scscf.cfg - inidividual configurations for the P-/I-/S-CSCF (everything, that's individual per server)
  • pcscf.xml / icscf.xml / scscf.xml - Diameter configurations

Copy the required config files to your /etc/kamailio/-folder, adapt the config in the pcscf.cfg/pcscf.xml to your needs (change “” and the IP to your domain/IP, please remember also the escaped versions of the domain and the IP, e.g. “pcscf\.ng-voice\.com). For components with Diameter-Interface (e.g. I-/S-CSCF) you will need to modify the according XML-files, e.g. “pcscf.xml”).

Finally, you should edit the ”/etc/default/kamailio“-File, in order to run the component.

Now the Component should be able to start:

pcscf:/# /etc/init.d/kamailio start
Starting kamailio: kamailioloading modules under /usr/lib/kamailio/modules:/usr/lib/kamailio/modules_s:/usr/lib/kamailio/modules_k
Listening on
         tcp: pcscf:5060
         udp: pcscf:5060

And voila: Your component is running!

Installation of the Fraunhofer HSS

The Fraunhofer HSS (FHoSS) requires the original Java from Oracle/Sun. Using OpenJDK won't work.

Install Sun Java (on Lenny)

Note: You will need to add the “non-free” packages to your repository:

deb lenny main non-free
deb lenny/updates main non-free

Install Oracle Java (on Squeeze)

Oracle Java is no longer available in the official repository. However, there are several ways to install Oracle Java, here is one possible way:


Install the FHoSS-Packages

Add our repository to your ”/etc/apt/sources.list“:

echo "deb wheezy fhoss" >> /etc/apt/sources.list

Install the FHoSS from our repository:

apt-get install openimscore-fhoss

Create the data in the database:

mysql -uroot -p < /etc/fhoss/sql_files/hssdb.sql

Add some sample data, if you like:

mysql -uroot -p < /etc/fhoss/sql_files/userdata.sql

The Webinterface should be reachable on port “8080″.

The following config files (/etc/fhoss) may be of interest:

  • DiameterPeerHSS.xml: The Diameter Interconnects and listening IP definition
  • The listening IP definition for the Web-Interface
  • The database interconnection for the HSS
  • conf/tomcat-users.xml: Usernames and Passwords for the Web-User (default Username is: “hssAdmin” and password “hss”)
  • Note: You will need to restart the FHoSS (“/etc/init.d/openimscore-fhoss restart”) in order to apply changes.
tutorials/ims/installation-howto.txt · Last modified: 2021/12/23 09:08 by henningw