From: Jason Parker Date: Wed, 26 Dec 2007 22:14:21 +0000 (+0000) Subject: Make 'else' argument to ExecIf optional. Clean up the description and usage text... X-Git-Tag: 1.6.0-beta1~3^2~289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f573e85eccbaf3b8484726831b2519d625ae440b;p=thirdparty%2Fasterisk.git Make 'else' argument to ExecIf optional. Clean up the description and usage text a bit. Closes issue #11564, patch by pnlarsson (with some extra cleanup by me). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94814 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_exec.c b/apps/app_exec.c index 83755a8f95..441e814586 100644 --- a/apps/app_exec.c +++ b/apps/app_exec.c @@ -77,9 +77,9 @@ static char *tryexec_descrip = static char *app_execif = "ExecIf"; static char *execif_synopsis = "Executes dialplan application, conditionally"; static char *execif_descrip = -" ExecIF (?():())\n" -"If is true, execute and return the result of ().\n" -"If is true, but is not found, then the application\n" +" ExecIF (?()[:()])\n" +"If is true, execute and return the result of ().\n" +"If is true, but is not found, then the application\n" "will return a non-zero value.\n"; static int exec_exec(struct ast_channel *chan, void *data) @@ -162,7 +162,7 @@ static int execif_exec(struct ast_channel *chan, void *data) AST_NONSTANDARD_APP_ARGS(expr, parse, '?'); if (ast_strlen_zero(expr.remainder)) { - ast_log(LOG_ERROR, "Usage: ExecIf(?():(?()[:(