mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
convert one more file...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -28,6 +28,8 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#define STATIC_MODULE
|
||||||
|
|
||||||
#include "asterisk.h"
|
#include "asterisk.h"
|
||||||
|
|
||||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||||
@@ -36,9 +38,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/module.h"
|
#include "asterisk/module.h"
|
||||||
#include "asterisk/pbx.h"
|
#include "asterisk/pbx.h"
|
||||||
|
|
||||||
|
|
||||||
static char *tdesc = "Tell Asterisk to not maintain a CDR for the current call";
|
|
||||||
|
|
||||||
static char *nocdr_descrip =
|
static char *nocdr_descrip =
|
||||||
" NoCDR(): This application will tell Asterisk not to maintain a CDR for the\n"
|
" NoCDR(): This application will tell Asterisk not to maintain a CDR for the\n"
|
||||||
"current call.\n";
|
"current call.\n";
|
||||||
@@ -64,7 +63,7 @@ static int nocdr_exec(struct ast_channel *chan, void *data)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int unload_module(void)
|
STATIC_MODULE int unload_module(void)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
@@ -75,24 +74,26 @@ int unload_module(void)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int load_module(void)
|
STATIC_MODULE int load_module(void)
|
||||||
{
|
{
|
||||||
return ast_register_application(nocdr_app, nocdr_exec, nocdr_synopsis, nocdr_descrip);
|
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;
|
int res;
|
||||||
STANDARD_USECOUNT(res);
|
STANDARD_USECOUNT(res);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *key()
|
STATIC_MODULE char *key(void)
|
||||||
{
|
{
|
||||||
return ASTERISK_GPL_KEY;
|
return ASTERISK_GPL_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STD_MOD(MOD_1, NULL, NULL, NULL);
|
||||||
|
Reference in New Issue
Block a user