To upgrade from OpenSIPS or OpenSER to Kamailio on a single machine

  1. Do:
    • cpan Math::BigInt::FastCalc
    • enswitch install kamailio
    • vi /etc/kamailio/kamailio.cfg # and set the database URL
    • service openser stop
    • service opensips stop
    • enswitch kamailio_tables
    • service kamailio restart
  2. If running Debian or Ubuntu, do:
    • rm -f /etc/init.d/opensips /etc/init.d/openser
    • update-rc.d openser remove
    • update-rc.d opensips remove
  3. If running CentOS, Fedora, or Redhat, do:
    • chkconfig openser off
    • chkconfig opensips off
    • rm -f /etc/init.d/opensips /etc/init.d/openser

To upgrade from OpenSIPS or OpenSER to Kamailio on a pair of machines running heartbeat

Do each command on both machines before continuing to the next command.

  1. Do, on both machines simultaneously:
    • cpan Math::BigInt::FastCalc
    • enswitch install kamailio-ha
    • vi /etc/kamailio/kamailio.cfg # and set the database URL
    • service heartbeat stop
    • vi /etc/ha.d/haresources # and change "opensips" or "openser" to "kamailio"
    • enswitch kamailio_tables # only needs done on one machine
    • service heartbeat start
    • rm /etc/ha.d/resource.d/opensips /etc/ha.d/resource.d/openser
  2. Test a failover and fail back.

Should you need to revert to OpenSIPS, the table_version for location is 1004.