[asterisk-commits] eliel: branch group/appdocsxml r145746 - /team/group/appdocsxml/funcs/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 2 08:28:34 CDT 2008
Author: eliel
Date: Thu Oct 2 08:28:33 2008
New Revision: 145746
URL: http://svn.digium.com/view/asterisk?view=rev&rev=145746
Log:
Introduce DIALPLAN_EXISTS() XML documentation.
Modified:
team/group/appdocsxml/funcs/func_dialplan.c
Modified: team/group/appdocsxml/funcs/func_dialplan.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/funcs/func_dialplan.c?view=diff&rev=145746&r1=145745&r2=145746
==============================================================================
--- team/group/appdocsxml/funcs/func_dialplan.c (original)
+++ team/group/appdocsxml/funcs/func_dialplan.c Thu Oct 2 08:28:33 2008
@@ -32,6 +32,23 @@
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/app.h"
+
+/*** DOCUMENTATION
+ <function name="DIALPLAN_EXISTS" language="en_US">
+ <synopsis>
+ Checks the existence of a dialplan target.
+ </synopsis>
+ <syntax>
+ <parameter name="context" required="true" />
+ <parameter name="extension" />
+ <parameter name="priority" />
+ </syntax>
+ <description>
+ <para>This function returns <literal>1</literal> if the target exits. Otherwise, it returns <literal>0</literal>.</para>
+ </description>
+ </function>
+
+ ***/
static int isexten_function_read(struct ast_channel *chan, const char *cmd, char *data,
char *buf, size_t len)
@@ -87,9 +104,6 @@
static struct ast_custom_function isexten_function = {
.name = "DIALPLAN_EXISTS",
- .syntax = "DIALPLAN_EXISTS(context[,extension[,priority]])",
- .synopsis = "Checks the existence of a dialplan target.",
- .desc = "This function returns 1 if the target exits. Otherwise, it returns 0.\n",
.read = isexten_function_read,
};
More information about the asterisk-commits
mailing list