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 |
What account number to use
Definition at line 115 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_getvar(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_setaccount(), ast_cdr_update(), build_csv_record(), build_radius_record(), csv_log(), execute_cb(), manager_log(), ring_entry(), and sqlite_log().
| long int amaflags |
What flags to use
Definition at line 113 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_getvar(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_setamaflags(), build_csv_record(), build_radius_record(), csv_log(), execute_cb(), manager_log(), ring_entry(), and sqlite_log().
| struct timeval answer |
Definition at line 103 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_answer(), ast_cdr_end(), ast_cdr_fork(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_reset(), ast_cdr_setanswer(), ast_cdr_specialized_reset(), build_csv_record(), build_radius_record(), cdr_read(), execute_cb(), manager_log(), odbc_log(), ospfinished_exec(), pgsql_log(), sqlite_log(), and wait_for_answer().
| long int billsec |
Total time call is up, in seconds
Definition at line 109 of file cdr.h.
Referenced by ast_cdr_end(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_reset(), ast_cdr_specialized_reset(), build_csv_record(), build_radius_record(), csv_log(), execute_cb(), manager_log(), and sqlite_log().
| char channel[AST_MAX_EXTENSION] |
Definition at line 93 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_congestion(), ast_cdr_end(), ast_cdr_getvar(), ast_cdr_init(), ast_cdr_merge(), build_csv_record(), build_radius_record(), builtin_blindtransfer(), check_post(), csv_log(), execute_cb(), manager_log(), post_cdr(), ring_entry(), and sqlite_log().
| char clid[AST_MAX_EXTENSION] |
Caller*ID with text
Definition at line 85 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_merge(), build_csv_record(), build_radius_record(), execute_cb(), manager_log(), ring_entry(), set_one_cid(), and sqlite_log().
| char dcontext[AST_MAX_EXTENSION] |
Destination context
Definition at line 91 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_getvar(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_update(), build_csv_record(), build_radius_record(), execute_cb(), manager_log(), ring_entry(), and sqlite_log().
| long int disposition |
What happened to the call
Definition at line 111 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_answer(), ast_cdr_busy(), ast_cdr_congestion(), ast_cdr_end(), ast_cdr_failed(), ast_cdr_fork(), ast_cdr_getvar(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_noanswer(), ast_cdr_reset(), ast_cdr_setdisposition(), ast_cdr_specialized_reset(), build_csv_record(), build_radius_record(), csv_log(), execute_cb(), manager_log(), post_cdr(), sqlite_log(), and wait_for_answer().
| char dst[AST_MAX_EXTENSION] |
Destination extension
Definition at line 89 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_getvar(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_update(), build_csv_record(), build_radius_record(), csv_log(), execute_cb(), manager_log(), ring_entry(), and sqlite_log().
| char dstchannel[AST_MAX_EXTENSION] |
Destination channel if appropriate
Definition at line 95 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_fork(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setdestchan(), build_csv_record(), build_radius_record(), builtin_blindtransfer(), execute_cb(), manager_log(), post_cdr(), sqlite_log(), and try_calling().
| long int duration |
Total time in system, in seconds
Definition at line 107 of file cdr.h.
Referenced by ast_cdr_end(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_reset(), ast_cdr_specialized_reset(), build_csv_record(), build_radius_record(), csv_log(), execute_cb(), manager_log(), and sqlite_log().
| struct timeval end |
Definition at line 105 of file cdr.h.
Referenced by ast_cdr_end(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_reset(), ast_cdr_specialized_reset(), build_csv_record(), build_radius_record(), cdr_read(), execute_cb(), manager_log(), odbc_log(), pgsql_log(), and sqlite_log().
| char lastapp[AST_MAX_EXTENSION] |
Last application if appropriate
Definition at line 97 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setapp(), build_csv_record(), build_radius_record(), builtin_blindtransfer(), execute_cb(), manager_log(), ring_entry(), and sqlite_log().
| char lastdata[AST_MAX_EXTENSION] |
Last application data
Definition at line 99 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setapp(), build_csv_record(), build_radius_record(), builtin_blindtransfer(), execute_cb(), manager_log(), ring_entry(), and sqlite_log().
| char linkedid[32] |
Definition at line 124 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_init(), ast_cdr_update(), and try_calling().
Definition at line 133 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_answer(), ast_cdr_append(), ast_cdr_appenduserfield(), ast_cdr_busy(), ast_cdr_congestion(), ast_cdr_data_add_structure(), ast_cdr_discard(), ast_cdr_disposition(), ast_cdr_dup(), ast_cdr_end(), ast_cdr_failed(), ast_cdr_fork(), ast_cdr_free(), ast_cdr_free_vars(), ast_cdr_getvar_internal(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_noanswer(), ast_cdr_reset(), ast_cdr_serialize_variables(), ast_cdr_setaccount(), ast_cdr_setamaflags(), ast_cdr_setanswer(), ast_cdr_setapp(), ast_cdr_setcid(), ast_cdr_setdestchan(), ast_cdr_setdisposition(), ast_cdr_setpeeraccount(), ast_cdr_setuserfield(), ast_cdr_setvar(), ast_cdr_start(), ast_cdr_update(), cdr_read(), cdr_write(), forkcdr_exec(), pick_unlocked_cdr(), post_cdr(), and try_calling().
Account number of the last person we talked to
Definition at line 117 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_init(), ast_cdr_merge(), ast_cdr_setpeeraccount(), and ast_cdr_update().
| int sequence |
Sequence field
Definition at line 128 of file cdr.h.
Referenced by ast_cdr_getvar(), and cdr_seq_inc().
| char src[AST_MAX_EXTENSION] |
Caller*ID number
Definition at line 87 of file cdr.h.
Referenced by ast_cdr_getvar(), ast_cdr_merge(), build_csv_record(), build_radius_record(), csv_log(), execute_cb(), manager_log(), ring_entry(), set_one_cid(), and sqlite_log().
| struct timeval start |
Definition at line 101 of file cdr.h.
Referenced by action_status(), ast_bridge_call(), ast_cdr_end(), ast_cdr_fork(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_reset(), ast_cdr_specialized_reset(), ast_cdr_start(), build_csv_record(), build_radius_record(), cdr_read(), execute_cb(), handle_showchan(), manager_log(), odbc_log(), ospfinished_exec(), pgsql_log(), serialize_showchan(), and sqlite_log().
| char uniqueid[150] |
Unique Channel Identifier 150 = 127 (max systemname) + "-" + 10 (epoch timestamp) + "." + 10 (monotonically incrementing integer) + NULL
Definition at line 122 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_getvar(), ast_cdr_init(), build_csv_record(), build_radius_record(), execute_cb(), manager_log(), sqlite_log(), and try_calling().
| char userfield[AST_MAX_USER_FIELD] |
User field
Definition at line 126 of file cdr.h.
Referenced by ast_bridge_call(), ast_cdr_appenduserfield(), ast_cdr_getvar(), ast_cdr_merge(), ast_cdr_setuserfield(), build_csv_record(), build_radius_record(), execute_cb(), manager_log(), ring_entry(), and sqlite_log().
A linked list for variables
Definition at line 131 of file cdr.h.
Referenced by ast_cdr_copy_vars(), ast_cdr_data_add_structure(), ast_cdr_dup(), ast_cdr_free_vars(), ast_cdr_getvar_internal(), ast_cdr_serialize_variables(), ast_cdr_setvar(), and cdr_merge_vars().