1 /* 2 * Accounting module 3 * 4 * Copyright (C) 2001-2003 FhG Fokus 5 * Copyright (C) 2006 Voice Sistem SRL 6 * 7 * This file is part of Kamailio, a free SIP server. 8 * 9 * Kamailio is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version 13 * 14 * Kamailio is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 * 23 */ 24 25 /*! \file 26 * \ingroup acc 27 * \brief Acc:: Core module 28 * 29 * - \ref acc_mod.c 30 * - Module: \ref acc 31 */ 32 33 #ifndef _ACC_MOD_H 34 #define _ACC_MOD_H 35 36 /* module parameter declaration */ 37 extern int report_cancels; 38 extern int report_ack; 39 extern int early_media; 40 extern int failed_transaction_flag; 41 extern unsigned short failed_filter[]; 42 extern int detect_direction; 43 extern int acc_prepare_flag; 44 extern int reason_from_hf; 45 46 extern int log_facility; 47 extern int log_level; 48 extern int log_flag; 49 extern int log_missed_flag; 50 51 extern int cdr_enable; 52 extern int cdr_extra_nullable; 53 extern int cdr_start_on_confirmed; 54 extern int cdr_log_facility; 55 extern int cdr_expired_dlg_enable; 56 extern str cdr_skip; 57 58 extern int db_flag; 59 extern int db_missed_flag; 60 61 extern str db_table_acc; 62 extern void *db_table_acc_data; 63 extern str db_table_mc; 64 extern void *db_table_mc_data; 65 66 extern str acc_method_col; 67 extern str acc_fromuri_col; 68 extern str acc_fromtag_col; 69 extern str acc_touri_col; 70 extern str acc_totag_col; 71 extern str acc_callid_col; 72 extern str acc_cseqno_col; 73 extern str acc_sipcode_col; 74 extern str acc_sipreason_col; 75 extern str acc_time_col; 76 77 extern int acc_db_insert_mode; 78 79 /* time mode */ 80 extern int acc_time_mode; 81 extern str acc_time_attr; 82 extern str acc_time_exten; 83 84 extern int acc_prepare_always; 85 86 #endif 87