To upgrade from Kamailio 4.1 to 4.2

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