Asterisk - The Open Source Telephony Project GIT-master-80b953f
Loading...
Searching...
No Matches
Data Fields
cdrel_config Struct Reference

#include <cdrel.h>

Collaboration diagram for cdrel_config:
Collaboration graph
[legend]

Data Fields

struct ast_string_field_mgr __field_mgr
 
struct ast_string_field_pool__field_mgr_pool
 
enum cdrel_backend_type backend_type
 
int busy_timeout
 
const ast_string_field config_filename
 
enum cdrel_config_type config_type
 
sqlite3 * db
 
const ast_string_field db_columns
 
const ast_string_field db_table
 
cdrel_dummy_channel_alloc dummy_channel_alloc
 
struct { 
 
   size_t   current 
 
   struct cdrel_field **   elems 
 
   size_t   max 
 
fields 
 
enum cdrel_text_format_type format_type
 
sqlite3_stmt * insert
 
ast_mutex_t lock
 
const ast_string_field output_filename
 
char quote [2]
 
char quote_escape [2]
 
enum cdrel_quoting_method quoting_method
 
enum cdrel_record_type record_type
 
char separator [2]
 
const ast_string_field template
 

Detailed Description

Represents an output definition from a config file

Definition at line 281 of file cdrel.h.

Field Documentation

◆ __field_mgr

struct ast_string_field_mgr __field_mgr

Definition at line 289 of file cdrel.h.

◆ __field_mgr_pool

struct ast_string_field_pool* __field_mgr_pool

Definition at line 289 of file cdrel.h.

◆ backend_type

enum cdrel_backend_type backend_type

Text file or database

Definition at line 294 of file cdrel.h.

◆ busy_timeout

int busy_timeout

sqlite3 query timeout value

Definition at line 292 of file cdrel.h.

◆ config_filename

const ast_string_field config_filename

Definition at line 289 of file cdrel.h.

◆ config_type

enum cdrel_config_type config_type

Legacy or advanced

Definition at line 295 of file cdrel.h.

◆ current

size_t current

Definition at line 301 of file cdrel.h.

◆ db

sqlite3* db

sqlite3 database handle

Definition at line 290 of file cdrel.h.

◆ db_columns

const ast_string_field db_columns

Definition at line 289 of file cdrel.h.

◆ db_table

const ast_string_field db_table

Definition at line 289 of file cdrel.h.

◆ dummy_channel_alloc

cdrel_dummy_channel_alloc dummy_channel_alloc

Legacy config types need a dummy channel

Definition at line 293 of file cdrel.h.

◆ elems

struct cdrel_field* * elems

Definition at line 301 of file cdrel.h.

◆ [struct]

struct { ... } fields

Vector of fields for this config

Referenced by load_text_file_advanced_config(), and load_text_file_legacy_config().

◆ format_type

enum cdrel_text_format_type format_type

For text files, CSV or JSON

Definition at line 296 of file cdrel.h.

◆ insert

sqlite3_stmt* insert

sqlite3 prepared statement for insert

Definition at line 291 of file cdrel.h.

◆ lock

Lock that serializes filesystem writes

Definition at line 302 of file cdrel.h.

◆ max

size_t max

Definition at line 301 of file cdrel.h.

◆ output_filename

const ast_string_field output_filename

Definition at line 289 of file cdrel.h.

Referenced by load_text_file_legacy_config().

◆ quote

char quote[2]

For text files, the quote character

Definition at line 299 of file cdrel.h.

◆ quote_escape

char quote_escape[2]

For text files, character to use to escape embedded quotes

Definition at line 300 of file cdrel.h.

◆ quoting_method

enum cdrel_quoting_method quoting_method

When to quote

Definition at line 297 of file cdrel.h.

◆ record_type

enum cdrel_record_type record_type

CDR or CEL Input configuration filename Output text file or database Input template List of columns for database backends Table name for database backends

Definition at line 282 of file cdrel.h.

Referenced by load_config_file(), load_text_file_advanced_config(), load_text_file_config_file(), load_text_file_legacy_config(), load_text_file_legacy_mappings(), register_backend(), and unregister_backend().

◆ separator

char separator[2]

For text files, the field separator

Definition at line 298 of file cdrel.h.

◆ template

const ast_string_field template

Definition at line 289 of file cdrel.h.

Referenced by Transform::render().


The documentation for this struct was generated from the following file: