To upgrade from Kamailio 4.2 or earlier to 5.0
- 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-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)
- Update database:
- enswitch sql "update version set table_version=8 where table_name='location'"
- Update configuration:
- vi /etc/kamailio/kamailio.cfg # and change kamailio_42.cfg (or version in use) 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.