Documentation

Documentation.Migration-3-4-0-to-3-5-0 History

Hide minor edits - Show changes to markup

May 08, 2024, at 09:50 PM by 109.98.45.173 -
Changed lines 51-52 from:
  • consider using the new set_via_handling instead of force_rport(), add_local_report() or force_tcp_alias() (which are to be deprecated in the future)
to:
  • consider using the new set_via_handling() instead of force_rport(), add_local_report() or force_tcp_alias() (which are to be deprecated in the future)
Changed lines 64-65 from:
  • renamed into DBops module
to:

This module does not exist anymore. All its functions were re-distributed and replaced as follows:

  • avp_db_load/store/delete() functions were moved and renamed as sql_avp_load/store_delete() in the sqlops module
  • avp_db_query() function was moved and renamed as sql_query() in the sqlops module
  • avp_remove() function was removed, as it can be replaced with scripting $avp(x):=NULL
  • avp_pushto() function was removed, as it can be replaced with scripting assignment operation
  • avp_check() function was removed, as it can be replaced with scripting testing operators
  • avp_copy() function was removed, as it can be replaced with scripting assignment operation
  • avp_subst() function was removed, as it can be replaced with scripting {re.subst} transformation
  • avp_op() function was removed, as it can be replaced with scripting operations
  • is_avp_set() function was removed, as it can be replaced with scripting if ($avp(x)==NULL) {}
  • avp_shuffle() function was moved under the shuffle_avps() name into the cfgutils module
  • avp_print() function was moved to the OpenSIPS core under the same name
Changed line 78 from:
  • BE CAREFUL, the DOUBLE types are now returned as strings, rather than corrupted numerical values.
to:
  • BE CAREFUL, the DOUBLE types are now returned as strings, rather than corrupted numerical values.
May 08, 2024, at 09:30 PM by 109.98.45.173 -
Changed lines 35-37 from:
  • example
to:
  • none
Changed line 51 from:
  • example
to:
  • consider using the new set_via_handling instead of force_rport(), add_local_report() or force_tcp_alias() (which are to be deprecated in the future)
February 28, 2024, at 12:27 PM by 109.99.227.30 -
Changed lines 8-9 from:

You can find the all the new additions in the 3.5.0 release compiled under this page. The ChangeLog may help your understanding of the migration / update process.

to:

You can find the all the new additions in the 3.5.0 release compiled under this page. The ChangeLog may help your understanding of the migration / update process.

Deleted lines 66-68:

CACHEDB_LOCAL module

  • added cache_fetch_chunk("keyprefix*", collection) MI function
Changed line 68 from:
  • the DOUBLE types are now returned as strings, rather than corrupted numerical values.
to:
  • BE CAREFUL, the DOUBLE types are now returned as strings, rather than corrupted numerical values.
February 27, 2024, at 11:20 AM by 109.99.227.30 -
Added lines 66-68:

CACHEDB_LOCAL module

  • added cache_fetch_chunk("keyprefix*", collection) MI function
February 27, 2024, at 11:13 AM by 109.99.227.30 -
Changed lines 64-65 from:

B2B_LOGIC module

  • example
to:

AVPOPS module

  • renamed into DBops module

SQL_CACHER module

  • the DOUBLE types are now returned as strings, rather than corrupted numerical values.
August 03, 2023, at 03:03 PM by razvancrainea -
Deleted lines 67-69:

AUTH modules

August 03, 2023, at 03:02 PM by razvancrainea -
Changed line 40 from:
  • example
to:
  • The mpath parameter can take several values. This means that if your script contains several declarations, and you rely on the fact that only the last one is being used, you need to completely delete (or comment) the previous ones, otherwise they will be taken into account in the modules search algorithm, and moreover, they will be prioritized.
May 17, 2023, at 03:00 PM by liviu -
Changed line 1 from:
Documentation -> Migration -> Migration from 3.3.x to 3.4.0
to:
Documentation -> Migration -> Migration from 3.4.x to 3.5.0
Changed lines 6-9 from:

