From 63930985a1fb21999cfd7505275e3d2770c0ba2a Mon Sep 17 00:00:00 2001 From: "Eliel C. Sardanons" Date: Wed, 5 Nov 2008 02:08:39 +0000 Subject: [PATCH] - Add FollowMe() application XML documentation. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154469 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_followme.c | 51 ++++++++++++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/apps/app_followme.c b/apps/app_followme.c index 3f8d114ac5..6e29ec1147 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -58,21 +58,42 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/dsp.h" #include "asterisk/app.h" +/*** DOCUMENTATION + + + Find-Me/Follow-Me application. + + + + + + + + + + + + + This application performs Find-Me/Follow-Me functionality for the caller + as defined in the profile matching the followmeid parameter in + followme.conf. If the specified followmeid + profile doesn't exist in followme.conf, execution will be returned + to the dialplan and call execution will continue at the next priority. + Returns -1 on hangup. + + + ***/ + static char *app = "FollowMe"; -static char *synopsis = "Find-Me/Follow-Me application"; -static char *descrip = -" FollowMe(followmeid[,options]):\n" -"This application performs Find-Me/Follow-Me functionality for the caller\n" -"as defined in the profile matching the parameter in\n" -"followme.conf. If the specified profile doesn't exist in\n" -"followme.conf, execution will be returned to the dialplan and call\n" -"execution will continue at the next priority.\n\n" -" Options:\n" -" s - Playback the incoming status message prior to starting the follow-me step(s)\n" -" a - Record the caller's name so it can be announced to the callee on each step\n" -" n - Playback the unreachable status message if we've run out of steps to reach the\n" -" or the callee has elected not to be reachable.\n" -"Returns -1 on hangup\n"; /*! \brief Number structure */ struct number { @@ -1144,7 +1165,7 @@ static int load_module(void) if(!reload_followme(0)) return AST_MODULE_LOAD_DECLINE; - return ast_register_application(app, app_exec, synopsis, descrip); + return ast_register_application_xml(app, app_exec); } static int reload(void)