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

Olle E. Johansson notifications at github.com
Thu Jan 2 16:14:57 CET 2020


oej commented on this pull request.



> +
+static void keepalive_rpc_del(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);
+		rpc->fault(ctx, 500, "Not enough parameters or wrong format");
+		return;
+	}
+
+	LM_DBG(" keepalive deletes [%.*s]\n", sip_adress.len , sip_adress.s);

s /deletes/delete/

-- 
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-337703128
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200102/e825026b/attachment-0001.html>


More information about the sr-dev mailing list