[sr-dev] [kamailio/kamailio] keepalive: added add/del/get/flush rpc commands (#2177)

Olle E. Johansson notifications at github.com
Thu Jan 2 16:13:45 CET 2020


oej commented on this pull request.



> @@ -87,3 +100,137 @@ static void keepalive_rpc_list(rpc_t *rpc, void *ctx)
 
 	return;
 }
+
+static void keepalive_rpc_add(rpc_t *rpc, void *ctx)
+{
+	str sip_adress = {0,0};
+	str table_name ={0,0};
+	int ret = 0;
+
+	ret = rpc->scan(ctx, "SS",&sip_adress,&table_name);
+
+	if (ret < 2) {
+		LM_ERR("not enough parameters - read so far: %d\n", ret);

When reading the log file, you probably want to add the command name or some context 
LM_ERR("keepalived.add : not enough parameters - read so far: %d\n", ret);

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2177#pullrequestreview-337702547
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200102/c61a9206/attachment.html>


More information about the sr-dev mailing list