Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:1.3.x-to-1.4.0 [2011/08/31 06:26] – 109.254.49.8 | install:1.3.x-to-1.4.0 [2011/08/31 10:21] (current) – 92.112.59.125 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Migrating OpenSER v1.3.x to Kamailio v1.4.0 ====== | ||
+ | |||
+ | Due to trademark issues, on July 28, 2008, [[http:// | ||
+ | |||
+ | At the end of the document is the part presenting new things in v1.4.0. | ||
+ | ===== Renaming Matrix ===== | ||
+ | |||
+ | The relation between old and new names of the files provided by KAMAILIO (OPENSER). | ||
+ | |||
+ | ^ Old Name ^ New Name ^ Description ^ | ||
+ | | openser | kamailio | Binary of the SIP routing application | | ||
+ | | openser.cfg | kamailio.cfg | Configuration file | | ||
+ | | openserctl | kamctl | Command line tool for management | | ||
+ | | openserdbctl | kamdbctl | Command line tool to create and manage database | | ||
+ | | openserctlrc | kamctlrc | Configuration file for command line tools | | ||
+ | | openser.8 | kamailio.8 | Man page | | ||
+ | | openser.cfg.5 | kamailio.cfg.5 | Man page for configuration file | | ||
+ | |||| | ||
+ | |||
+ | ===== Changes in the configuration file ===== | ||
+ | |||
+ | ==== Preserve configuration files ==== | ||
+ | |||
+ | After installation of Kamailio (OPENSER) 1.4.0 from packages | ||
+ | |||
+ | * move / | ||
+ | * move / | ||
+ | |||
+ | |||
+ | If installed from sources: | ||
+ | |||
+ | * move / | ||
+ | * move / | ||
+ | ==== Updates in configuration file ==== | ||
+ | |||
+ | * change path to modules | ||
+ | |||
+ | < | ||
+ | # when installed from packages | ||
+ | old value: mpath="/ | ||
+ | new value: mpath="/ | ||
+ | |||
+ | # when installed from sources | ||
+ | old value: mpath="/ | ||
+ | new value: mpath="/ | ||
+ | </ | ||
+ | |||
+ | Note: if you use a 64bit architecture, | ||
+ | |||
+ | * update the name of database modules. These module have now the format: [b]db_name[/ | ||
+ | < | ||
+ | # for mysql | ||
+ | old value: loadmodule " | ||
+ | new value: loadmodule " | ||
+ | # for postgres | ||
+ | old value: loadmodule " | ||
+ | new value: loadmodule " | ||
+ | </ | ||
+ | |||
+ | Module parameters for database URL have still the format < | ||
+ | |||
+ | < | ||
+ | old value: modparam(" | ||
+ | new value (the same): modparam(" | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Updates in database scheme ==== | ||
+ | |||
+ | The following SQL statements (for MySQL) can be used to convert a 1.3.x database to the new scheme. Please not that new tables (e.g. for carrierroute, | ||
+ | |||
+ | < | ||
+ | UPDATE version SET table_version=2 WHERE table_name=' | ||
+ | UPDATE version SET table_version=2 WHERE table_name=' | ||
+ | UPDATE version SET table_version=7 WHERE table_name=' | ||
+ | UPDATE version SET table_version=3 WHERE table_name=' | ||
+ | UPDATE version SET table_version=6 WHERE table_name=' | ||
+ | UPDATE version SET table_version=2 WHERE table_name=' | ||
+ | |||
+ | ALTER TABLE carrierroute ADD flags INT(11) UNSIGNED DEFAULT 0 NOT NULL AFTER scan_prefix; | ||
+ | ALTER TABLE carrierroute ADD mask INT(11) UNSIGNED DEFAULT 0 NOT NULL AFTER flags; | ||
+ | ALTER TABLE carrierroute CHANGE comment description VARCHAR(255) DEFAULT NULL; | ||
+ | |||
+ | ALTER TABLE route_tree DROP PRIMARY KEY; | ||
+ | ALTER TABLE route_tree CHANGE id id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL; | ||
+ | |||
+ | ALTER TABLE dispatcher ADD flags INT DEFAULT 0 NOT NULL AFTER destination; | ||
+ | |||
+ | ALTER TABLE domainpolicy CHANGE comment description VARCHAR(255) NOT NULL; | ||
+ | |||
+ | ALTER TABLE gw CHANGE prefix tag VARCHAR(16) DEFAULT NULL; | ||
+ | ALTER TABLE gw CHANGE dm flags INT UNSIGNED DEFAULT 0 NOT NULL; | ||
+ | |||
+ | ALTER TABLE presentity ADD sender VARCHAR(128) NOT NULL; | ||
+ | |||
+ | ALTER TABLE pua ADD remote_contact VARCHAR(128) NOT NULL AFTER contact; | ||
+ | |||
+ | ALTER TABLE re_grp CHANGE group_id group_id INT(11) DEFAULT 0 NOT NULL; | ||
+ | |||
+ | ALTER TABLE sip_trace CHANGE date time_stamp DATETIME DEFAULT ' | ||
+ | </ | ||
+ | |||
+ | ===== New in v1.4.0 ===== | ||
+ | |||
+ | ==== New in Kamailio(OpenSER) modules ==== | ||
+ | |||
+ | * [b]acc module[/b] | ||
+ | ** extension: it is possible to log accounting related output to a different log facility | ||
+ | * [b]cfgutils module[/b] | ||
+ | ** new FIFO functions get_config_hash and check_config_hash for config file checks | ||
+ | ** shared PV exported to configuration script | ||
+ | **debugging helpers usable from config script for abort, shm_status and pkg_status | ||
+ | * [b]mysql module[/b] | ||
+ | ** extension: enable timeouts on connect, read and write to prevent blocking on errors | ||
+ | * [b]database modules[/b] | ||
+ | ** renaming of all database modules, addition of the prefix ' | ||
+ | * [b]ratelimit module[/b] (new module ported from ser with openims enhancements) | ||
+ | ** suitable for traffic shaping control and server load control | ||
+ | *[b]carrierroute module[/b] | ||
+ | ** extension: much more flexibility in routing and database supported failure routing, improved internal structure | ||
+ | *[b]dialog module[/b] | ||
+ | ** internal API reworked for better flexibility | ||
+ | ** direction of the message provided via the internal API | ||
+ | ** new dialog callback types: | ||
+ | *** DLGCB_LOADED | ||
+ | *** DLGCB_DESTROY | ||
+ | *** DLGCB_RESPONSE_WITHIN | ||
+ | *** DLGCB_MI_CONTEXT | ||
+ | ** new mi command: dlg_list_ctx | ||
+ | *[b]enum module[/ | ||
+ | ** enum_fquery([...]) replaced by enum_pv_query(" | ||
+ | *[b]db_oracle module[/b] | ||
+ | ** new database module for native access of oracle databases | ||
+ | *[b]userblacklist module[/b] | ||
+ | ** new module for user specific and global URI blacklists | ||
+ | * [b]msilo module[/b] | ||
+ | ** notification system refurbished - message body, content-type, | ||
+ | * [b]pdt module[/b] | ||
+ | ** accepts now same destination domain bound to different prefixes | ||
+ | ** internal structures and logic optimized for memory and performance | ||
+ | * [b]lcr module[/b] | ||
+ | ** refactor module functions | ||
+ | ** add pseudo-variable support | ||
+ | ** remove gw_grp table | ||
+ | * [b]peering module[/b] | ||
+ | ** new module for radius setups | ||
+ | ** allowing SIP providers to verify via a broker if source or destination request is from a trusted peer | ||
+ | * [b] new mediaproxy module[/b] | ||
+ | ** update to version 2.0 | ||
+ | ** better performance and scalability as packets are forward in kernel space | ||
+ | |||
+ | ==== New in Kamailio(OpenSER) core ==== | ||
+ | |||
+ | * [b]Overhauled DB API[/b] -- uses now the ' | ||
+ | * [b]Extensive cleanups in database drivers[/b] -- integrate common functionality into the core for more stability and maintainability | ||
+ | * [b]SDP parser[/b] -- provides an internal API for parsing SDP | ||
+ | * [b]fixup functions[/ | ||
+ | * [b]extended module interface[/ | ||
+ | |||
+ | ==== New in Kamailio(OpenSER) utilities ==== | ||
+ | |||
+ | * [b]Removal of SERWEB[/b] -- the SERWEB specific parts were removed from the openserdbctl, | ||
+ | * [b]openserctl for dbtext[/b] -- add SQL support to dbtext using a python module and integrate it into openserctl to better support this database | ||
+ | |||
+ | ==== New in Kamailio(OpenSER) documentation ==== | ||
+ | |||
+ | * [b]Module documentation[/ | ||
+ | * [b]Developer guide[/b] -- a developer guide has been added to repository | ||
+ | |||
+ | |||
+ | ==== New in Kamailio(OpenSER) Testing Suite ==== | ||
+ | |||
+ | * [b]Stability improvements[/ | ||
+ | * [b]Extensions[/ | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | |||
+ | |||