From cb4ef23b12c556fa4644a9796b6c6bfbdee2a61a Mon Sep 17 00:00:00 2001 From: "Eliel C. Sardanons" Date: Wed, 5 Nov 2008 13:51:16 +0000 Subject: - Add ParkAndAnnounce() application XML documentation. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154615 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_parkandannounce.c | 63 ++++++++++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 22 deletions(-) (limited to 'apps/app_parkandannounce.c') diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c index 40b9c3370..435fc6048 100644 --- a/apps/app_parkandannounce.c +++ b/apps/app_parkandannounce.c @@ -43,28 +43,47 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/utils.h" #include "asterisk/app.h" -static char *app = "ParkAndAnnounce"; - -static char *synopsis = "Park and Announce"; - -static char *descrip = -" ParkAndAnnounce(announce:template,timeout,dial[,return_context]):\n" -"Park a call into the parkinglot and announce the call to another channel.\n" -"\n" -"announce template: Colon-separated list of files to announce. The word PARKED\n" -" will be replaced by a say_digits of the extension in which\n" -" the call is parked.\n" -"timeout: Time in seconds before the call returns into the return\n" -" context.\n" -"dial: The app_dial style resource to call to make the\n" -" announcement. Console/dsp calls the console.\n" -"return_context: The goto-style label to jump the call back into after\n" -" timeout. Default .\n" -"\n" -"The variable ${PARKEDAT} will contain the parking extension into which the\n" -"call was placed. Use with the Local channel to allow the dialplan to make\n" -"use of this information.\n"; +/*** DOCUMENTATION + + + Park and Announce. + + + + + Colon-separated list of files to announce. The word + PARKED will be replaced by a say_digits of the extension in which + the call is parked. + + + + + Time in seconds before the call returns into the return + context. + + + The app_dial style resource to call to make the + announcement. Console/dsp calls the console. + + + The goto-style label to jump the call back into after + timeout. Default priority+1. + + + + Park a call into the parkinglot and announce the call to another channel. + The variable PARKEDAT will contain the parking extension + into which the call was placed. Use with the Local channel to allow the dialplan to make + use of this information. + + + Park + ParkedCall + + + ***/ +static char *app = "ParkAndAnnounce"; static int parkandannounce_exec(struct ast_channel *chan, void *data) { @@ -182,7 +201,7 @@ static int unload_module(void) static int load_module(void) { /* return ast_register_application(app, park_exec); */ - return ast_register_application(app, parkandannounce_exec, synopsis, descrip); + return ast_register_application_xml(app, parkandannounce_exec); } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Call Parking and Announce Application"); -- cgit v1.2.3