diff --git a/apps/app_forkcdr.c b/apps/app_forkcdr.c index d48b6b50ba..a2ad1fe0f7 100644 --- a/apps/app_forkcdr.c +++ b/apps/app_forkcdr.c @@ -71,7 +71,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Set the CDR var name in the original CDR, - with value val. + with value val. Mark the original CDR with a DONT_TOUCH flag. setvar, answer, and end diff --git a/res/res_indications.c b/res/res_indications.c index 7f185f3199..836abffc3e 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 + + + Play a tone list. + + + + Arg is either the tone name defined in the indications.conf + configuration file, or a directly specified list of frequencies and durations. + + + + Plays a tone list. Execution will continue with the next step immediately, + while the tones continue to play. + See the sample indications.conf for a description of the + specification of a tonelist. + + + StopPlayTones + + + + + Stop playing a tone list. + + + + Stop playing a tone list, initiated by PlayTones(). + + + PlayTones + + + ***/ + /* 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; }