To upgrade from Kamailio 4.2 to 5.0
- If Enswitch is at version 3.13 or earlier, first upgrade to 3.14 or later.
- If Kamailio is at version 4.1 or earlier, first upgrade to 4.2.
- If running Debian or Ubuntu, do:
- apt-get install libunistring-dev
- If running CentOS, Fedora, or Redhat, do:
- yum install libunistring-devel
- 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)
- Update database:
- enswitch sql "update version set table_version=8 where table_name='location'"
- Update configuration to 5.0:
- vi /etc/kamailio/kamailio.cfg # and change kamailio_42.cfg to kamailio_50.cfg
- 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
- Restart Kamailio:
- enswitch restart
- Check the Kamailio log for errors and test calls.