summaryrefslogtreecommitdiff
path: root/apps/app_getcpeid.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_getcpeid.c')
-rw-r--r--apps/app_getcpeid.c21
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");