Responsible for call detail data. More...
#include <cdr.h>

Data Fields | |
| char | accountcode [AST_MAX_ACCOUNT_CODE] |
| long int | amaflags |
| struct timeval | answer |
| long int | billsec |
| char | channel [AST_MAX_EXTENSION] |
| char | clid [AST_MAX_EXTENSION] |
| char | dcontext [AST_MAX_EXTENSION] |
| long int | disposition |
| char | dst [AST_MAX_EXTENSION] |
| char | dstchannel [AST_MAX_EXTENSION] |
| long int | duration |
| struct timeval | end |
| unsigned int | flags |
| char | lastapp [AST_MAX_EXTENSION] |
| char | lastdata [AST_MAX_EXTENSION] |
| char | linkedid [32] |
| struct ast_cdr * | next |
| char | peeraccount [AST_MAX_ACCOUNT_CODE] |
| int | sequence |
| char | src [AST_MAX_EXTENSION] |
| struct timeval | start |
| char | uniqueid [150] |
| char | userfield [AST_MAX_USER_FIELD] |
| struct varshead | varshead |
Responsible for call detail data.
| char accountcode[AST_MAX_ACCOUNT_CODE] |
What account number to use
Definition at line 114 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_init(), ast_cdr_setaccount(), ast_cdr_update(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), and ast_bridge_call().
| long int amaflags |
What flags to use
Definition at line 112 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_init(), ast_cdr_setamaflags(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), and ast_bridge_call().
| struct timeval answer |
Definition at line 102 of file cdr.h.
Referenced by wait_for_answer(), end_bridge_callback(), dial_exec_full(), ast_cdr_fork(), ospfinished_exec(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_answer(), ast_cdr_setanswer(), ast_cdr_end(), ast_cdr_reset(), ast_cdr_specialized_reset(), odbc_log(), build_csv_record(), manager_log(), execute_cb(), pgsql_log(), build_radius_record(), sqlite_log(), ast_bridge_call(), and cdr_read().
| long int billsec |
Total time call is up, in seconds
Definition at line 108 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_end(), ast_cdr_reset(), ast_cdr_specialized_reset(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), and sqlite_log().
| char channel[AST_MAX_EXTENSION] |
Definition at line 92 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), check_post(), ast_cdr_merge(), ast_cdr_init(), ast_cdr_end(), post_cdr(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), login_exec(), agentmonitoroutgoing_exec(), builtin_blindtransfer(), and ast_bridge_call().
| char clid[AST_MAX_EXTENSION] |
Caller*ID with text
Definition at line 84 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), set_one_cid(), build_csv_record(), manager_log(), execute_cb(), build_radius_record(), and sqlite_log().
| char dcontext[AST_MAX_EXTENSION] |
Destination context
Definition at line 90 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_init(), ast_cdr_update(), build_csv_record(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), and ast_bridge_call().
| long int disposition |
What happened to the call
Definition at line 110 of file cdr.h.
Referenced by wait_for_answer(), ast_cdr_fork(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_answer(), ast_cdr_busy(), ast_cdr_failed(), ast_cdr_noanswer(), ast_cdr_setdisposition(), ast_cdr_init(), ast_cdr_end(), post_cdr(), ast_cdr_reset(), ast_cdr_specialized_reset(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), ast_hangup(), and ast_bridge_call().
| char dst[AST_MAX_EXTENSION] |
Destination extension
Definition at line 88 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_init(), ast_cdr_update(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), and ast_bridge_call().
| char dstchannel[AST_MAX_EXTENSION] |
Destination channel if appropriate
Definition at line 94 of file cdr.h.
Referenced by ast_cdr_fork(), try_calling(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setdestchan(), post_cdr(), build_csv_record(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), builtin_blindtransfer(), and ast_bridge_call().
| long int duration |
Total time in system, in seconds
Definition at line 106 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_end(), ast_cdr_reset(), ast_cdr_specialized_reset(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), and sqlite_log().
| struct timeval end |
Definition at line 104 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_end(), ast_cdr_reset(), ast_cdr_specialized_reset(), odbc_log(), build_csv_record(), manager_log(), execute_cb(), pgsql_log(), build_radius_record(), sqlite_log(), and cdr_read().
| char lastapp[AST_MAX_EXTENSION] |
Last application if appropriate
Definition at line 96 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setapp(), build_csv_record(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), builtin_blindtransfer(), and ast_bridge_call().
| char lastdata[AST_MAX_EXTENSION] |
Last application data
Definition at line 98 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setapp(), build_csv_record(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), builtin_blindtransfer(), and ast_bridge_call().
| char linkedid[32] |
Definition at line 123 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_init(), and ast_cdr_update().
Definition at line 132 of file cdr.h.
Referenced by ast_cdr_fork(), ast_cdr_dup(), ast_cdr_getvar_internal(), ast_cdr_setvar(), ast_cdr_serialize_variables(), ast_cdr_free_vars(), ast_cdr_free(), ast_cdr_discard(), ast_cdr_merge(), ast_cdr_start(), ast_cdr_answer(), ast_cdr_busy(), ast_cdr_failed(), ast_cdr_noanswer(), ast_cdr_disposition(), ast_cdr_setdestchan(), ast_cdr_setapp(), ast_cdr_setanswer(), ast_cdr_setdisposition(), ast_cdr_setcid(), ast_cdr_init(), ast_cdr_end(), ast_cdr_setaccount(), ast_cdr_setpeeraccount(), ast_cdr_setamaflags(), ast_cdr_setuserfield(), ast_cdr_appenduserfield(), ast_cdr_update(), post_cdr(), ast_cdr_reset(), ast_cdr_append(), ast_cdr_data_add_structure(), pick_unlocked_cdr(), ast_bridge_call(), cdr_read(), and cdr_write().
| char peeraccount[AST_MAX_ACCOUNT_CODE] |
Account number of the last person we talked to
Definition at line 116 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_init(), ast_cdr_setpeeraccount(), and ast_cdr_update().
| int sequence |
Sequence field
Definition at line 127 of file cdr.h.
Referenced by ast_cdr_getvar(), and cdr_seq_inc().
| char src[AST_MAX_EXTENSION] |
Caller*ID number
Definition at line 86 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), set_one_cid(), build_csv_record(), csv_log(), manager_log(), execute_cb(), build_radius_record(), and sqlite_log().
| struct timeval start |
Definition at line 100 of file cdr.h.
Referenced by end_bridge_callback(), serialize_showchan(), ast_cdr_fork(), ospfinished_exec(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_start(), ast_cdr_end(), ast_cdr_reset(), ast_cdr_specialized_reset(), odbc_log(), build_csv_record(), manager_log(), execute_cb(), pgsql_log(), build_radius_record(), sqlite_log(), show_chanstats_cb(), handle_showchan(), ast_bridge_call(), cdr_read(), action_status(), and action_coreshowchannels().
| char uniqueid[150] |
Unique Channel Identifier 150 = 127 (max systemname) + "-" + 10 (epoch timestamp) + "." + 10 (monotonically incrementing integer) + NULL
Definition at line 121 of file cdr.h.
Referenced by try_calling(), ast_cdr_getvar(), ast_cdr_init(), build_csv_record(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), and ast_bridge_call().
| char userfield[AST_MAX_USER_FIELD] |
User field
Definition at line 125 of file cdr.h.
Referenced by ring_entry(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setuserfield(), ast_cdr_appenduserfield(), build_csv_record(), manager_log(), execute_cb(), build_radius_record(), sqlite_log(), and ast_bridge_call().
A linked list for variables
Definition at line 130 of file cdr.h.
Referenced by ast_cdr_dup(), ast_cdr_getvar_internal(), ast_cdr_setvar(), ast_cdr_copy_vars(), ast_cdr_serialize_variables(), ast_cdr_free_vars(), cdr_merge_vars(), and ast_cdr_data_add_structure().