User Tools

Site Tools


install:upgrade:stable-to-devel

This is an old revision of the document!


Upgrade Kamailio from v4.1.x to v4.2.0 (devel)

The page contains the details about the changes that were made to old components during the development of v4.2.0 compared with what existed in v4.1.x. It does not include the brand new modules, focusing on how to upgrade database and configuration file from v4.1.x to run with Kamailio devel.

Previous Stable Release

If you look for the guidelines to upgrade to previous stable release, see:

Modules

usrloc

  • default value for hash_size is 10 (1024 slots) (informational - no action required in old config)

Core

Parameters

Changes to default values:

  • pkg (private) memory size: 8MB (informational - no action required in old config)

Database

MySQL

Old Tables

Run following SQL statements in MySQL client to upgrade database structure from v4.1 to v4.2:

-- table: acc
ALTER TABLE acc CHANGE COLUMN sip_reason sip_reason VARCHAR(128) DEFAULT '' NOT NULL;
DELETE FROM version WHERE TABLE_NAME='acc';
INSERT INTO version (`table_name`, `table_version`) VALUES ('acc','5');
 
-- table: dialplan
ALTER TABLE dialplan CHANGE COLUMN repl_exp repl_exp VARCHAR(64) NOT NULL; 
ALTER TABLE dialplan CHANGE COLUMN attrs attrs VARCHAR(64) NOT NULL;
DELETE FROM version WHERE TABLE_NAME='dialplan';
INSERT INTO version (`table_name`, `table_version`) VALUES ('dialplan','2');
 
-- table: missed_calls
ALTER TABLE missed_calls CHANGE COLUMN sip_reason sip_reason VARCHAR(128) DEFAULT '' NOT NULL;
DELETE FROM version WHERE TABLE_NAME='missed_calls';
INSERT INTO version (`table_name`, `table_version`) VALUES ('missed_calls','4');
install/upgrade/stable-to-devel.1412544426.txt.gz · Last modified: 2014/10/05 23:27 by miconda