Browse code

keepalive: Add RPC success responses

Olle E. Johansson authored on 03/01/2022 14:55:41
Showing 1 changed files
... ...
@@ -123,7 +123,7 @@ static void keepalive_rpc_add(rpc_t *rpc, void *ctx)
123 123
 		rpc->fault(ctx, 500, "couldn't add data to list");
124 124
 		return;
125 125
 	}
126
-
126
+	rpc->rpl_printf(ctx, "Ok. Destination added.");
127 127
 	return;
128 128
 }
129 129
 static const char *keepalive_rpc_add_doc[2] = {
... ...
@@ -156,7 +156,7 @@ static void keepalive_rpc_del(rpc_t *rpc, void *ctx)
156 156
 		rpc->fault(ctx, 500, "couldn't delete data from list");
157 157
 		return;
158 158
 	}
159
-
159
+	rpc->rpl_printf(ctx, "Ok. Destination removed.");
160 160
 	return;
161 161
 }
162 162
 static const char *keepalive_rpc_del_doc[2] = {
... ...
@@ -217,7 +217,7 @@ static const char *keepalive_rpc_get_doc[2] = {
217 217
 static void keepalive_rpc_flush(rpc_t *rpc, void *ctx)
218 218
 {
219 219
 	ka_dest_t *dest;
220
-	LM_DBG("keepalive flushe\n");
220
+	LM_DBG("keepalive flush\n");
221 221
 	ka_lock_destination_list();
222 222
 
223 223
 	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)
225 225
 	}
226 226
 	ka_destinations_list->first = 0;
227 227
 	ka_unlock_destination_list();
228
-
228
+	rpc->rpl_printf(ctx, "Ok. Destination list flushed.");
229 229
 	return;
230 230
 }
231 231
 static const char *keepalive_rpc_flush_doc[2] = {