Module: kamailio Branch: 5.3 Commit: a5c4f47b30131193439c64738652d454a5b04404 URL: https://github.com/kamailio/kamailio/commit/a5c4f47b30131193439c64738652d454...
Author: Luis Martin Gil luismartingil@zaleos.net Committer: Henning Westerholt hw@skalatan.de Date: 2020-10-02T14:11:46Z
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/a5c4f47b30131193439c64738652d454... Patch: https://github.com/kamailio/kamailio/commit/a5c4f47b30131193439c64738652d454...
---
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; } }