diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7ff5eed29079c519d0c4c1950876b95af8042abe..1c43752892d437c649777d3d61155e174c67fe82 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14213,6 +14213,8 @@ static char *sip_show_channelstats(struct ast_cli_entry *e, int cmd, struct ast_
 			"       Lists all currently active SIP channel's RTCP statistics.\n"
 			"       Note that calls in the much optimized RTP P2P bridge mode will not show any packets here.";
 		return NULL;
+	case CLI_GENERATE:
+		return NULL;
 	}
 
 	if (a->argc != 3)