|
Asterisk - The Open Source Telephony Project GIT-master-80b953f
|
Common log entrypoint from the cdr/cel modules. More...

Go to the source code of this file.
Typedefs | |
| typedef int(* | cdrel_logger_cb) (struct cdrel_config *config, void *data) |
Functions | |
| AST_THREADSTORAGE_CUSTOM_SCOPE (custom_buf, NULL, ast_free_ptr, static) | |
| int | cdrel_logger (struct cdrel_configs *configs, void *data) |
| Log a record. The module's logging_cb must call this. | |
| static void | free_value (void *data) |
| static void | free_value_vector (void *data) |
| static int | log_advanced_record (struct cdrel_config *config, void *data) |
| static int | log_legacy_database_record (struct cdrel_config *config, void *data) |
| static int | log_legacy_dsv_record (struct cdrel_config *config, void *data) |
Variables | |
| static const cdrel_logger_cb | logger_callbacks [cdrel_backend_type_end][cdrel_config_type_end] |
Common log entrypoint from the cdr/cel modules.
Definition in file loggers.c.
| typedef int(* cdrel_logger_cb) (struct cdrel_config *config, void *data) |
| AST_THREADSTORAGE_CUSTOM_SCOPE | ( | custom_buf | , |
| NULL | , | ||
| ast_free_ptr | , | ||
| static | |||
| ) |
| int cdrel_logger | ( | struct cdrel_configs * | configs, |
| void * | data | ||
| ) |
Log a record. The module's logging_cb must call this.
| configs | A pointer to the VECTOR of config objects returned by cdrel_load_module. |
| data | A pointer to an ast_cdr or ast_event object to log. |
| 0 | Success. |
| -1 | Failure. |
Definition at line 270 of file loggers.c.
References ast_channel_unref, ast_log, AST_VECTOR_GET, AST_VECTOR_SIZE, cdrel_config_legacy, config, dummy(), LOG_ERROR, logger_callbacks, and NULL.
Referenced by custom_log(), custom_log(), custom_log(), and custom_log().
|
static |
Definition at line 45 of file loggers.c.
References ast_free, cdrel_type_string, and NULL.
Referenced by free_value_vector().
|
static |
Definition at line 61 of file loggers.c.
References AST_VECTOR_PTR_FREE, AST_VECTOR_RESET, and free_value().
Referenced by log_advanced_record(), and log_legacy_database_record().
|
static |
Definition at line 174 of file loggers.c.
References ast_calloc, ast_free, AST_VECTOR_APPEND, AST_VECTOR_GET, AST_VECTOR_INIT, AST_VECTOR_SIZE, cdrel_backend_writers, cdrel_field_formatters, cdrel_field_getters, config, cdrel_value::data_type, free_value_vector(), cdrel_field::input_data_type, cdrel_value::mallocd, cdrel_field::output_data_type, RAII_VAR, and cdrel_value::values.
|
static |
Definition at line 111 of file loggers.c.
References ast_calloc, ast_free, ast_strdup, ast_strip_quoted(), AST_VECTOR_APPEND, AST_VECTOR_GET, AST_VECTOR_INIT, AST_VECTOR_SIZE, cdrel_type_string, config, ast_channel::data, cdrel_field::data, cdrel_value::data_type, dummy(), cdrel_value::field_name, free_value_vector(), cdrel_value::mallocd, cdrel_field::name, NULL, pbx_substitute_variables_helper(), RAII_VAR, cdrel_value::string, cdrel_value::values, and write_record_to_database().
|
static |
Definition at line 82 of file loggers.c.
References ast_str_reset(), ast_str_substitute_variables(), ast_str_thread_get(), config, ast_channel::data, dummy(), str, and write_record_to_file().
|
static |
Definition at line 238 of file loggers.c.
Referenced by cdrel_logger().