Skip to content

Commit

Permalink
dialog: do not replicate update messages on early
Browse files Browse the repository at this point in the history
This suppresses some errors generated by incomplete replicate messages
(missing callee socket, tags, etc.)

(cherry picked from commit 7dd023c)
  • Loading branch information
razvancrainea committed Dec 20, 2018
1 parent 4c08620 commit ee93282
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/dialog/dlg_replication.c
Expand Up @@ -599,6 +599,11 @@ void replicate_dialog_updated(struct dlg_cell *dlg)


dlg_lock_dlg(dlg);
if (dlg->state < DLG_STATE_CONFIRMED_NA) {
LM_DBG("not replicating update in state %d (%.*s)\n", dlg->state,
dlg->callid.len, dlg->callid.s);
goto end;
}
if (dlg->state == DLG_STATE_DELETED) {
/* we no longer need to update anything */
LM_WARN("not replicating dlg update message due to bad state %d (%.*s)\n",
Expand Down

0 comments on commit ee93282

Please sign in to comment.