diff options
Diffstat (limited to 'funcs/func_dialplan.c')
-rw-r--r-- | funcs/func_dialplan.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/funcs/func_dialplan.c b/funcs/func_dialplan.c index 6d4c488f6..0e371d2c8 100644 --- a/funcs/func_dialplan.c +++ b/funcs/func_dialplan.c @@ -33,6 +33,23 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #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 int isexten_function_read(struct ast_channel *chan, const char *cmd, char 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, }; |