]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 369871 via svnmerge from
authorAutomerge script <automerge@asterisk.org>
Tue, 10 Jul 2012 14:22:57 +0000 (14:22 +0000)
committerAutomerge script <automerge@asterisk.org>
Tue, 10 Jul 2012 14:22:57 +0000 (14:22 +0000)
file:///srv/subversion/repos/asterisk/branches/10

................
  r369871 | kmoore | 2012-07-10 08:35:30 -0500 (Tue, 10 Jul 2012) | 12 lines

  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
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@369889 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_stack.c
main/pbx.c

index 828f72fdaf0ea38388d484f25e5e4b91b2373834..102e00472550edfb378680262404827e682b1ccc 100644 (file)
@@ -73,10 +73,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                        <parameter name="condition" required="true" />
                        <parameter name="destination" required="true" argsep=":">
                                <argument name="labeliftrue" hasparams="optional">
+                                       <para>Continue at <replaceable>labeliftrue</replaceable> if the condition is true.
+                                       Takes the form similar to Goto() of [[context,]extension,]priority.</para>
                                        <argument name="arg1" required="true" multiple="true" />
                                        <argument name="argN" />
                                </argument>
                                <argument name="labeliffalse" hasparams="optional">
+                                       <para>Continue at <replaceable>labeliffalse</replaceable> if the condition is false.
+                                       Takes the form similar to Goto() of [[context,]extension,]priority.</para>
                                        <argument name="arg1" required="true" multiple="true" />
                                        <argument name="argN" />
                                </argument>
@@ -93,6 +97,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                        <ref type="application">MacroIf</ref>
                        <ref type="function">IF</ref>
                        <ref type="application">GotoIf</ref>
+                       <ref type="application">Goto</ref>
                </see-also>
        </application>
        <application name="Return" language="en_US">
index 2feb5a367c351f6128b649d577ec95c165ee4985..fcc1146a2af18e97f1356c5a2bae895de7fecd6b 100644 (file)
@@ -235,7 +235,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                </description>
                <see-also>
                        <ref type="application">Exec</ref>
+                       <ref type="application">ExecIf</ref>
                        <ref type="application">TryExec</ref>
+                       <ref type="application">GotoIfTime</ref>
                </see-also>
        </application>
        <application name="Goto" language="en_US">
@@ -279,10 +281,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                        <parameter name="condition" required="true" />
                        <parameter name="destination" required="true" argsep=":">
                                <argument name="labeliftrue">
-                                       <para>Continue at <replaceable>labeliftrue</replaceable> if the condition is true.</para>
+                                       <para>Continue at <replaceable>labeliftrue</replaceable> if the condition is true.
+                                       Takes the form similar to Goto() of [[context,]extension,]priority.</para>
                                </argument>
                                <argument name="labeliffalse">
-                                       <para>Continue at <replaceable>labeliffalse</replaceable> if the condition is false.</para>
+                                       <para>Continue at <replaceable>labeliffalse</replaceable> if the condition is false.
+                                       Takes the form similar to Goto() of [[context,]extension,]priority.</para>
                                </argument>
                        </parameter>
                </syntax>
@@ -321,8 +325,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                                <argument name="timezone" required="false" />
                        </parameter>
                        <parameter name="destination" required="true" argsep=":">
-                               <argument name="labeliftrue" />
-                               <argument name="labeliffalse" />
+                               <argument name="labeliftrue">
+                                       <para>Continue at <replaceable>labeliftrue</replaceable> if the condition is true.
+                                       Takes the form similar to Goto() of [[context,]extension,]priority.</para>
+                               </argument>
+                               <argument name="labeliffalse">
+                                       <para>Continue at <replaceable>labeliffalse</replaceable> if the condition is false.
+                                       Takes the form similar to Goto() of [[context,]extension,]priority.</para>
+                               </argument>
                        </parameter>
                </syntax>
                <description>
@@ -338,6 +348,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                </description>
                <see-also>
                        <ref type="application">GotoIf</ref>
+                       <ref type="application">Goto</ref>
                        <ref type="function">IFTIME</ref>
                        <ref type="function">TESTTIME</ref>
                </see-also>