| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Custom Comma Separated Value CDR records. More...
#include "asterisk.h"#include <time.h>#include "asterisk/paths.h"#include "asterisk/channel.h"#include "asterisk/cdr.h"#include "asterisk/module.h"#include "asterisk/config.h"#include "asterisk/pbx.h"#include "asterisk/utils.h"#include "asterisk/lock.h"#include "asterisk/threadstorage.h"#include "asterisk/strings.h"
Go to the source code of this file.
| Data Structures | |
| struct | cdr_custom_config | 
| struct | sinks | 
| Macros | |
| #define | CONFIG "cdr_custom.conf" | 
| Functions | |
| static void | __reg_module (void) | 
| static void | __unreg_module (void) | 
| struct ast_module * | AST_MODULE_SELF_SYM (void) | 
| AST_THREADSTORAGE_CUSTOM_SCOPE (custom_buf, NULL, ast_free_ptr, static) | |
| static int | custom_log (struct ast_cdr *cdr) | 
| static void | free_config (void) | 
| static int | load_config (void) | 
| 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", } | 
| static const struct ast_module_info * | ast_module_info = &__mod_info | 
| static const char | name [] = "cdr-custom" | 
| static struct sinks | sinks = AST_RWLIST_HEAD_INIT_VALUE | 
Custom Comma Separated Value CDR records.
Logs in LOG_DIR/cdr_custom
Definition in file cdr_custom.c.
| #define CONFIG "cdr_custom.conf" | 
Definition at line 61 of file cdr_custom.c.
| 
 | static | 
Definition at line 238 of file cdr_custom.c.
| 
 | static | 
Definition at line 238 of file cdr_custom.c.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) | 
Definition at line 238 of file cdr_custom.c.
| AST_THREADSTORAGE_CUSTOM_SCOPE | ( | custom_buf | , | 
| NULL | , | ||
| ast_free_ptr | , | ||
| static | |||
| ) | 
| 
 | static | 
Definition at line 132 of file cdr_custom.c.
References ast_cdr_dup(), ast_channel_cdr_set(), ast_channel_unref, ast_dummy_channel_alloc, AST_LIST_TRAVERSE, ast_log, ast_mutex_lock, ast_mutex_unlock, AST_RWLIST_RDLOCK, AST_RWLIST_UNLOCK, ast_str_buffer(), ast_str_substitute_variables(), ast_str_thread_get(), config, dummy(), errno, cdr_custom_config::list, LOG_ERROR, out, and str.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 78 of file cdr_custom.c.
References ast_free, ast_mutex_destroy, AST_RWLIST_REMOVE_HEAD, ast_string_field_free_memory, cdr_custom_config::list, and cdr_custom_config::lock.
Referenced by reload(), and unload_module().
| 
 | static | 
Definition at line 89 of file cdr_custom.c.
References ast_calloc_with_stringfields, ast_config_AST_LOG_DIR, ast_config_destroy(), ast_config_load, ast_log, ast_mutex_init, AST_RWLIST_INSERT_TAIL, ast_string_field_build, ast_strlen_zero(), ast_variable_browse(), CONFIG, CONFIG_STATUS_FILEINVALID, cdr_custom_config::filename, cdr_custom_config::format, cdr_custom_config::list, cdr_custom_config::lock, LOG_ERROR, LOG_NOTICE, name, and var.
Referenced by load_module(), and reload().
| 
 | static | 
Definition at line 205 of file cdr_custom.c.
References ast_cdr_register(), ast_log, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, custom_log(), ast_module_info::description, load_config(), LOG_ERROR, and name.
| 
 | static | 
Definition at line 218 of file cdr_custom.c.
References ast_log, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, free_config(), load_config(), and LOG_ERROR.
| 
 | static | 
Definition at line 188 of file cdr_custom.c.
References ast_cdr_register(), ast_cdr_unregister(), ast_log, AST_RWLIST_UNLOCK, AST_RWLIST_WRLOCK, custom_log(), ast_module_info::description, free_config(), LOG_ERROR, and name.
| 
 | static | 
Definition at line 238 of file cdr_custom.c.
| 
 | static | 
Definition at line 238 of file cdr_custom.c.
| 
 | static | 
Definition at line 65 of file cdr_custom.c.
Referenced by load_config(), load_module(), and unload_module().
| 
 | static |