Skip to content

Commit

Permalink
dialog: restore keep-alive after restart
Browse files Browse the repository at this point in the history
(cherry picked from commit a821ff6)
(cherry picked from commit ffa97a1)
  • Loading branch information
snen authored and miconda committed Apr 25, 2018
1 parent 8409b45 commit 9b77b62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/dialog/dlg_db_handler.c
Expand Up @@ -426,6 +426,8 @@ static int load_dialog_info_from_db(int dlg_hash_size, int fetch_num_rows)
srjson_DestroyDoc(&jdoc);
}
dlg->iflags = (unsigned int)VAL_INT(values+22);
if (dlg->state==DLG_STATE_CONFIRMED)
dlg_ka_add(dlg);

if (!dlg->bind_addr[DLG_CALLER_LEG] || !dlg->bind_addr[DLG_CALLEE_LEG]) {
/* non-local socket, probably not our dialog */
Expand Down

0 comments on commit 9b77b62

Please sign in to comment.