Module: kamailio Branch: master Commit: 7ae22f6872cc3f74fecb0ebee797ff3f80c34fd3 URL: https://github.com/kamailio/kamailio/commit/7ae22f6872cc3f74fecb0ebee797ff3f80c34fd3
Author: kinshuk.bairagi <m...@kinshuk.in> Committer: kinshuk.bairagi <m...@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; _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev