From 9167a2b5e164687d4c9a0618a42d0dfe30090b9b Mon Sep 17 00:00:00 2001 From: "Eliel C. Sardanons" Date: Mon, 3 Nov 2008 01:01:25 +0000 Subject: Add XML documentation for: - WaitForSilence() - WaitForNoise() - WaitForRing() - IVRDemo() - DBDel() - DBDeltree() (issue #13699) Reported by: snuffy Patches: bug13699_20081016.diff uploaded by snuffy (license 35) (With minor changes) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153747 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_waitforring.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'apps/app_waitforring.c') diff --git a/apps/app_waitforring.c b/apps/app_waitforring.c index f2d21e516..fd5913e04 100644 --- a/apps/app_waitforring.c +++ b/apps/app_waitforring.c @@ -35,16 +35,24 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/module.h" #include "asterisk/lock.h" -static char *synopsis = "Wait for Ring Application"; - -static char *desc = " WaitForRing(timeout):\n" -"Returns 0 after waiting at least timeout seconds. and\n" -"only after the next ring has completed. Returns 0 on\n" -"success or -1 on hangup\n"; +/*** DOCUMENTATION + + + Wait for Ring Application. + + + + + + Returns 0 after waiting at least timeout seconds, + and only after the next ring has completed. Returns 0 on success or + -1 on hangup. + + + ***/ static char *app = "WaitForRing"; - static int waitforring_exec(struct ast_channel *chan, void *data) { struct ast_frame *f; @@ -111,7 +119,7 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, waitforring_exec, synopsis, desc); + return ast_register_application_xml(app, waitforring_exec); } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Waits until first ring after time"); -- cgit v1.2.3