Pārlūkot izejas kodu

dialog: restore keep-alive after restart

Dmitri Savolainen 7 gadi atpakaļ
vecāks
revīzija
a821ff6102
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/modules/dialog/dlg_db_handler.c

+ 2 - 0
src/modules/dialog/dlg_db_handler.c

@@ -464,6 +464,8 @@ 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 */