Module: kamailio
Branch: master
Commit: 2372dc933926611dad22812e0d550ae736249a06
URL:
https://github.com/kamailio/kamailio/commit/2372dc933926611dad22812e0d550ae…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-05-12T14:05:27+02:00
Merge pull request #2323 from voiceip/keepalive-rpc-change
keepalive: update rpc response to include current state
---
Modified: src/modules/keepalive/keepalive_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2372dc933926611dad22812e0d550ae…
Patch:
https://github.com/kamailio/kamailio/commit/2372dc933926611dad22812e0d550ae…
---
diff --git a/src/modules/keepalive/keepalive_rpc.c
b/src/modules/keepalive/keepalive_rpc.c
index 8d9a84a428..3a72b31474 100644
--- a/src/modules/keepalive/keepalive_rpc.c
+++ b/src/modules/keepalive/keepalive_rpc.c
@@ -96,6 +96,7 @@ static void keepalive_rpc_list(rpc_t *rpc, void *ctx)
_dtime = ctime(&dest->last_down);
_dtime[strlen(_dtime) - 1] = '\0';
rpc->struct_add(sub, "s", "last down", _dtime);
+ rpc->struct_add(sub, "d", "state", (int) dest->state);
}
return;