[svn-commits] eliel: trunk r199446 - /trunk/apps/app_stack.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sat Jun 6 18:28:52 CDT 2009
Author: eliel
Date: Sat Jun 6 18:28:38 2009
New Revision: 199446
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199446
Log:
Move AGI command 'gosub' static documentation to XML.
Move AGI command 'gosub' statis documentation to the new AstXML form.
(issue #15245)
Reported by: eliel
Patches:
app_stack_static_conversion.txt uploaded by lmadsen (license 10)
(with minor changes by me)
Modified:
trunk/apps/app_stack.c
Modified: trunk/apps/app_stack.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/apps/app_stack.c?view=diff&rev=199446&r1=199445&r2=199446
==============================================================================
--- trunk/apps/app_stack.c (original)
+++ trunk/apps/app_stack.c Sat Jun 6 18:28:38 2009
@@ -164,6 +164,21 @@
<ref type="application">Return</ref>
</see-also>
</function>
+ <agi name="gosub" language="en_US">
+ <synopsis>
+ Cause the channel to execute the specified dialplan subroutine.
+ </synopsis>
+ <syntax>
+ <parameter name="context" required="true" />
+ <parameter name="extension" required="true" />
+ <parameter name="priority" required="true" />
+ <parameter name="optional-argument" />
+ </syntax>
+ <description>
+ <para>Cause the channel to execute the specified dialplan subroutine,
+ returning to the dialplan with execution of a Return().</para>
+ </description>
+ </agi>
***/
static const char * const app_gosub = "Gosub";
@@ -627,13 +642,8 @@
return RESULT_SUCCESS;
}
-static const char usage_gosub[] =
-" Usage: GOSUB <context> <extension> <priority> [<optional-argument>]\n"
-" Cause the channel to execute the specified dialplan subroutine, returning\n"
-" to the dialplan with execution of a Return()\n";
-
struct agi_command gosub_agi_command =
- { { "gosub", NULL }, handle_gosub, "Execute a dialplan subroutine", usage_gosub , 0 };
+ { { "gosub", NULL }, handle_gosub, NULL, NULL, 0 };
static int unload_module(void)
{
More information about the svn-commits
mailing list