[asterisk-commits] mvanbaak: branch group/appdocsxml r128328 - /team/group/appdocsxml/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jul 5 17:39:11 CDT 2008


Author: mvanbaak
Date: Sat Jul  5 17:39:10 2008
New Revision: 128328

URL: http://svn.digium.com/view/asterisk?view=rev&rev=128328
Log:
convert app_chanisavail to the new xml documentation

Modified:
    team/group/appdocsxml/apps/app_chanisavail.c

Modified: team/group/appdocsxml/apps/app_chanisavail.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_chanisavail.c?view=diff&rev=128328&r1=128327&r2=128328
==============================================================================
--- team/group/appdocsxml/apps/app_chanisavail.c (original)
+++ team/group/appdocsxml/apps/app_chanisavail.c Sat Jul  5 17:39:10 2008
@@ -43,6 +43,36 @@
 
 static char *app = "ChanIsAvail";
 
+/*** DOCUMENTATION
+	<application name="ChanIsAvail">
+		<synopsis>
+			Check channel availability
+		</synopsis>
+		<description>
+			This application will check to see if any of the specified channels are available.
+		</description>
+		<variable name="AVAILCHAN">
+			The name of the available channel, if one exists
+		</variable>
+		<variable name="AVAILORIGCHAN">
+			The canonical channel name that was used to create the channel
+		</variable>
+		<variable name="AVAILSTATUS">
+			The status code for the available channel
+		</variable>
+		<option name="a">
+			Check for all available channels, not only the first one
+		</option>
+		<option name="s">
+			Consider the channel unavailable if the channel is in use at all
+		</option>
+		<option name="t" implies="s">
+			Simply checks if specified channels exist in the channel list
+		</option>
+	</application>
+ ***/
+
+/*
 static char *synopsis = "Check channel availability";
 
 static char *descrip =
@@ -58,7 +88,7 @@
 "  AVAILCHAN     - the name of the available channel, if one exists\n"
 "  AVAILORIGCHAN - the canonical channel name that was used to create the channel\n"
 "  AVAILSTATUS   - the status code for the available channel\n";
-
+*/
 
 static int chanavail_exec(struct ast_channel *chan, void *data)
 {
@@ -165,7 +195,7 @@
 
 static int load_module(void)
 {
-	return ast_register_application(app, chanavail_exec, synopsis, descrip) ?
+	return ast_register_application_xml(app, chanavail_exec) ?
 		AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;
 }
 




More information about the asterisk-commits mailing list