To upgrade from Kamailio 4.2 or earlier to 5.0

  1. If running Debian or Ubuntu, do:
    • apt-get install libunistring-dev
  2. If running CentOS, Fedora, or Redhat, do:
    • yum install libunistring-devel
  3. Install files:
    • mv /lib/kamailio /lib/kamailio-old || mv /lib64/kamailio /lib64/kamailio-old
    • enswitch install -u kamailio (standalone version)
    • enswitch install -u kamailio-ha (if using Heartbeat)
    • enswitch install -u kamailio-cp (if using Corosync & Pacemaker)
  4. Update database:
    • enswitch sql "update version set table_version=8 where table_name='location'"
  5. Update configuration:
    • vi /etc/kamailio/kamailio.cfg # and change kamailio_42.cfg (or version in use) to kamailio_50.cfg
  6. Optionally, enable the no-NAT SIP port 5065 in /etc/kamailio/kamailio.cfg. This can be used with SIP origination providers who have issues with NAT handling. Don't forget to open port 5065 in the firewall:
    • listen xx.xx.xx.xx:5060
    • listen xx.xx.xx.xx:5065
  7. Restart Kamailio:
    • enswitch restart
  8. Check the Kamailio log for errors and test calls.