Module: kamailio Branch: master Commit: 6522dae83990add388720b8a3ef1ee59514e65a2 URL: https://github.com/kamailio/kamailio/commit/6522dae83990add388720b8a3ef1ee59...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/6522dae83990add388720b8a3ef1ee59... Patch: https://github.com/kamailio/kamailio/commit/6522dae83990add388720b8a3ef1ee59...
---
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: