Skip to content

Commit

Permalink
Do not replicate dialog termination if dialog creation was not done (…
Browse files Browse the repository at this point in the history
… failed calls )

(cherry picked from commit 0705a29)
  • Loading branch information
vladpaiu committed Aug 18, 2014
1 parent d171022 commit 59a0360
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/dialog/dlg_hash.c
Expand Up @@ -910,9 +910,12 @@ void next_state_dlg(struct dlg_cell *dlg, int event, int dir, int *old_state,

dlg_unlock( d_table, d_entry);

if (!is_replicated && replication_dests && dlg->state == DLG_STATE_DELETED)
if (!is_replicated && replication_dests &&
(*old_state == DLG_STATE_CONFIRMED_NA || *old_state == DLG_STATE_CONFIRMED) &&
dlg->state == DLG_STATE_DELETED)
replicate_dialog_deleted(dlg);


LM_DBG("dialog %p changed from state %d to "
"state %d, due event %d\n",dlg,*old_state,*new_state,event);
}
Expand Down

0 comments on commit 59a0360

Please sign in to comment.