From 913225a79ad332740b61a4403d3cb2f30c7f7833 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Tue, 10 Jul 2012 13:33:53 +0000 Subject: [PATCH] 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@369869 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_stack.c | 5 +++++ main/pbx.c | 19 +++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/apps/app_stack.c b/apps/app_stack.c index 13c2fcbfa8..aa597f0674 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 485ede6344..3ecdb5c1d4 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -234,7 +234,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Exec + ExecIf TryExec + GotoIfTime @@ -278,10 +280,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. @@ -320,8 +324,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. + @@ -337,6 +347,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") GotoIf + Goto IFTIME TESTTIME -- 2.47.3