If not using Kamailio, or if Kamailio will be active on just one server at a time (the normal for high availability systems), skip this page. If in doubt please contact support.

When running multiple active Kamailio servers at the same time it's recommended to install the "rm_expired_delay" patch, to prevent database replication from becoming out of sync.

Devices registering to the same telephone line number must register to the same Kamailio server, because calls inbound to the telephone line will only be sent to the Kamailio which had the most recent registration.

Systems running Kamailio 4.2:

  • cd /usr/src/<kamailio version>
  • wget https://download.integrics.com/kamailio/kamailio-4.2-usrloc-rm_expired_delay.patch
  • patch -p1 -i kamailio-4.2-usrloc-rm_expired_delay.patch
  • enswitch install -u kamailio[-ha]
  • cp /opt/enswitch/current/etc/kamailio/kamailio_42.cfg /etc/kamailio/kamailio_multiple_active.cfg

Systems running Kamailio 5.0:

  • cd /usr/src/<kamailio version>
  • wget https://download.integrics.com/kamailio/kamailio-5.0-usrloc-rm_expired_delay.patch
  • patch -p1 -i kamailio-5.0-usrloc-rm_expired_delay.patch
  • enswitch install -u kamailio[-ha]
  • cp /opt/enswitch/current/etc/kamailio/kamailio_50.cfg /etc/kamailio/kamailio_multiple_active.cfg

Edit /etc/kamailio/kamailio_multiple_active.cfg and add the following line below the other modparam lines:

  • modparam( "usrloc", "rm_expired_delay", 300 )

Update /etc/kamailio/kamailio.cfg and replace the existing include_file line with:

  • include_file "/etc/kamailio/kamailio_multiple_active.cfg"

Restart Kamailio:

  • service kamailio restart