diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-01 21:10:07 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-01 21:10:07 +0000 |
commit | b1f91b97d2085cc845d0f57bd9907de50c995105 (patch) | |
tree | 9c836ac808552d20be6bd2baa3a3c29f642eda53 /apps/app_getcpeid.c | |
parent | c5d084051f21e943fcbcc347fc80b166885f298d (diff) |
Merge changes from team/group/appdocsxml
This commit introduces the first phase of an effort to manage documentation of the
interfaces in Asterisk in an XML format. Currently, a new format is available for
applications and dialplan functions. A good number of conversions to the new format
are also included.
For more information, see the following message to asterisk-dev:
http://lists.digium.com/pipermail/asterisk-dev/2008-October/034968.html
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153365 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_getcpeid.c')
-rw-r--r-- | apps/app_getcpeid.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/apps/app_getcpeid.c b/apps/app_getcpeid.c index 6ff051899..9c1009242 100644 --- a/apps/app_getcpeid.c +++ b/apps/app_getcpeid.c @@ -36,15 +36,20 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/module.h" #include "asterisk/adsi.h" +/*** DOCUMENTATION + <application name="GetCPEID" language="en_US"> + <synopsis> + Get ADSI CPE ID. + </synopsis> + <syntax /> + <description> + <para>Obtains and displays ADSI CPE ID and other information in order + to properly setup <filename>dahdi.conf</filename> for on-hook operations.</para> + </description> + </application> + ***/ static char *app = "GetCPEID"; -static char *synopsis = "Get ADSI CPE ID"; - -static char *descrip = -" GetCPEID(): Obtains and displays ADSI CPE ID and other information in order\n" -"to properly setup dahdi.conf for on-hook operations.\n"; - - static int cpeid_setstatus(struct ast_channel *chan, char *stuff[], int voice) { int justify[5] = { ADSI_JUST_CENT, ADSI_JUST_LEFT, ADSI_JUST_LEFT, ADSI_JUST_LEFT }; @@ -124,7 +129,7 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, cpeid_exec, synopsis, descrip); + return ast_register_application_xml(app, cpeid_exec); } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Get ADSI CPE ID"); |