Browse code

dialog: rested dialog keeplive failure counters on good reply

Daniel-Constantin Mierla authored on 06/04/2016 17:56:39
Showing 1 changed files
... ...
@@ -292,6 +292,14 @@ void dlg_ka_cb_all(struct cell* t, int type, struct tmcb_params* ps, int dir)
292 292
 			dlg->lifetime = 10;
293 293
 			dlg->dflags |= DLG_FLAG_CHANGED;
294 294
 		}
295
+	} else {
296
+		if (dlg->state == DLG_STATE_CONFIRMED) {
297
+			if(dir==DLG_CALLER_LEG) {
298
+				dlg->ka_src_counter = 0;
299
+			} else {
300
+				dlg->ka_dst_counter = 0;
301
+			}
302
+		}
295 303
 	}
296 304
 
297 305
 done: