To upgrade from Kamailio 4.1 to 4.2
- If Enswitch is at version 3.12 or earlier, first upgrade to 3.13 or later.
- If upgrading from a Kamailio version prior to 4.1.x then apply any database and configuration changes from the 4.0 upgrade first.
- Install files:
- mv /lib/kamailio /lib/kamailio-41
- enswitch install -u kamailio
- Recreate location table with new columns (all existing telephone registrations will be lost):
- enswitch kamailio_tables # only needs done on one machine
- Update configuration to 4.2:
- vi /etc/kamailio/kamailio.cfg # and change kamailio_41 to kamailio_42.cfg
- If using a custom kamailio_42.cfg then update the configuration by adding the following lines:
- modparam( "usrloc", "expires_type", 1 )
- Set System -> Configuration -> "Location expires format" to "integer".
- Restart Kamailio:
- enswitch restart
- Check the Kamailio log for errors and test calls.