This section is meant to provide useful help in migrating your OpenSIPS installations from the 3.3.0 version to 3.4.0.

You can find the all the new additions in the 3.4.0 release compiled under this page. The ChangeLog may help your understanding of the migration / update process.

to:

This section is meant to provide useful help in migrating your OpenSIPS installations from the 3.4.0 version to 3.5.0.

You can find the all the new additions in the 3.5.0 release compiled under this page. The ChangeLog may help your understanding of the migration / update process.

Changed line 15 from:

You can migrate your 3.3.x MySQL DB to the 3.4.x format using the opensips-cli tool :

to:

You can migrate your 3.4.x MySQL DB to the 3.5.x format using the opensips-cli tool :

Changed line 17 from:
   # opensips-cli -x database migrate 3.3_to_3.4 opensips_3_3 opensips_3_4
to:
   # opensips-cli -x database migrate 3.4_to_3.5 opensips_3_4 opensips_3_5
Changed lines 20-23 from:
  • opensips_3_3 is the existing DB name corresponding to version 3.3.x format
  • opensips_3_4 is the DB name to be created for 3.4.x format
to:
  • opensips_3_4 is the existing DB name corresponding to version 3.4.x format
  • opensips_3_5 is the DB name to be created for 3.5.x format
Deleted lines 39-46:
  • log_facility has been deprecated and replaced with syslog_facility.
  • log_name has been deprecated and replaced with syslog_name.
  • log_stderror has been deprecated and is now equivalent with setting the new stderror_enabled and syslog_enabled parameters as following:
    • log_stderror=yes - stderror_enabled=yes and syslog_enabled=no (default)
    • log_stderror=no - stderror_enabled=no and syslog_enabled=yes.

Core Variables

Added lines 42-45:

Core Variables

  • example
Deleted lines 55-61:
  • the output of the list_blacklists rules have changed to improve readability:
    • owner - now a string
    • expire - indicates the number of seconds until the rule expires
    • proto - printed as string protocol, or "any"

Statistics migration

Added lines 58-61:

Statistics migration

  • example
Deleted lines 64-78:
  • The flags of the b2b_bridge() function have been renamed as following:
    • n to notify
    • f to rollback-failed
    • t[nn] to max_duration=[int].
  • The flags of the b2b_init_request() function have been renamed as following:
    • a to transparent-auth
    • p to preserve-to
    • t[nn] to setup-timeout=[nn]
  • The init_sdp_body and init_sdp_ctype parameters of the b2b_init_request() function have been dropped.
  • The use_init_sdp module parameter has been dropped.

CFGUTILS module

  • the 'ts_usec_delta()' 5th parameter has changed

CGRateS module

Deleted lines 66-83:

DIALOG module

  • The val parameter of store_dlg_value() is now a variable.
  • the first parameter, idx of the set_dlg_flag(), test_and_set_dlg_flag(), reset_dlg_flag(), is_dlg_flag_set() functions is now a static string.
  • The $DLG_flags variable now returns a list of flag names separted by space instead of a single integer value.

MID_REGISTRAR module

  • Check the module docs for the flags parameters of the mid_registrar_save() and mid_registrar_lookup() functions for the mapping between the old and new flag names.

NATHELPER module

  • Check the module docs for the flags parameters of the fix_nated_sdp() and nat_uac_test() functions for the mapping between the old and new flag names.

REGISTRAR module

  • Check the module docs for the flags parameters of the save() and lookup() functions for the mapping between the old and new flag names.

TM module

  • Check the module docs for the flags parameter of the t_relay() function for the mapping between the old and new flag names.
Changed line 70 from:
  • NEW package available in the repos: opensips-auth-modules, containing both the auth and uac_auth modules, mainly due to their extra dependency on a TLS library to be present on the system (e.g. OpenSSL or WolfSSL)
