[sr-dev] [kamailio/kamailio] Kafka: Wrong format on RPC responses (Issue #2991)

Olle E. Johansson notifications at github.com
Mon Jan 3 15:50:29 CET 2022


The kafka module use printf-like message to print statistics in rpc_kafka_stats() which doesn't follow the style for other RPC commands that produce data structures parsable as data, like when using jsonrpc.

```
	if (rpc->rpl_printf(ctx, "Total messages: %" PRIu64 "  Errors: %" PRIu64,
						msg_total, msg_error) < 0) {
		rpc->fault(ctx, 500, "Internal error showing total statistics");
		return;
	}
```
I think this is a bug, but easy to fix.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2991
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/2991 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220103/4f66ca7a/attachment.htm>


More information about the sr-dev mailing list