[sr-dev] git:master:2fcfc666: Merge pull request #1501 from snen/fix_dialog_options_restart

GitHub noreply at github.com
Mon Apr 16 19:18:53 CEST 2018


Module: kamailio
Branch: master
Commit: 2fcfc6666621cd8108de251eb5cfba48f365d2c6
URL: https://github.com/kamailio/kamailio/commit/2fcfc6666621cd8108de251eb5cfba48f365d2c6

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at 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/2fcfc6666621cd8108de251eb5cfba48f365d2c6.diff
Patch: https://github.com/kamailio/kamailio/commit/2fcfc6666621cd8108de251eb5cfba48f365d2c6.patch

---

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 */




More information about the sr-dev mailing list