Skip to content

Commit

Permalink
Fix missing arming of re-invite pinging for replicated dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed May 15, 2019
1 parent 63a8cf3 commit 8014056
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/dialog/dlg_replication.c
Expand Up @@ -266,6 +266,14 @@ int dlg_replicated_create(bin_packet_t *packet, struct dlg_cell *cell,
}
}

if (dlg->flags & DLG_FLAG_REINVITE_PING_CALLER || dlg->flags & DLG_FLAG_REINVITE_PING_CALLEE) {
if (insert_reinvite_ping_timer(dlg) != 0)
LM_CRIT("Unable to insert dlg %p into reinvite ping timer\n",dlg);
else {
ref_dlg_unsafe(dlg, 1);
}
}

if (dlg_db_mode == DB_MODE_DELAYED) {
/* to be later removed by timer */
ref_dlg_unsafe(dlg, 1);
Expand Down

0 comments on commit 8014056

Please sign in to comment.