From: Kinsey Moore Date: Tue, 10 Jul 2012 13:40:32 +0000 (+0000) Subject: Improve Goto and GotoIf related documentation X-Git-Tag: 11.0.0-beta1~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6416a246edb7aca07a595098515591af7a92fb94;p=thirdparty%2Fasterisk.git Improve Goto and GotoIf related documentation Correct documentation on labeliftrue and labeliffalse parameters of GotoIf() and update several other locations that use the same syntax. (closes issue ASTERISK-20007) Patch-by: Leif Madsen Reported-by: WIMPy ........ Merged revisions 369869 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 369871 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369872 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_stack.c b/apps/app_stack.c index 66d39b3c92..00a63480dc 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -73,10 +73,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") + Continue at labeliftrue if the condition is true. + Takes the form similar to Goto() of [[context,]extension,]priority. + Continue at labeliffalse if the condition is false. + Takes the form similar to Goto() of [[context,]extension,]priority. @@ -93,6 +97,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") MacroIf IF GotoIf + Goto diff --git a/main/pbx.c b/main/pbx.c index db929519ec..95f6fda628 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -235,7 +235,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Exec + ExecIf TryExec + GotoIfTime @@ -279,10 +281,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - Continue at labeliftrue if the condition is true. + Continue at labeliftrue if the condition is true. + Takes the form similar to Goto() of [[context,]extension,]priority. - Continue at labeliffalse if the condition is false. + Continue at labeliffalse if the condition is false. + Takes the form similar to Goto() of [[context,]extension,]priority. @@ -321,8 +325,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - - + + Continue at labeliftrue if the condition is true. + Takes the form similar to Goto() of [[context,]extension,]priority. + + + Continue at labeliffalse if the condition is false. + Takes the form similar to Goto() of [[context,]extension,]priority. + @@ -338,6 +348,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") GotoIf + Goto IFTIME TESTTIME