Migration from 4.0.x to 4.1.x
This section is meant to provide useful help in migrating your OpenSIPS installations from the 4.0.x version to 4.1.x.
You can find the all the new additions in the 4.1 release compiled under this page. The ChangeLog may help your understanding of the migration / update process.
DB migration
Section titled “DB migration”You can migrate your 4.0.x MySQL DB to the 4.1.x format using the opensips-cli tool :
$ opensips-cli -x database migrate 4.0_to_4.1 opensips_4_0 opensips_4_1where :
- opensips_4_0 is the existing DB name corresponding to version 4.0.x format
- opensips_4_1 is the DB name to be created for 4.1.x format
See the opensips-cli documentation for more details.
Script migration
Section titled “Script migration”The following is the full list of backwards-incompatible syntax or functional changes in the OpenSIPS configuration script:
- none
Global Parameters
Section titled “Global Parameters”- The provisioning framework is now configured globally with the new
pi_frameworkcore parameter. Ifpi_httpis used, move the framework path frommodparam("pi_http", "framework", "...")to:The provisioning MI commands are now core commands: usepi_framework = "/path/to/pi_framework.xml"pi_listto inspect the framework andpi_reloadto reload it. The oldpi_reload_tbls_and_cmds/pi_http:reload_tbls_and_cmdscommands should no longer be used.
Core Variables
Section titled “Core Variables”- example
Core keywords
Section titled “Core keywords”- example
Core functions
Section titled “Core functions”- example
Statistics migration
Section titled “Statistics migration”- example
Modules migration
Section titled “Modules migration”PI_HTTP module
Section titled “PI_HTTP module”- The
frameworkmodule parameter has been removed. Configure the framework with the globalpi_frameworkcore parameter instead. - The provisioning MI commands have moved to core. Replace
pi_reload_tbls_and_cmdsandpi_http:reload_tbls_and_cmdswith the core commandspi_listandpi_reload.