diff --git a/channels/pjsip/cli_commands.c b/channels/pjsip/cli_commands.c
index 1d2fbb9ade61a029ee03987cd22776b9e8a5e5c6..514cf70d3fde5eb9038875775f595d072fbdf3dc 100644
--- a/channels/pjsip/cli_commands.c
+++ b/channels/pjsip/cli_commands.c
@@ -356,7 +356,7 @@ static int cli_channelstats_print_body(void *obj, void *arg, int flags)
 	if (!media || !media->rtp) {
 		ast_str_append(&context->output_buffer, 0, " %s not valid\n", snapshot->name);
 		ao2_cleanup(channel);
-		return -1;
+		return 0;
 	}
 
 	codec_in_use[0] = '\0';