|
Asterisk - The Open Source Telephony Project GIT-master-80b953f
|
Custom Comma Separated Value CEL records. More...
#include "asterisk.h"#include "asterisk/cel.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_cel |
| #define | CONFIG "cel_custom.conf" |
| #define | CUSTOM_BACKEND_NAME "CEL Custom CSV Logging" |
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| struct ast_module * | AST_MODULE_SELF_SYM (void) |
| static void | custom_log (struct ast_event *event) |
| 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 CEL 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 = "cel,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 CEL records.
The logic for this module now resides in res/res_cdrel_custom.c.
Definition in file cel_custom.c.
| #define CDREL_BACKEND_TYPE cdrel_backend_text |
Definition at line 55 of file cel_custom.c.
| #define CDREL_RECORD_TYPE cdrel_record_cel |
Definition at line 54 of file cel_custom.c.
| #define CONFIG "cel_custom.conf" |
Definition at line 43 of file cel_custom.c.
| #define CUSTOM_BACKEND_NAME "CEL Custom CSV Logging" |
Definition at line 45 of file cel_custom.c.
|
static |
Definition at line 105 of file cel_custom.c.
|
static |
Definition at line 105 of file cel_custom.c.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 105 of file cel_custom.c.
|
static |
Definition at line 57 of file cel_custom.c.
References ast_rwlock_rdlock, ast_rwlock_unlock, cdrel_logger(), and configs_lock.
Referenced by load_module().
|
static |
Definition at line 78 of file cel_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 89 of file cel_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 64 of file cel_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 105 of file cel_custom.c.
|
static |
Definition at line 105 of file cel_custom.c.
|
static |
Definition at line 47 of file cel_custom.c.
|
static |
Protects in-flight log transactions from reloads.
Definition at line 52 of file cel_custom.c.
Referenced by custom_log(), load_module(), reload(), and unload_module().