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 | |
AST_MODULE_INFO_STANDARD (ASTERISK_GPL_KEY,"Tell Asterisk to not maintain a CDR for the current call") | |
static int | load_module (void) |
static int | nocdr_exec (struct ast_channel *chan, const char *data) |
static int | unload_module (void) |
Variables | |
static const char | nocdr_app [] = "NoCDR" |
Applications connected with CDR engine.
Definition in file app_cdr.c.
AST_MODULE_INFO_STANDARD | ( | ASTERISK_GPL_KEY | , | |
"Tell Asterisk to not maintain a CDR for the current call" | ||||
) |
static int load_module | ( | void | ) | [static] |
Definition at line 66 of file app_cdr.c.
References AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_SUCCESS, ast_register_application_xml, and nocdr_exec().
00067 { 00068 if (ast_register_application_xml(nocdr_app, nocdr_exec)) 00069 return AST_MODULE_LOAD_FAILURE; 00070 return AST_MODULE_LOAD_SUCCESS; 00071 }
static int nocdr_exec | ( | struct ast_channel * | chan, | |
const char * | data | |||
) | [static] |
Definition at line 53 of file app_cdr.c.
References AST_CDR_FLAG_POST_DISABLED, ast_set_flag, and ast_channel::cdr.
Referenced by load_module().
00054 { 00055 if (chan->cdr) 00056 ast_set_flag(chan->cdr, AST_CDR_FLAG_POST_DISABLED); 00057 00058 return 0; 00059 }
static int unload_module | ( | void | ) | [static] |
Definition at line 61 of file app_cdr.c.
References ast_unregister_application().
00062 { 00063 return ast_unregister_application(nocdr_app); 00064 }