Module: kamailio
Branch: master
Commit: 2fcfc6666621cd8108de251eb5cfba48f365d2c6
URL:
https://github.com/kamailio/kamailio/commit/2fcfc6666621cd8108de251eb5cfba4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2018-04-16T19:18:48+02:00
Merge pull request #1501 from snen/fix_dialog_options_restart
dialog: restore keep-alive after restart
---
Modified: src/modules/dialog/dlg_db_handler.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2fcfc6666621cd8108de251eb5cfba4…
Patch:
https://github.com/kamailio/kamailio/commit/2fcfc6666621cd8108de251eb5cfba4…
---
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 */