diff --git a/apps/app_exec.c b/apps/app_exec.c index 73d534a1b6..12b91a4882 100644 --- a/apps/app_exec.c +++ b/apps/app_exec.c @@ -166,6 +166,11 @@ static int execif_exec(struct ast_channel *chan, void *data) char *parse = ast_strdupa(data); AST_NONSTANDARD_APP_ARGS(expr, parse, '?'); + if (ast_strlen_zero(expr.remainder)) { + ast_log(LOG_ERROR, "Usage: ExecIf(?():(