Applications connected with CDR engine. More...
#include "asterisk.h"#include "asterisk/channel.h"#include "asterisk/module.h"
Go to the source code of this file.
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| static int | load_module (void) |
| static int | nocdr_exec (struct ast_channel *chan, void *data) |
| static int | unload_module (void) |
Variables | |
| static struct ast_module_info __MODULE_INFO_SECTION | __mod_info = { __MODULE_INFO_GLOBALS .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Tell Asterisk to not maintain a CDR for the current call" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, } |
| static struct ast_module_info * | ast_module_info = &__mod_info |
| static char * | nocdr_app = "NoCDR" |
Applications connected with CDR engine.
Definition in file app_cdr.c.
| static int load_module | ( | void | ) | [static] |
Definition at line 62 of file app_cdr.c.
References AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_SUCCESS, ast_register_application_xml, and nocdr_exec().
{
if (ast_register_application_xml(nocdr_app, nocdr_exec))
return AST_MODULE_LOAD_FAILURE;
return AST_MODULE_LOAD_SUCCESS;
}
| static int nocdr_exec | ( | struct ast_channel * | chan, |
| void * | data | ||
| ) | [static] |
Definition at line 49 of file app_cdr.c.
References AST_CDR_FLAG_POST_DISABLED, ast_set_flag, and ast_channel::cdr.
Referenced by load_module().
{
if (chan->cdr)
ast_set_flag(chan->cdr, AST_CDR_FLAG_POST_DISABLED);
return 0;
}
| static int unload_module | ( | void | ) | [static] |
Definition at line 57 of file app_cdr.c.
References ast_unregister_application().
{
return ast_unregister_application(nocdr_app);
}
struct ast_module_info __MODULE_INFO_SECTION __mod_info = { __MODULE_INFO_GLOBALS .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Tell Asterisk to not maintain a CDR for the current call" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, } [static] |
struct ast_module_info* ast_module_info = &__mod_info [static] |