mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Add Flash() application XML documentation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -43,17 +43,25 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/translate.h"
|
#include "asterisk/translate.h"
|
||||||
#include "asterisk/image.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 *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)
|
static inline int dahdi_wait_event(int fd)
|
||||||
{
|
{
|
||||||
/* Avoid the silly dahdi_waitevent which ignores a bunch of events */
|
/* Avoid the silly dahdi_waitevent which ignores a bunch of events */
|
||||||
@@ -105,7 +113,7 @@ static int unload_module(void)
|
|||||||
|
|
||||||
static int load_module(void)
|
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");
|
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Flash channel application");
|
||||||
|
Reference in New Issue
Block a user