[asterisk-commits] eliel: branch group/appdocsxml r146015 - /team/group/appdocsxml/apps/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 3 09:31:19 CDT 2008
Author: eliel
Date: Fri Oct 3 09:31:19 2008
New Revision: 146015
URL: http://svn.digium.com/view/asterisk?view=rev&rev=146015
Log:
Introduce the DAHDIRAS() application XML documentation.
Modified:
team/group/appdocsxml/apps/app_dahdiras.c
Modified: team/group/appdocsxml/apps/app_dahdiras.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/apps/app_dahdiras.c?view=diff&rev=146015&r1=146014&r2=146015
==============================================================================
--- team/group/appdocsxml/apps/app_dahdiras.c (original)
+++ team/group/appdocsxml/apps/app_dahdiras.c Fri Oct 3 09:31:19 2008
@@ -52,17 +52,28 @@
#include "asterisk/module.h"
#include "asterisk/app.h"
+/*** DOCUMENTATION
+ <application name="DAHDIRAS" language="en_US">
+ <synopsis>
+ Executes DAHDI ISDN RAS application.
+ </synopsis>
+ <syntax>
+ <parameter name="args" required="true">
+ <para>A list of parameters to pass to the pppd daemon,
+ separeted by <literal>,</literal> characters.</para>
+ </parameter>
+ </syntax>
+ <description>
+ <para>Executes a RAS server using pppd on the given channel.
+ The channel must be a clear channel (i.e. PRI source) and a DAHDI
+ channel to be able to use this function (No modem emulation is included).</para>
+ <para>Your pppd must be patched to be DAHDI aware.</para>
+ </description>
+ </application>
+
+ ***/
+
static char *app = "DAHDIRAS";
-
-static char *synopsis = "Executes DAHDI ISDN RAS application";
-
-static char *descrip =
-" DAHDIRAS(args): Executes a RAS server using pppd on the given channel.\n"
-"The channel must be a clear channel (i.e. PRI source) and a DAHDI\n"
-"channel to be able to use this function (No modem emulation is included).\n"
-"Your pppd must be patched to be DAHDI aware. Arguments should be\n"
-"separated by , characters.\n";
-
#define PPP_MAX_ARGS 32
#define PPP_EXEC "/usr/sbin/pppd"
@@ -218,7 +229,7 @@
static int load_module(void)
{
- return ((ast_register_application(app, dahdiras_exec, synopsis, descrip)) ? AST_MODULE_LOAD_FAILURE : AST_MODULE_LOAD_SUCCESS);
+ return ((ast_register_application_xml(app, dahdiras_exec)) ? AST_MODULE_LOAD_FAILURE : AST_MODULE_LOAD_SUCCESS);
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "DAHDI ISDN Remote Access Server");
More information about the asterisk-commits
mailing list