Documentation |
Documentation -> Migration -> Migration from 1.4.x to 1.5.xThis page has been visited 6412 times. Table of Content (hide) This section is to provide useful help in migrating your OpenSIPS installations from any release from 1.4 branch to any release from 1.5 branch. You can find the all the new additions in 1.5.x release compiled under this page. Overviewing it, may help you understanding the migration / update process. 1. DB migrationThe database structure was not affected by major changes (like changing the format existing tables). But new tables were added (corresponding to the newly added modules). The biggest change concerning the DB structure was reworking some datatypes for MYSQL - replacing varchar with char in order to speed up the DB access. You can migrate your 1.4.x DB to the 1.5.x format by using the opensipdbctl(deprecated) or osipsconsole tools: # opensipsdbctl migrate opensips_1_4 opensips_1_5 or # osipsconsole > migrate opensips_1_4 opensips_1_5 > quit # where :
NOTE:
Take care and edit (if necessary) the opensipsctlrc / '''osipsconsolerc" files if you want to customize the DB users used for accessing the new DB. NOTE that the migration tool is available only for MYSQL databases! 2. Script migration2.1 OpenSIPS core
2.2 Append_branch() usageThere is no need to call "append_branch()" function in failure_route in order to use the RURI - you still need to use it only if you want to do parallel forking. Ex: # in 1.4.x failure_route[2] if (t_check_status("408")) { # set new RURI rewritehostport("my_voicemail.com:5060"); append_branch(); t_relay(); } } -> # in 1.5.x failure_route[2] if (t_check_status("408")) { # set new RURI rewritehostport("my_voicemail.com:5060"); t_relay(); } } Affected modules (from scripting perspective) are:
After the listed functions, there is no need to call 'append_branch()' any more. 2.3 SIP replies from scriptA set of existing module do requires (as module dependency) a newly added module called "signaling". In other words, if you use one of the following module, you will need to load also the "signaling" module:
2.4 OpenSIPS modulesDB_MYSQL module
DIALOG module
TM module
REGISTRAR module
AUTH module
3. RADIUS supportAll the RADIUS module do require a new RADIUS AVP to be available in the RADIUS dictionary : "Acct-Session-Id" This AVP should be provided by the radius client lib you are using as it is a standard SIP RADIUS AVP. IF not, add to your dictionary AVP: ATTRIBUTE Acct-Session-Id 44 string # RFC2865, acc 4. Tools migrationosipsconsole, an interactive console like application will replace opensipsctl and opensipsdbctl - the console offers the save functions as the scripts it replace. It is indicated to start migrating to osipsconsole asap. |