|
Asterisk - The Open Source Telephony Project GIT-master-80b953f
|
Custom Comma Separated Value CDR records. More...
#include "asterisk.h"#include "asterisk/cdr.h"#include "asterisk/module.h"#include "asterisk/res_cdrel_custom.h"
Go to the source code of this file.
Macros | |
| #define | CDREL_BACKEND_TYPE cdrel_backend_text |
| #define | CDREL_RECORD_TYPE cdrel_record_cdr |
| #define | CONFIG "cdr_custom.conf" |
| #define | CUSTOM_BACKEND_NAME "CDR File custom backend" |
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| struct ast_module * | AST_MODULE_SELF_SYM (void) |
| static int | custom_log (struct ast_cdr *cdr) |
| static enum ast_module_load_result | load_module (void) |
| static int | reload (void) |
| static int | unload_module (void) |
Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Customizable Comma Separated Values CDR Backend" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .reload = reload, .load_pri = AST_MODPRI_CDR_DRIVER, .requires = "cdr,res_cdrel_custom", } |
| static const struct ast_module_info * | ast_module_info = &__mod_info |
| static struct cdrel_configs * | configs |
| static ast_rwlock_t | configs_lock |
Custom Comma Separated Value CDR records.
Logs in LOG_DIR/cdr_custom
The logic for this module now resides in res/res_cdrel_custom.c.
Definition in file cdr_custom.c.
| #define CDREL_BACKEND_TYPE cdrel_backend_text |
Definition at line 68 of file cdr_custom.c.
| #define CDREL_RECORD_TYPE cdrel_record_cdr |
Definition at line 67 of file cdr_custom.c.
| #define CONFIG "cdr_custom.conf" |
Definition at line 56 of file cdr_custom.c.
| #define CUSTOM_BACKEND_NAME "CDR File custom backend" |
Definition at line 58 of file cdr_custom.c.
|
static |
Definition at line 122 of file cdr_custom.c.
|
static |
Definition at line 122 of file cdr_custom.c.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 122 of file cdr_custom.c.
|
static |
Definition at line 70 of file cdr_custom.c.
References ast_rwlock_rdlock, ast_rwlock_unlock, cdrel_logger(), and configs_lock.
Referenced by load_module().
|
static |
Definition at line 95 of file cdr_custom.c.
References AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_rwlock_init, CDREL_BACKEND_TYPE, cdrel_load_module(), CDREL_RECORD_TYPE, CONFIG, configs_lock, CUSTOM_BACKEND_NAME, and custom_log().
|
static |
Definition at line 106 of file cdr_custom.c.
References ast_rwlock_unlock, ast_rwlock_wrlock, CDREL_BACKEND_TYPE, CDREL_RECORD_TYPE, cdrel_reload_module(), CONFIG, and configs_lock.
|
static |
Definition at line 81 of file cdr_custom.c.
References ast_rwlock_destroy, ast_rwlock_unlock, ast_rwlock_wrlock, CDREL_BACKEND_TYPE, CDREL_RECORD_TYPE, cdrel_unload_module(), configs_lock, and CUSTOM_BACKEND_NAME.
|
static |
Definition at line 122 of file cdr_custom.c.
|
static |
Definition at line 122 of file cdr_custom.c.
|
static |
Definition at line 60 of file cdr_custom.c.
|
static |
Protects in-flight log transactions from reloads.
Definition at line 65 of file cdr_custom.c.
Referenced by custom_log(), load_module(), reload(), and unload_module().