User Tools

Site Tools


install:upgrade:stable-to-devel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
install:upgrade:stable-to-devel [2015/04/27 09:24]
linuxmaniac [Upgrade Old MySQL Database Structure]
install:upgrade:stable-to-devel [2022/04/15 08:39] (current)
miconda
Line 1: Line 1:
-====== Upgrade Kamailio from v4.2.x to v4.3.0 (devel) ======+====== Upgrade Kamailio from v5.6.x to v5.7.0 (devel) ======
  
-The page contains the details about the changes that were made to old components during the development of v4.3.0 compared with what existed in v4.2.x. It does not include the brand new modules, focusing on how to upgrade database and configuration file from v4.2.x to run with Kamailio devel.+The page contains the details about the changes that were made to old components during the development of v5.7.0 compared with what existed in v5.6.x. It does not include the brand new modules, focusing on how to upgrade database and configuration file from v5.6.x to run with Kamailio 5.7.0.
  
 ===== Previous Stable Release ===== ===== Previous Stable Release =====
Line 7: Line 7:
 If you look for the guidelines to upgrade to previous stable release, see: If you look for the guidelines to upgrade to previous stable release, see:
  
-  * [[install:upgrade:4.1.x-to-4.2.0|Upgrade Kamailio v4.1.x to v4.2.0]]+  * [[install:upgrade:5.5.x-to-5.6.0|Upgrade Kamailio v5.5.x to v5.6.0]]
  
 ===== Remarks ===== ===== Remarks =====
Line 16: Line 16:
   * CPM - the change was used with the new value via explicit parameter in default config file from old releases   * CPM - the change was used with the new value via explicit parameter in default config file from old releases
   * RCM - the change is recommended to be done if you had an explicit different or lower value for this parameter in old config   * RCM - the change is recommended to be done if you had an explicit different or lower value for this parameter in old config
 +  * UPG - the change has to be done, older config does not work any longer
  
 ===== Modules ===== ===== Modules =====
-==== rtpengine ==== 
  
-  * rtpengine_tout parameter was replaced by rtpengine_tout_ms (CPM)+==== Upgraded Modules ====
  
-==== siptrace ====+  * none
  
-  * added totag field to sip_trace table +==== Removed Modules ====
-  * increased sip_trace table version to 4+
  
-===== Core =====+  * none
  
-==== Parameters ====+==== Renamed Modules ====
  
-===== Database =====+  * none
  
-==== MySQL Database Structure ====+===== Internal Libraries =====
  
-There are several changes to the database structure, in short: 
  
-  * location table has three new columns: server_id, connection_id, keepalive +===== Core =====
-  * presentity table has a new column: priority +
-  * sip_trace table has a new column: totag+
  
-==== Upgrade Old MySQL Database Structure ====+==== Parameters ====
  
-Run following SQL statements in MySQL client to upgrade database structure from v4.2 to v4.3:+=== Dst Blocklist Parameters ===
  
-<code sql> +All global parameters related to dst blocking are now using blocklist instead of blacklist in the name, see:
--- tablelocation +
-ALTER TABLE location ADD COLUMN server_id INT(11) DEFAULT 0 NOT NULL; +
-ALTER TABLE location ADD COLUMN connection_id INT(11) DEFAULT 0 NOT NULL; +
-ALTER TABLE location ADD COLUMN keepalive INT(11) DEFAULT 0 NOT NULL; +
-DELETE FROM version WHERE table_name='location'; +
-INSERT INTO version (`table_name`, `table_version`) values ('location','7');+
  
--- tablepresentity +  * https://www.kamailio.org/wiki/cookbooks/devel/core#blocklist_parameters
-ALTER TABLE presentity ADD COLUMN priority INT(11) DEFAULT 0 NOT NULL; +
-DELETE FROM version WHERE table_name='presentity'; +
-INSERT INTO version (`table_name`, `table_version`) values ('presentity','4');+
  
--- table: sip_trace +For example, **use_dst_blacklist** used in older versions has to be replaced by **use_dst_blocklist**. 
-ALTER TABLE sip_trace ADD COLUMN totag VARCHAR(64) DEFAULT '' NOT NULL; +==== Misc ====
-UPDATE version SET table_version='4' WHERE table_name='sip_trace';+
  
--- table: acc_cdrs +===== Database =====
--- For previous values +
--- STRING -> DATETIME ?? +
--- STRING -> FLOAT ?? +
-ALTER TABLE acc_cdrs ALTER COLUMN start_time DATETIME DEFAULT '2000-01-01 00:00:00' NOT NULL; +
-ALTER TABLE acc_cdrs ALTER COLUMN end_time DATETIME DEFAULT '2000-01-01 00:00:00' NOT NULL; +
-ALTER TABLE acc_cdrs ALTER COLUMN duration FLOAT(10,3) DEFAULT 0 NOT NULL; +
-UPDATE version SET table_version='2' WHERE table_name='acc_cdrs';+
  
--- table: silo 
-ALTER TABLE silo ALTER COLUMN body BLOB; 
-ALTER TABLE silo ALTER COLUMN extra_hdrs TEXT; 
-UPDATE version SET  table_version='8' WHERE table_name='silo'; 
  
--- table: presentity +==== MySQL Database Structure ====
-ALTER TABLE sip_presentity ADD COLUMN priority INT(11) DEFAULT 0 NOT NULL; +
-UPDATE version SET  table_version='4' WHERE table_name='presentity';+
  
--- tablesip_trace +Run following SQL statements in MySQL client to upgrade database structure from v5.6 to v5.7:
-ALTER TABLE sip_trace ADD COLUMN totag VARCHAR(64) DEFAULT '' NOT NULL; +
-UPDATE version SET  table_version='4' WHERE table_name='sip_trace'; +
- +
--- table: location +
-ALTER TABLE location ADD COLUMN server_id INT(11) DEFAULT 0 NOT NULL; +
-ALTER TABLE location ADD COLUMN connection_id INT(11) DEFAULT 0 NOT NULL; +
-ALTER TABLE location ADD COLUMN keepalive INT(11) DEFAULT 0 NOT NULL; +
-UPDATE version SET  table_version='7' WHERE table_name='location';+
  
 +<code sql>
 +...
 </code> </code>
install/upgrade/stable-to-devel.1430119463.txt.gz · Last modified: 2015/04/27 09:24 by linuxmaniac