Skip to content

Commit

Permalink
dialog: restore SDP and advertised contacts
Browse files Browse the repository at this point in the history
Reported by @jpyle490 on GitHub. Close #2275
  • Loading branch information
razvancrainea committed Oct 13, 2020
1 parent 312fd3f commit 56e9411
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/dialog/dlg_db_handler.c
Expand Up @@ -745,17 +745,16 @@ static int load_dialog_info_from_db(int dlg_hash_size)
}


if (restore_reinvite_pinging(dlg) != 0)
LM_ERR("failed to fetch some Re-INVITE pinging data\n");
if (dlg_has_reinvite_pinging(dlg)) {
/* re-populate Re-INVITE pinging fields */
if (restore_reinvite_pinging(dlg) != 0)
LM_ERR("failed to fetch some Re-INVITE pinging data\n");
else if (0 != insert_reinvite_ping_timer(dlg))
if (0 != insert_reinvite_ping_timer(dlg))
LM_CRIT("Unable to insert dlg %p into reinvite"
"ping timer\n", dlg);
else {
else
/* reference dialog as kept in reinvite ping timer list */
ref_dlg(dlg, 1);
}
}

if ((rc = fetch_dlg_value(dlg, &shtag_dlg_val, &tag_name, 0)) == 0) {
Expand Down

0 comments on commit 56e9411

Please sign in to comment.