Module: kamailio Branch: master Commit: a821ff61029a4e8a9f220d60f95bd7b5a545f9b4 URL: https://github.com/kamailio/kamailio/commit/a821ff61029a4e8a9f220d60f95bd7b5...
Author: Dmitri Savolainen savolainen@erinaco.ru Committer: Dmitri Savolainen savolainen@erinaco.ru Date: 2018-04-16T19:32:05+03:00
dialog: restore keep-alive after restart
---
Modified: src/modules/dialog/dlg_db_handler.c
---
Diff: https://github.com/kamailio/kamailio/commit/a821ff61029a4e8a9f220d60f95bd7b5... Patch: https://github.com/kamailio/kamailio/commit/a821ff61029a4e8a9f220d60f95bd7b5...
---
diff --git a/src/modules/dialog/dlg_db_handler.c b/src/modules/dialog/dlg_db_handler.c index 2a3e4301ad..eb1d97d7b7 100644 --- a/src/modules/dialog/dlg_db_handler.c +++ b/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 */