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

Author: Dmitri Savolainen <savolai...@erinaco.ru>
Committer: Dmitri Savolainen <savolai...@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/a821ff61029a4e8a9f220d60f95bd7b5a545f9b4.diff
Patch: 
https://github.com/kamailio/kamailio/commit/a821ff61029a4e8a9f220d60f95bd7b5a545f9b4.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 */


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to