diff options
author | eliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-06 23:28:38 +0000 |
---|---|---|
committer | eliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-06 23:28:38 +0000 |
commit | 08f4ed038a889b376dcd0cd7d5a4c0a170cba89a (patch) | |
tree | 52b5215bb0dc4b8c648fdf3e66cf420fa3559c70 /apps/app_stack.c | |
parent | 3230c2a50c0399e27d309892bd3fcf24bbd26245 (diff) |
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)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199446 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_stack.c')
-rw-r--r-- | apps/app_stack.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/apps/app_stack.c b/apps/app_stack.c index 27652c3bd..bc3054d3f 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -164,6 +164,21 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") <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 @@ static int handle_gosub(struct ast_channel *chan, AGI *agi, int argc, const char 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) { |