to:
May 17, 2023, at 01:02 AM by rvlad_patrascu -
Changed lines 40-44 from:
  • example
to:
  • log_facility has been deprecated and replaced with syslog_facility.
  • log_name has been deprecated and replaced with syslog_name.
  • log_stderror has been deprecated and is now equivalent with setting the new stderror_enabled and syslog_enabled parameters as following:
    • log_stderror=yes - stderror_enabled=yes and syslog_enabled=no (default)
    • log_stderror=no - stderror_enabled=no and syslog_enabled=yes.
May 15, 2023, at 01:49 PM by liviu -
Changed line 106 from:
  • NEW package available in the repos: opensips-auth-modules, containing both the auth and uac_auth modules, mainly due to their extra dependency on a TLS library to be present on the system (e.g. OpenSSL or WolfSSL)
to:
  • NEW package available in the repos: opensips-auth-modules, containing both the auth and uac_auth modules, mainly due to their extra dependency on a TLS library to be present on the system (e.g. OpenSSL or WolfSSL)
May 15, 2023, at 01:49 PM by liviu -
Changed line 106 from:
  • NEW package available in the repos: opensips-auth-modules, containing both the auth and uac_auth modules, mainly due to their extra dependency on a TLS library (e.g. OpenSSL or WolfSSL)
to:
  • NEW package available in the repos: opensips-auth-modules, containing both the auth and uac_auth modules, mainly due to their extra dependency on a TLS library to be present on the system (e.g. OpenSSL or WolfSSL)
May 15, 2023, at 01:48 PM by liviu -
Changed line 106 from:
  • the auth and uac_auth module are now part of a new package, opensips-auth-modules, mainly due to their extra dependency on a TLS library (e.g. OpenSSL or WolfSSL)
to:
  • NEW package available in the repos: opensips-auth-modules, containing both the auth and uac_auth modules, mainly due to their extra dependency on a TLS library (e.g. OpenSSL or WolfSSL)
May 15, 2023, at 01:47 PM by liviu -
Changed lines 101-106 from:
  • Check the module docs for the flags parameter of the t_relay() function for the mapping between the old and new flag names.
to:
  • Check the module docs for the flags parameter of the t_relay() function for the mapping between the old and new flag names.

Packaging migration

AUTH modules

  • the auth and uac_auth module are now part of a new package, opensips-auth-modules, mainly due to their extra dependency on a TLS library (e.g. OpenSSL or WolfSSL)
April 28, 2023, at 04:44 PM by rvlad_patrascu -
Changed lines 88-101 from:
  • The $DLG_flags variable now returns a list of flag names separted by space instead of a single integer value.
to:
  • The $DLG_flags variable now returns a list of flag names separted by space instead of a single integer value.

MID_REGISTRAR module

  • Check the module docs for the flags parameters of the mid_registrar_save() and mid_registrar_lookup() functions for the mapping between the old and new flag names.

NATHELPER module

  • Check the module docs for the flags parameters of the fix_nated_sdp() and nat_uac_test() functions for the mapping between the old and new flag names.

REGISTRAR module

  • Check the module docs for the flags parameters of the save() and lookup() functions for the mapping between the old and new flag names.

TM module

  • Check the module docs for the flags parameter of the t_relay() function for the mapping between the old and new flag names.
April 28, 2023, at 03:41 PM by rvlad_patrascu -
Changed line 88 from:
  • The $DLG_flags variable now returns a list of flag names separted by space instead of a single integer value).
to:
  • The $DLG_flags variable now returns a list of flag names separted by space instead of a single integer value.
April 28, 2023, at 03:35 PM by rvlad_patrascu -
Changed lines 86-88 from:
  • The val parameter of store_dlg_value() is now a variable.
