aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_cdr.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-06 15:48:06 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-06 15:48:06 +0000
commit25108e6dfbe08fe0b1deb1668f5fcb6eadcbbecc (patch)
treee49433d1672bd451c63074d5e4f518770aa7084c /apps/app_cdr.c
parentea7a4e7d71addb5fb1855abb841a1d912fb2e79a (diff)
convert one more file...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17866 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_cdr.c')
-rw-r--r--apps/app_cdr.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/app_cdr.c b/apps/app_cdr.c
index 663a1722e..d1b767406 100644
--- a/apps/app_cdr.c
+++ b/apps/app_cdr.c
@@ -28,6 +28,8 @@
#include <sys/types.h>
#include <stdlib.h>
+#define STATIC_MODULE
+
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
@@ -36,9 +38,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/module.h"
#include "asterisk/pbx.h"
-
-static char *tdesc = "Tell Asterisk to not maintain a CDR for the current call";
-
static char *nocdr_descrip =
" NoCDR(): This application will tell Asterisk not to maintain a CDR for the\n"
"current call.\n";
@@ -64,7 +63,7 @@ static int nocdr_exec(struct ast_channel *chan, void *data)
return 0;
}
-int unload_module(void)
+STATIC_MODULE int unload_module(void)
{
int res;
@@ -75,24 +74,26 @@ int unload_module(void)
return res;
}
-int load_module(void)
+STATIC_MODULE int load_module(void)
{
return ast_register_application(nocdr_app, nocdr_exec, nocdr_synopsis, nocdr_descrip);
}
-char *description(void)
+STATIC_MODULE char *description(void)
{
- return tdesc;
+ return "Tell Asterisk to not maintain a CDR for the current call";
}
-int usecount(void)
+STATIC_MODULE int usecount(void)
{
int res;
STANDARD_USECOUNT(res);
return res;
}
-char *key()
+STATIC_MODULE char *key(void)
{
return ASTERISK_GPL_KEY;
}
+
+STD_MOD(MOD_1, NULL, NULL, NULL);