26 #ifndef _ASTERISK_CDR_H 27 #define _ASTERISK_CDR_H 294 struct timeval start;
440 int ast_cdr_reset(
const char *channel_name,
int keep_variables);
static char accountcode[AST_MAX_ACCOUNT_CODE]
int ast_cdr_backend_suspend(const char *name)
Suspend a CDR backend temporarily.
int ast_cdr_setvar(const char *channel_name, const char *name, const char *value)
Set a variable on a CDR.
int ast_cdr_unregister(const char *name)
Unregister a CDR handling engine.
struct ast_flags settings
int ast_cdr_getvar(const char *channel_name, const char *name, char *value, size_t length)
Retrieve a CDR variable from a channel's current CDR.
void ast_cdr_set_config(struct ast_cdr_config *config)
Set the current CDR configuration.
int ast_cdr_backend_unsuspend(const char *name)
Unsuspend a CDR backend.
int ast_cdr_fork(const char *channel_name, struct ast_flags *options)
Fork a CDR.
struct ast_cdr * ast_cdr_dup(struct ast_cdr *cdr)
Duplicate a public CDR.
int(* ast_cdrbe)(struct ast_cdr *cdr)
CDR backend callback.
ast_cdr_options
CDR manipulation options. Certain function calls will manipulate the state of a CDR object based on t...
#define AST_MAX_ACCOUNT_CODE
int ast_cdr_is_enabled(void)
Return TRUE if CDR subsystem is enabled.
void ast_cdr_format_var(struct ast_cdr *cdr, const char *name, char **ret, char *workspace, int workspacelen, int raw)
Format a CDR variable from an already posted CDR.
struct stasis_message_router * ast_cdr_message_router(void)
Return the message router for the CDR engine.
int ast_cdr_register(const char *name, const char *desc, ast_cdrbe be)
Register a CDR handling engine.
General Asterisk PBX channel definitions.
struct ast_cdr_config::batch_settings batch_settings
#define AST_MAX_EXTENSION
int ast_cdr_reset(const char *channel_name, int keep_variables)
Reset the detail record.
static int answer(void *data)
int ast_cdr_set_property(const char *channel_name, enum ast_cdr_options option)
Set a property on a CDR for a channel.
void ast_cdr_engine_term(void)
Responsible for call detail data.
int ast_cdr_modifier_register(const char *name, const char *desc, ast_cdrbe be)
Register a CDR modifier.
const char * ast_cdr_disp2str(int disposition)
Disposition to a string.
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
struct ast_cdr_config * ast_cdr_get_config(void)
Obtain the current CDR configuration.
void ast_cdr_setuserfield(const char *channel_name, const char *userfield)
Set CDR user field for channel (stored in CDR)
Structure used to handle boolean flags.
struct ast_flags settings
ast_cdr_disposition
CDR Flags - Disposition.
void ast_cdr_free(struct ast_cdr *cdr)
Free a CDR record.
int ast_cdr_serialize_variables(const char *channel_name, struct ast_str **buf, char delim, char sep)
Serializes all the data and variables for a current CDR record.
int ast_cdr_clear_property(const char *channel_name, enum ast_cdr_options option)
Clear a property on a CDR for a channel.
The global options available for CDRs.
ast_cdr_settings
CDR engine settings.
struct ast_cdr * ast_cdr_alloc(void)
Allocate a CDR record.
int ast_cdr_modifier_unregister(const char *name)
Unregister a CDR modifier.
ast_cdr_batch_mode_settings
CDR Batch Mode settings.
char userfield[AST_MAX_USER_FIELD]
#define AST_MAX_USER_FIELD