To upgrade from Kamailio 3.x or 4.0 to 4.1

  1. If Enswitch is at version 3.6 or earlier, first upgrade to 3.7 or later.
  2. Install files:
    • mv /lib/kamailio /lib/kamailio-40
    • enswitch install -u kamailio
  3. If upgrading from Kamailio 3.x then update database:
    • enswitch sql "update version set table_version=5 where table_name='location'"
    • enswitch sql "alter table location add column last_modified_tmp datetime not null after last_modified"
    • enswitch sql "update location set last_modified_tmp=from_unixtime( last_modified )"
    • enswitch sql "alter table location drop column last_modified, change last_modified_tmp last_modified datetime not null"
  4. Update configuration to 4.1:
    • vi /etc/kamailio/kamailio.cfg # and change kamailio_3 or kamailio_4 to kamailio_41.cfg
  5. If using a custom kamailio_41.cfg then update the configuration by adding the following lines:
    • modparam( "app_perl", "reset_cycles", 200 )
    • modparam( "app_perl", "perl_destroy_func", "Integrics::Enswitch::Kamailio::restart" )
  6. Restart Kamailio:
    • enswitch restart
  7. Check the Kamailio log for errors and test calls.