[asterisk-commits] eliel: trunk r153543 - /trunk/apps/app_flash.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Nov 2 00:10:23 CDT 2008


Author: eliel
Date: Sun Nov  2 00:10:22 2008
New Revision: 153543

URL: http://svn.digium.com/view/asterisk?view=rev&rev=153543
Log:
Add Flash() application XML documentation.

Modified:
    trunk/apps/app_flash.c

Modified: trunk/apps/app_flash.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_flash.c?view=diff&rev=153543&r1=153542&r2=153543
==============================================================================
--- trunk/apps/app_flash.c (original)
+++ trunk/apps/app_flash.c Sun Nov  2 00:10:22 2008
@@ -43,16 +43,24 @@
 #include "asterisk/translate.h"
 #include "asterisk/image.h"
 
+/*** DOCUMENTATION
+	<application name="Flash" language="en_US">
+		<synopsis>
+			Flashes a DAHDI Trunk.
+		</synopsis>
+		<syntax />
+		<description>
+			<para>Performs a flash on a DAHDI trunk. This can be used to access features
+			provided on an incoming analogue circuit such as conference and call waiting.
+			Use with SendDTMF() to perform external transfers.</para>
+		</description>
+		<see-also>
+			<ref type="application">SendDTMF</ref>
+		</see-also>
+	</application>
+ ***/
+
 static char *app = "Flash";
-
-static char *synopsis = "Flashes a DAHDI Trunk";
-
-static char *descrip = 
-"Performs a flash on a DAHDI trunk.  This can be used\n"
-"to access features provided on an incoming analogue circuit\n"
-"such as conference and call waiting. Use with SendDTMF() to\n"
-"perform external transfers\n";
-
 
 static inline int dahdi_wait_event(int fd)
 {
@@ -105,7 +113,7 @@
 
 static int load_module(void)
 {
-	return ast_register_application(app, flash_exec, synopsis, descrip);
+	return ast_register_application_xml(app, flash_exec);
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Flash channel application");




More information about the asterisk-commits mailing list