to:
  • The val parameter of store_dlg_value() is now a variable.
  • the first parameter, idx of the set_dlg_flag(), test_and_set_dlg_flag(), reset_dlg_flag(), is_dlg_flag_set() functions is now a static string.
  • The $DLG_flags variable now returns a list of flag names separted by space instead of a single integer value).
April 28, 2023, at 03:22 PM by rvlad_patrascu -
Changed lines 83-86 from:
  • example
to:
  • example

DIALOG module

  • The val parameter of store_dlg_value() is now a variable.
April 27, 2023, at 06:29 PM by rvlad_patrascu -
Changed line 68 from:
  • The flags of the b2b_bridge_retry() function have been renamed as following:
to:
  • The flags of the b2b_bridge() function have been renamed as following:
Changed line 72 from:
  • The flags of the b2b_bridge_retry() function have been renamed as following:
to:
  • The flags of the b2b_init_request() function have been renamed as following:
Added lines 76-77:
  • The init_sdp_body and init_sdp_ctype parameters of the b2b_init_request() function have been dropped.
  • The use_init_sdp module parameter has been dropped.
April 27, 2023, at 06:22 PM by rvlad_patrascu -
Added lines 66-75:

B2B_LOGIC module

  • The flags of the b2b_bridge_retry() function have been renamed as following:
    • n to notify
    • f to rollback-failed
    • t[nn] to max_duration=[int].
  • The flags of the b2b_bridge_retry() function have been renamed as following:
    • a to transparent-auth
    • p to preserve-to
    • t[nn] to setup-timeout=[nn]
April 20, 2023, at 01:08 PM by liviu -
Added lines 67-68:

CFGUTILS module

  • the 'ts_usec_delta()' 5th parameter has changed
October 28, 2022, at 04:59 PM by razvancrainea -
Changed line 56 from:
  • the output of the https://www.opensips.org/Documentation/Interface-CoreMI-3-4#list_blacklists rules have changed to improve readability:
to:
  • the output of the list_blacklists rules have changed to improve readability:
October 28, 2022, at 04:43 PM by razvancrainea -
Changed lines 56-59 from:
  • example
to:
  • the output of the https://www.opensips.org/Documentation/Interface-CoreMI-3-4#list_blacklists rules have changed to improve readability:
    • owner - now a string
    • expire - indicates the number of seconds until the rule expires
    • proto - printed as string protocol, or "any"
May 18, 2022, at 04:14 PM by liviu -
Added lines 1-66:
Documentation -> Migration -> Migration from 3.3.x to 3.4.0

This page has been visited 659 times. (:toc-float Table of Contents:)


This section is meant to provide useful help in migrating your OpenSIPS installations from the 3.3.0 version to 3.4.0.

You can find the all the new additions in the 3.4.0 release compiled under this page. The ChangeLog may help your understanding of the migration / update process.

Make sure you don't carry a left-over Makefile.conf file in your OpenSIPS source tree if migrating to a new branch! This configuration file, generated by make menuconfig, is usually not compatible with the one of a previous major release!


DB migration

You can migrate your 3.3.x MySQL DB to the 3.4.x format using the opensips-cli tool :

   # opensips-cli -x database migrate 3.3_to_3.4 opensips_3_3 opensips_3_4

where :

  • opensips_3_3 is the existing DB name corresponding to version 3.3.x format
  • opensips_3_4 is the DB name to be created for 3.4.x format

See the opensips-cli documentation for more details.

NOTE:

  • the old database will not be deleted, altered or changed - it will not be touched at all
  • new database will be created and data from old DB will be imported into it

(:toc-back Back to Table of Contents:)


Script migration

The following is the full list of backwards-incompatible syntax or functional changes in the OpenSIPS configuration script:

  • example

Global Parameters

  • example

Core Variables

  • example

Core keywords

  • example

Core functions

  • example

Core MI commands

  • example

Statistics migration

  • example

Module migration

CGRateS module

  • example

Page last modified on May 08, 2024, at 09:50 PM