Module: kamailio Branch: 5.2 Commit: e089a78000d29c7205b95f3c3594946c318855af URL: https://github.com/kamailio/kamailio/commit/e089a78000d29c7205b95f3c3594946c...
Author: Luis Martin Gil luismartingil@zaleos.net Committer: Henning Westerholt hw@skalatan.de Date: 2020-10-02T14:21:12Z
keepalive: logging state of dest just if changed
(cherry picked from commit 5649a24929ae7bd60154a6c58c772db9e462af27)
---
Modified: src/modules/keepalive/keepalive_core.c
---
Diff: https://github.com/kamailio/kamailio/commit/e089a78000d29c7205b95f3c3594946c... Patch: https://github.com/kamailio/kamailio/commit/e089a78000d29c7205b95f3c3594946c...
---
diff --git a/src/modules/keepalive/keepalive_core.c b/src/modules/keepalive/keepalive_core.c index 8d84e8902f..68a0053d58 100644 --- a/src/modules/keepalive/keepalive_core.c +++ b/src/modules/keepalive/keepalive_core.c @@ -117,7 +117,6 @@ static void ka_options_callback( ka_dest->last_up = time(NULL); }
- LM_DBG("new state is: %d\n", state); if(state != ka_dest->state) { ka_run_route(msg, &uri, state_routes[state]);
@@ -125,6 +124,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; } }