diff --git a/main/cli.c b/main/cli.c index 8d53aaa4b4..698f249f4e 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1153,6 +1153,8 @@ static int __ast_cli_register(struct ast_cli_entry *e, struct ast_cli_entry *ed) To show command B, you just need to always use ed->_full_cmd. */ e->_deprecated_by = S_OR(ed->_deprecated_by, ed->_full_cmd); + } else { + e->deprecated = 0; } lf = strlen(fulle);