diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c index 0078ee74683..61e4b0cbcfb 100644 --- a/src/modules/dialog/dialog.c +++ b/src/modules/dialog/dialog.c @@ -114,7 +114,6 @@ int dlg_noack_timeout = 60; int dlg_end_timeout = 300; int dlg_enable_dmq = 0; -int dlg_update_all_states = 1; int dlg_event_rt[DLG_EVENTRT_MAX]; str dlg_event_callback = STR_NULL; @@ -328,7 +327,6 @@ static param_export_t mod_params[]={ { "h_id_start", PARAM_INT, &dlg_h_id_start }, { "h_id_step", PARAM_INT, &dlg_h_id_step }, { "keep_proxy_rr", INT_PARAM, &dlg_keep_proxy_rr }, - { "update_all_states", INT_PARAM, &dlg_update_all_states }, { 0,0,0 } }; diff --git a/src/modules/dialog/dlg_db_handler.c b/src/modules/dialog/dlg_db_handler.c index df43c7e6185..13254696758 100644 --- a/src/modules/dialog/dlg_db_handler.c +++ b/src/modules/dialog/dlg_db_handler.c @@ -81,7 +81,6 @@ static db1_con_t* dialog_db_handle = 0; /* database connection handle */ static db_func_t dialog_dbf; extern int dlg_enable_stats; -extern int dlg_update_all_states; extern int dlg_h_id_start; extern int dlg_h_id_step; @@ -816,7 +815,7 @@ int update_dialog_dbinfo_unsafe(struct dlg_cell * cell) &sflags_column, /*18*/ &toroute_name_column, /*19*/ &req_uri_column, /*20*/ &xdata_column, /*21*/ &iflags_column /*22*/ }; - if((dlg_update_all_states == 0) && (cell->statestate==DLG_STATE_DELETED)) { + if(cell->statestate==DLG_STATE_DELETED) { LM_DBG("not storing dlg in db during initial or deleted states\n"); return 0; } diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml index 1940a968e3e..987bd545450 100644 --- a/src/modules/dialog/doc/dialog_admin.xml +++ b/src/modules/dialog/doc/dialog_admin.xml @@ -82,8 +82,7 @@ 5 : Deleted dialog - The early and deleted dialog states are updated in database storage, - unless deactivated with the update_all_states parameter. + The early and deleted dialog states are not updated in database storage. @@ -1641,39 +1640,6 @@ modparam("dialog", "keep_proxy_rr", 1) - -
- <varname>update_all_states</varname> (string) - - When enabled the dialog modules will also synchronize the - early and deleted dialog states to the database. This is - useful in failover situations, but of course will generate - more load to the database from this module. - - - Valid values are: - - - - 0 - Don't synchronize early and deleted dialogs - - - 1 - Synchronize early and deleted dialogs - - - - Default value is 1. - - - Set <varname>update_all_states</varname> parameter - -... -modparam("dialog", "update_all_states", 1) -... - - -
-