Skip to content

Commit

Permalink
dialog: Propagate new $DLG_timeout values to DB/BIN
Browse files Browse the repository at this point in the history
Make sure to store/replicate the new value, not the old one!

Credits to Vlad Patrascu for helping track this down

(cherry picked from commit d948aa0)
  • Loading branch information
liviuchircu committed Feb 28, 2019
1 parent 4675b9e commit 524495d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/dialog/dialog.c
Expand Up @@ -1664,12 +1664,6 @@ int pv_set_dlg_timeout(struct sip_msg *msg, pv_param_t *param,

dlg_unlock_dlg(dlg);

if (db_update)
update_dialog_timeout_info(dlg);

if (dialog_replicate_cluster)
replicate_dialog_updated(dlg);

if (timer_update) {
switch ( update_dlg_timer(&dlg->tl, timeout) ) {
case -1:
Expand All @@ -1684,6 +1678,12 @@ int pv_set_dlg_timeout(struct sip_msg *msg, pv_param_t *param,
}
}

if (db_update)
update_dialog_timeout_info(dlg);

if (dialog_replicate_cluster)
replicate_dialog_updated(dlg);

} else if (current_processing_ctx) {
/* store it until we match the dialog */
ctx_timeout_set( timeout );
Expand Down

0 comments on commit 524495d

Please sign in to comment.