[sr-dev] git:master:7ae22f68: keepalive: update rpc response

kinshuk.bairagi me at kinshuk.in
Tue May 12 14:05:38 CEST 2020


Module: kamailio
Branch: master
Commit: 7ae22f6872cc3f74fecb0ebee797ff3f80c34fd3
URL: https://github.com/kamailio/kamailio/commit/7ae22f6872cc3f74fecb0ebee797ff3f80c34fd3

Author: kinshuk.bairagi <me at kinshuk.in>
Committer: kinshuk.bairagi <me at kinshuk.in>
Date: 2020-05-11T17:53:28+05:30

keepalive: update rpc response

- Adds current state as part of rpc response per destination wise

---

Modified: src/modules/keepalive/keepalive_rpc.c

---

Diff:  https://github.com/kamailio/kamailio/commit/7ae22f6872cc3f74fecb0ebee797ff3f80c34fd3.diff
Patch: https://github.com/kamailio/kamailio/commit/7ae22f6872cc3f74fecb0ebee797ff3f80c34fd3.patch

---

diff --git a/src/modules/keepalive/keepalive_rpc.c b/src/modules/keepalive/keepalive_rpc.c
index 136a150c95..cdf8008541 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;




More information about the sr-dev mailing list