Module: kamailio
Branch: master
Commit: f748835d507c9f2a7f231efa10ce65f42d77831d
URL:
https://github.com/kamailio/kamailio/commit/f748835d507c9f2a7f231efa10ce65f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-06-11T21:15:59+02:00
Merge pull request #2352 from kamailio/feature/keepalive-new-state-log-feedback
keepalive: logging state of dest just if changed
---
Modified: src/modules/keepalive/keepalive_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f748835d507c9f2a7f231efa10ce65f…
Patch:
https://github.com/kamailio/kamailio/commit/f748835d507c9f2a7f231efa10ce65f…
---
diff --git a/src/modules/keepalive/keepalive_core.c
b/src/modules/keepalive/keepalive_core.c
index 4daa57908d..36cf81aef1 100644
--- a/src/modules/keepalive/keepalive_core.c
+++ b/src/modules/keepalive/keepalive_core.c
@@ -119,7 +119,6 @@ static void ka_options_callback(
ka_dest->counter++;
}
- LM_DBG("new state is: %d\n", state);
if(state != ka_dest->state) {
ka_run_route(msg, &uri, state_routes[state]);
@@ -127,6 +126,7 @@ static void ka_options_callback(
ka_dest->statechanged_clb(&ka_dest->uri, state, ka_dest->user_attr);
}
+ LM_DBG("new state is: %d\n", state);
ka_dest->state = state;
}
if(ka_dest->response_clb != NULL) {