[sr-dev] git:master:6522dae8: dialog: rested dialog keeplive failure counters on good reply

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 7 09:42:39 CEST 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-04-06T19:56:39+02:00

dialog: rested dialog keeplive failure counters on good reply

---

Modified: modules/dialog/dlg_req_within.c

---

Diff:  https://github.com/kamailio/kamailio/commit/6522dae83990add388720b8a3ef1ee59514e65a2.diff
Patch: https://github.com/kamailio/kamailio/commit/6522dae83990add388720b8a3ef1ee59514e65a2.patch

---

diff --git a/modules/dialog/dlg_req_within.c b/modules/dialog/dlg_req_within.c
index 8279171..c2f9772 100644
--- a/modules/dialog/dlg_req_within.c
+++ b/modules/dialog/dlg_req_within.c
@@ -292,6 +292,14 @@ void dlg_ka_cb_all(struct cell* t, int type, struct tmcb_params* ps, int dir)
 			dlg->lifetime = 10;
 			dlg->dflags |= DLG_FLAG_CHANGED;
 		}
+	} else {
+		if (dlg->state == DLG_STATE_CONFIRMED) {
+			if(dir==DLG_CALLER_LEG) {
+				dlg->ka_src_counter = 0;
+			} else {
+				dlg->ka_dst_counter = 0;
+			}
+		}
 	}
 
 done:




More information about the sr-dev mailing list