To upgrade from Kamailio 4.2 to 5.0

  1. If Enswitch is at version 3.13 or earlier, first upgrade to 3.14 or later.
  2. If Kamailio is at version 4.1 or earlier, first upgrade to 4.2.
  3. If running Debian or Ubuntu, do:
    • apt-get install libunistring-dev
  4. If running CentOS, Fedora, or Redhat, do:
    • yum install libunistring-devel
  5. Install files:
    • mv /lib/kamailio /lib/kamailio-42 || mv /lib64/kamailio /lib64/kamailio-42
    • enswitch install -u kamailio (standalone version)
    • enswitch install -u kamailio-ha (if using Heartbeat)
    • enswitch install -u kamailio-cp (if using Corosync & Pacemaker)
  6. Update database:
    • enswitch sql "update version set table_version=8 where table_name='location'"
  7. Update configuration to 5.0:
    • vi /etc/kamailio/kamailio.cfg # and change kamailio_42.cfg to kamailio_50.cfg
  8. 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
  9. Restart Kamailio:
    • enswitch restart
  10. Check the Kamailio log for errors and test calls.