summaryrefslogtreecommitdiff
path: root/res/res_indications.c
diff options
context:
space:
mode:
authorEliel C. Sardanons <eliels@gmail.com>2008-11-05 01:44:04 +0000
committerEliel C. Sardanons <eliels@gmail.com>2008-11-05 01:44:04 +0000
commit0cd47929d4f7299234f2c40887eb03e43ebb0f74 (patch)
treed9d13d76a551a9b10bf5c1f88df07f6466bfcc4a /res/res_indications.c
parent086a52d9d1cc00b28b3146376935b6c64b258cb0 (diff)
- Add PlayTones() and StopPlayTones() applications XML documentation.
- Fix a dot that was outside of the <para> in the ForkCDR() XML documentation. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_indications.c')
-rw-r--r--res/res_indications.c47
1 files changed, 37 insertions, 10 deletions
diff --git a/res/res_indications.c b/res/res_indications.c
index 7f185f319..836abffc3 100644
--- a/res/res_indications.c
+++ b/res/res_indications.c
@@ -42,17 +42,44 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/indications.h"
#include "asterisk/utils.h"
+/*** DOCUMENTATION
+ <application name="PlayTones" language="en_US">
+ <synopsis>
+ Play a tone list.
+ </synopsis>
+ <syntax>
+ <parameter name="arg" required="true">
+ <para>Arg is either the tone name defined in the <filename>indications.conf</filename>
+ configuration file, or a directly specified list of frequencies and durations.</para>
+ </parameter>
+ </syntax>
+ <description>
+ <para>Plays a tone list. Execution will continue with the next step immediately,
+ while the tones continue to play.</para>
+ <para>See the sample <filename>indications.conf</filename> for a description of the
+ specification of a tonelist.</para>
+ </description>
+ <see-also>
+ <ref type="application">StopPlayTones</ref>
+ </see-also>
+ </application>
+ <application name="StopPlayTones" language="en_US">
+ <synopsis>
+ Stop playing a tone list.
+ </synopsis>
+ <syntax />
+ <description>
+ <para>Stop playing a tone list, initiated by PlayTones().</para>
+ </description>
+ <see-also>
+ <ref type="application">PlayTones</ref>
+ </see-also>
+ </application>
+ ***/
+
/* Globals */
static const char config[] = "indications.conf";
-char *playtones_desc=
-" PlayTones(arg): Plays a tone list. Execution will continue with the next step immediately,\n"
-"while the tones continue to play.\n"
-"Arg is either the tone name defined in the indications.conf configuration file, or a directly\n"
-"specified list of frequencies and durations.\n"
-"See the sample indications.conf for a description of the specification of a tonelist.\n\n"
-"Use the StopPlayTones application to stop the tones playing. \n";
-
/*
* Implementation of functions provided by this module
*/
@@ -423,8 +450,8 @@ static int load_module(void)
if (ind_load_module(0))
return AST_MODULE_LOAD_DECLINE;
ast_cli_register_multiple(cli_indications, sizeof(cli_indications) / sizeof(struct ast_cli_entry));
- ast_register_application("PlayTones", handle_playtones, "Play a tone list", playtones_desc);
- ast_register_application("StopPlayTones", handle_stopplaytones, "Stop playing a tone list"," StopPlayTones(): Stop playing a tone list");
+ ast_register_application_xml("PlayTones", handle_playtones);
+ ast_register_application_xml("StopPlayTones", handle_stopplaytones);
return AST_MODULE_LOAD_SUCCESS;
}