Documentation

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

Hide minor edits - Show changes to output

September 09, 2024, at 02:49 PM by razvancrainea -
Added lines 66-69:

!!!! Event_route module

* the '''event_route''' module has been completely dropped and merged into core. Thus, you no longer need to load the module in your script, as it will be automatically loaded at startup. In order to migrate, simply delete the '''loadmodule "event_route.so"''' line from your script.
September 06, 2024, at 02:29 PM by razvancrainea -
Added lines 66-69:

!!!! RabbitMQ module

* the '''rabbitmq''' module has been completely merged into the [[https://opensips.org/docs/modules/3.6.x/event_rabbitmq.html|'''event_rabbitmq''' module]]. In order to migrate, you need to remove the '''loadmodule "rabbitmq.so"''' line and add the '''loadmoule "event_rabbitmq.so"''' line, in case it was not previously loaded.
July 30, 2024, at 11:43 AM by razvancrainea -
Deleted lines 29-30:
(:toc-back Back to Table of Contents:)
Added lines 33-34:

(:toc-back Back to Table of Contents:)
July 30, 2024, at 11:43 AM by razvancrainea -
Changed lines 32-34 from:
!!! Table migration

!!!! Subscriber
to:
!!!! Subscriber table
July 30, 2024, at 11:42 AM by razvancrainea -
Added lines 31-36:

!!! Table migration

!!!! Subscriber

* @@email_address@@ and @@rpid@@ columns have been completely dropped from the '''subscriber''' table = if you want to preserve the columns in your setup, you need to manually add them to the new migrated table and copy the values from the old one.
July 24, 2024, at 08:13 PM by razvancrainea -
Changed line 73 from:
* On Debian and Fedora/Redhat, the opensips-berkeley-module, opensips-mysql-module, opensips-postgres-module and opensips-sqlite-module packages no longer come with the associated database schemas for each backend - instead, four new packages are being built, namely opensips-berkeley-dbschema, opensips-mysql-dbschema, opensips-postgres-dbschema and opensips-sqlite-dbschema, which contain the corresponding database schema for each backend. Since there is no cross dependency between the module and the dbschema, if one needs the schema as well, it needs to be installed the dbschema package separately. This change is being done on purpose, to be able to install the dbschema files on separate machines, and use them separately to install (for example using opensips-cli).
to:
* On Debian and Fedora/Redhat, the '''opensips-berkeley-module''', '''opensips-mysql-module''', '''opensips-postgres-module''' and '''opensips-sqlite-module''' packages no longer come with the associated database schemas for each backend - instead, four new packages are being built, namely '''opensips-berkeley-dbschema''', '''opensips-mysql-dbschema''', '''opensips-postgres-dbschema''' and '''opensips-sqlite-dbschema''', which contain the corresponding database schema for each backend. Since there is no cross dependency between the module and the dbschema, if one needs the schema as well, it needs to be installed the dbschema package separately. This change is being done on purpose, to be able to install the dbschema files on separate machines, and use them separately to install (for example using opensips-cli).
July 24, 2024, at 08:12 PM by razvancrainea -
Added lines 72-73:

* On Debian and Fedora/Redhat, the opensips-berkeley-module, opensips-mysql-module, opensips-postgres-module and opensips-sqlite-module packages no longer come with the associated database schemas for each backend - instead, four new packages are being built, namely opensips-berkeley-dbschema, opensips-mysql-dbschema, opensips-postgres-dbschema and opensips-sqlite-dbschema, which contain the corresponding database schema for each backend. Since there is no cross dependency between the module and the dbschema, if one needs the schema as well, it needs to be installed the dbschema package separately. This change is being done on purpose, to be able to install the dbschema files on separate machines, and use them separately to install (for example using opensips-cli).
July 19, 2024, at 08:56 AM by razvancrainea -
Added lines 66-69:

!!!! SIPREC module

* the @@media_ip@@ parameter in the [[https://opensips.org/docs/modules/3.6.x/siprec.html#pv_siprec|$siprec]] has been dropped, being fully replaced with the @@media@@ parameter.
June 10, 2024, at 05:27 PM by razvancrainea -
Changed line 65 from:
* paramameter [[https://opensips.org/docs/modules/3.5.x/prometheus.html#param_script_route_avp_result|script_route_avp_result]] has been dropped, and its behavior has been replaced with the newly added return values. Check the [[https://opensips.org/docs/modules/3.5.x/prometheus.html#param_script_route|script_route]] documentation for more information.
to:
* paramameter [[https://opensips.org/docs/modules/3.5.x/prometheus.html#param_script_route_avp_result|script_route_avp_result]] has been dropped, and its behavior has been replaced with the newly added return values. Check the [[https://opensips.org/docs/modules/3.6.x/prometheus.html#param_script_route|script_route]] documentation for more information.
June 10, 2024, at 05:27 PM by razvancrainea -
Changed line 1 from:
!!!!!Documentation -> [[Documentation.Migration|Migration]] -> Migration from 3.4.x to 3.5.0
to:
!!!!!Documentation -> [[Documentation.Migration|Migration]] -> Migration from 3.5.x to 3.6.x
Changed lines 6-9 from:
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 [[ About.Version-3-5-0| 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.5.x''' version to '''3.6.x'''.

You can find the all the new additions in the '''3.6''' release compiled [[ About.Version-3-6-0| under this page]]. The ChangeLog may help your understanding of the migration / update process.
Changed line 15 from:
You can migrate your 3.4.x MySQL DB to the 3.5.x format using the '''opensips-cli''' tool :
to:
You can migrate your 3.5.x MySQL DB to the 3.6.x format using the '''opensips-cli''' tool :
Changed line 17 from:
# opensips-cli -x database migrate 3.4_to_3.5 opensips_3_4 opensips_3_5
to:
# opensips-cli -x database migrate 3.5_to_3.6 opensips_3_5 opensips_3_6
Changed lines 20-23 from:
* 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

to:
* opensips_3_5 is the existing DB name corresponding to version 3.5.x format
* opensips_3_6 is the DB name to be created for 3.6.x format

Deleted lines 38-41:
* The [[https://www.opensips.org/Documentation/Script-CoreParameters-3-5#toc57|@@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.

!!!! Core Variables
Added lines 41-44:
!!!! Core Variables

* example
Deleted lines 50-53:
* consider using the new [[https://www.opensips.org/Documentation/Script-CoreFunctions-3-5#set_via_handling|set_via_handling()]] instead of force_rport(), add_local_report() or force_tcp_alias() (which are to be deprecated in the future)

!!!! Core MI commands
Added lines 53-56:
!!!! Core MI commands

* example
Changed lines 63-78 from:
!!!! AVPOPS module
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 [[https://opensips.org/html/docs/modules/3.5.x/sqlops.html|sqlops module]]
* '''avp_db_query()''' function was moved and renamed as '''sql_query()''' in the [[https://opensips.org/html/docs/modules/3.5.x/sqlops.html|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 [[https://www.opensips.org/Documentation/Script-Tran-3-5#re.subst|{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 [[https://opensips.org/html/docs/modules/3.5.x/cfgutils.html#func_shuffle_avps|shuffle_avps()]] name into the '''cfgutils''' module
* '''avp_print()''' function was moved to the OpenSIPS core under the same name

!!!! SQL_CACHER module
* '''BE CAREFUL''', the DOUBLE types are now returned as strings, rather than corrupted numerical values.
to:
!!!! Prometheus module

* paramameter [[https://opensips.org/docs/modules/3.5.x/prometheus.html#param_script_route_avp_result|script_route_avp_result]] has been dropped, and its behavior has been replaced with the newly added return values. Check the [[https://opensips.org/docs/modules/3.5.x/prometheus.html#param_script_route|script_route]] documentation for more information.
May 08, 2024, at 09:50 PM by 109.98.45.173 -
Changed lines 51-52 from:
* consider using the new [[https://www.opensips.org/Documentation/Script-CoreFunctions-3-5#set_via_handling|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 [[https://www.opensips.org/Documentation/Script-CoreFunctions-3-5#set_via_handling|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 [[https://opensips.org/html/docs/modules/3.5.x/sqlops.html|sqlops module]]
* '''avp_db_query()''' function was moved and renamed as '''sql_query()''' in the [[https://opensips.org/html/docs/modules/3.5.x/sqlops.html|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 [[https://www.opensips.org/Documentation/Script-Tran-3-5#re.subst|{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 [[https://opensips.org/html/docs/modules/3.5.x/cfgutils.html#func_shuffle_avps|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 [[https://www.opensips.org/Documentation/Script-CoreFunctions-3-5#set_via_handling|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 [[ About.Version-3-4-0| 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 [[ About.Version-3-5-0| 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 [[https://www.opensips.org/Documentation/Script-CoreParameters-3-5#toc57|@@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 -> [[Documentation.Migration|Migration]] -> Migration from 3.3.x to 3.4.0
to:
!!!!!Documentation -> [[Documentation.Migration|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 [[ About.Version-3-4-0| 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 [[ About.Version-3-4-0| 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:
* [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#log_facility|log_facility]] has been deprecated and replaced with [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#syslog_facility|syslog_facility]].
* [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#log_name|log_name]] has been deprecated and replaced with [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#syslog_name|syslog_name]].
* [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#log_stderror|log_stderror]] has been deprecated and is now equivalent with setting the new [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#stderror_enabled|stderror_enabled]] and [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#syslog_enabled|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 [[https://www.opensips.org/Documentation/Interface-CoreMI-3-4#list_blacklists|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 [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_bridge|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 [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_init_request|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 [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_init_request|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 [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_store_dlg_value|store_dlg_value()]] is now a variable.
* the first parameter, '''idx''' of the [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_set_dlg_flag|set_dlg_flag()]], [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_test_and_set_dlg_flag|test_and_set_dlg_flag()]], [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_reset_dlg_flag|reset_dlg_flag()]], [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_is_dlg_flag_set|is_dlg_flag_set()]] functions is now a static string.
* The [[https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_flags|$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 [[https://opensips.org/docs/modules/3.4.x/mid_registrar.html#func_mid_registrar_save|mid_registrar_save()]] and [[https://opensips.org/docs/modules/3.4.x/mid_registrar.html#func_mid_registrar_lookup|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 [[https://opensips.org/docs/modules/3.4.x/nathelper.html#func_fix_nated_sdp|fix_nated_sdp()]] and [[https://opensips.org/docs/modules/3.4.x/nathelper.html#func_nat_uac_test|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 [[https://opensips.org/docs/modules/3.4.x/registrar.html#func_save|save()]] and [[https://opensips.org/docs/modules/3.4.x/registrar.html#func_lookup|lookup()]] functions for the mapping between the old and new flag names.

!!!! TM module
* Check the module docs for the '''flags''' parameter of the [[https://opensips.org/docs/modules/3.4.x/tm.html#func_t_relay|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 '''[[ https://opensips.org/docs/modules/3.4.x/auth.html | auth ]]''' and '''[[ https://opensips.org/docs/modules/3.4.x/uac_auth.html | 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:
* [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#log_facility|log_facility]] has been deprecated and replaced with [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#syslog_facility|syslog_facility]].
* [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#log_name|log_name]] has been deprecated and replaced with [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#syslog_name|syslog_name]].
* [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#log_stderror|log_stderror]] has been deprecated and is now equivalent with setting the new [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#stderror_enabled|stderror_enabled]] and [[https://www.opensips.org/Documentation/Script-CoreParameters-3-4#syslog_enabled|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 '''[[ https://opensips.org/docs/modules/3.4.x/auth.html | auth ]]''' and '''[[ https://opensips.org/docs/modules/3.4.x/uac_auth.html | 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 [[https://opensips.org/docs/modules/3.4.x/tm.html#func_t_relay|t_relay()]] function for the mapping between the old and new flag names.
to:
* Check the module docs for the '''flags''' parameter of the [[https://opensips.org/docs/modules/3.4.x/tm.html#func_t_relay|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 [[https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_flags|$DLG_flags]] variable now returns a list of flag names separted by space instead of a single integer value.
to:
* The [[https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_flags|$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 [[https://opensips.org/docs/modules/3.4.x/mid_registrar.html#func_mid_registrar_save|mid_registrar_save()]] and [[https://opensips.org/docs/modules/3.4.x/mid_registrar.html#func_mid_registrar_lookup|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 [[https://opensips.org/docs/modules/3.4.x/nathelper.html#func_fix_nated_sdp|fix_nated_sdp()]] and [[https://opensips.org/docs/modules/3.4.x/nathelper.html#func_nat_uac_test|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 [[https://opensips.org/docs/modules/3.4.x/registrar.html#func_save|save()]] and [[https://opensips.org/docs/modules/3.4.x/registrar.html#func_lookup|lookup()]] functions for the mapping between the old and new flag names.

!!!! TM module
* Check the module docs for the '''flags''' parameter of the [[https://opensips.org/docs/modules/3.4.x/tm.html#func_t_relay|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 [[https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_flags|$DLG_flags]] variable now returns a list of flag names separted by space instead of a single integer value).
to:
* The [[https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_flags|$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 [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_store_dlg_value|store_dlg_value()]] is now a variable.
to:
* The '''val''' parameter of [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_store_dlg_value|store_dlg_value()]] is now a variable.
* the first parameter, '''idx''' of the [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_set_dlg_flag|set_dlg_flag()]], [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_test_and_set_dlg_flag|test_and_set_dlg_flag()]], [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_reset_dlg_flag|reset_dlg_flag()]], [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_is_dlg_flag_set|is_dlg_flag_set()]] functions is now a static string.
* The [[https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_flags|$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 [[https://opensips.org/docs/modules/3.4.x/dialog.html#func_store_dlg_value|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 [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_bridge_retry|b2b_bridge_retry()]] function have been renamed as following:
to:
* The flags of the [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_bridge|b2b_bridge()]] function have been renamed as following:
Changed line 72 from:
* The flags of the [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_init_request|b2b_bridge_retry()]] function have been renamed as following:
to:
* The flags of the [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_init_request|b2b_init_request()]] function have been renamed as following:
Added lines 76-77:
* The '''init_sdp_body''' and '''init_sdp_ctype''' parameters of the [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_init_request|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 [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_bridge_retry|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 [[https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_init_request|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 [[https://www.opensips.org/Documentation/Interface-CoreMI-3-4#list_blacklists|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 -> [[Documentation.Migration|Migration]] -> Migration from 3.3.x to 3.4.0
This page has been visited {$PageCount} 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 [[ About.Version-3-4-0| under this page]]. The ChangeLog may help your understanding of the migration / update process.

%red% 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 [[https://github.com/OpenSIPS/opensips-cli/blob/master/docs/modules/database.md#database-migration-mysql-only|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 September 09, 2024, at 02:49 PM