[sr-dev] git:master:41e20d7f: keepalive: Add RPC success responses

Olle E. Johansson oej at edvina.net
Mon Jan 3 16:29:06 CET 2022


Module: kamailio
Branch: master
Commit: 41e20d7f5106748a415951f6766cf64b9d14180d
URL: https://github.com/kamailio/kamailio/commit/41e20d7f5106748a415951f6766cf64b9d14180d

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2022-01-03T15:58:41+01:00

keepalive: Add RPC success responses

---

Modified: src/modules/keepalive/keepalive_rpc.c

---

Diff:  https://github.com/kamailio/kamailio/commit/41e20d7f5106748a415951f6766cf64b9d14180d.diff
Patch: https://github.com/kamailio/kamailio/commit/41e20d7f5106748a415951f6766cf64b9d14180d.patch

---

diff --git a/src/modules/keepalive/keepalive_rpc.c b/src/modules/keepalive/keepalive_rpc.c
index e6a64dbcd1..ef9fe24a56 100644
--- a/src/modules/keepalive/keepalive_rpc.c
+++ b/src/modules/keepalive/keepalive_rpc.c
@@ -123,7 +123,7 @@ static void keepalive_rpc_add(rpc_t *rpc, void *ctx)
 		rpc->fault(ctx, 500, "couldn't add data to list");
 		return;
 	}
-
+	rpc->rpl_printf(ctx, "Ok. Destination added.");
 	return;
 }
 static const char *keepalive_rpc_add_doc[2] = {
@@ -156,7 +156,7 @@ static void keepalive_rpc_del(rpc_t *rpc, void *ctx)
 		rpc->fault(ctx, 500, "couldn't delete data from list");
 		return;
 	}
-
+	rpc->rpl_printf(ctx, "Ok. Destination removed.");
 	return;
 }
 static const char *keepalive_rpc_del_doc[2] = {
@@ -217,7 +217,7 @@ static const char *keepalive_rpc_get_doc[2] = {
 static void keepalive_rpc_flush(rpc_t *rpc, void *ctx)
 {
 	ka_dest_t *dest;
-	LM_DBG("keepalive flushe\n");
+	LM_DBG("keepalive flush\n");
 	ka_lock_destination_list();
 
 	for(dest = ka_destinations_list->first; dest != NULL; dest = dest->next) {
@@ -225,7 +225,7 @@ static void keepalive_rpc_flush(rpc_t *rpc, void *ctx)
 	}
 	ka_destinations_list->first = 0;
 	ka_unlock_destination_list();
-
+	rpc->rpl_printf(ctx, "Ok. Destination list flushed.");
 	return;
 }
 static const char *keepalive_rpc_flush_doc[2] = {




More information about the sr-dev mailing list