116 char subst_buf[2048];
279 void *chan_or_data =
NULL;
295 chan_or_data =
dummy;
#define ast_strdup(str)
A wrapper for strdup()
#define ast_calloc(num, len)
A wrapper for calloc()
Private header for res_cdrel_custom.
int write_record_to_database(struct cdrel_config *config, struct cdrel_values *values)
int write_record_to_file(struct cdrel_config *config, struct ast_str *record)
cdrel_field_formatter cdrel_field_formatters[cdrel_data_type_end]
cdrel_backend_writer cdrel_backend_writers[cdrel_format_type_end]
cdrel_field_getter cdrel_field_getters[cdrel_record_type_end][cdrel_data_type_end]
static const char config[]
static void dummy(char *unused,...)
#define ast_channel_unref(c)
Decrease channel reference count.
static void free_value_vector(void *data)
static int log_advanced_record(struct cdrel_config *config, void *data)
static const cdrel_logger_cb logger_callbacks[cdrel_backend_type_end][cdrel_config_type_end]
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 int log_legacy_database_record(struct cdrel_config *config, void *data)
int(* cdrel_logger_cb)(struct cdrel_config *config, void *data)
static int log_legacy_dsv_record(struct cdrel_config *config, void *data)
Core PBX routines and definitions.
void ast_str_substitute_variables(struct ast_str **buf, ssize_t maxlen, struct ast_channel *chan, const char *templ)
void pbx_substitute_variables_helper(struct ast_channel *c, const char *cp1, char *cp2, int count)
void ast_str_reset(struct ast_str *buf)
Reset the content of a dynamic string. Useful before a series of ast_str_append.
char * ast_strip_quoted(char *s, const char *beg_quotes, const char *end_quotes)
Strip leading/trailing whitespace and quotes from a string.
struct ast_str * ast_str_thread_get(struct ast_threadstorage *ts, size_t init_len)
Retrieve a thread locally stored dynamic string.
Main Channel structure associated with a channel.
Support for dynamic strings.
enum cdrel_data_type input_data_type
enum cdrel_data_type output_data_type
union cdrel_value::@454 values
enum cdrel_data_type data_type
#define AST_THREADSTORAGE(name)
Define a thread storage variable.
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.
Vector container support.
#define AST_VECTOR_RESET(vec, cleanup)
Reset vector.
#define AST_VECTOR_SIZE(vec)
Get the number of elements in a vector.
#define AST_VECTOR_PTR_FREE(vec)
Deallocates this vector pointer.
#define AST_VECTOR_INIT(vec, size)
Initialize a vector.
#define AST_VECTOR_APPEND(vec, elem)
Append an element to a vector, growing the vector if needed.
#define AST_VECTOR_GET(vec, idx)
Get an element from a vector.