diff --git a/modules/dialog/dlg_replication.c b/modules/dialog/dlg_replication.c index 83b81bbe4de..ae40838b8d6 100644 --- a/modules/dialog/dlg_replication.c +++ b/modules/dialog/dlg_replication.c @@ -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);