acc_mod.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Accounting module
00005  *
00006  * Copyright (C) 2001-2003 FhG Fokus
00007  * Copyright (C) 2006 Voice Sistem SRL
00008  *
00009  * This file is part of Kamailio, a free SIP server.
00010  *
00011  * Kamailio is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version
00015  *
00016  * Kamailio is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  * History:
00026  * ---------
00027  * 2003-04-04  grand acc cleanup (jiri)
00028  * 2003-11-04  multidomain support for mysql introduced (jiri)
00029  * 2004-06-06  removed db_url, db_handle (andrei)
00030  * 2005-06-28  multi leg call support added (bogdan)
00031  * 2006-09-19  final stage of a masive re-structuring and cleanup (bogdan)
00032  */
00033 
00042 #ifndef _ACC_MOD_H
00043 #define _ACC_MOD_H
00044 
00045 /* module parameter declaration */
00046 extern int report_cancels;
00047 extern int report_ack;
00048 extern int early_media;
00049 extern int failed_transaction_flag;
00050 extern unsigned short failed_filter[];
00051 extern int detect_direction;
00052 extern int acc_prepare_flag;
00053 
00054 extern int log_facility;
00055 extern int log_level;
00056 extern int log_flag;
00057 extern int log_missed_flag;
00058 
00059 extern int cdr_enable;
00060 extern int cdr_start_on_confirmed;
00061 extern int cdr_log_facility;
00062 
00063 #ifdef RAD_ACC
00064 extern int radius_flag;
00065 extern int radius_missed_flag;
00066 extern void *rh;
00067 #endif
00068 
00069 #ifdef DIAM_ACC
00070 #include "diam_tcp.h"
00071 extern rd_buf_t *rb;
00072 extern int diameter_flag;
00073 extern int diameter_missed_flag;
00074 #endif
00075 
00076 #ifdef SQL_ACC
00077 extern int db_flag;
00078 extern int db_missed_flag;
00079 
00080 extern str db_table_acc;
00081 extern str db_table_mc;
00082 
00083 extern str acc_method_col;
00084 extern str acc_fromuri_col;
00085 extern str acc_fromtag_col;
00086 extern str acc_touri_col;
00087 extern str acc_totag_col;
00088 extern str acc_callid_col;
00089 extern str acc_cseqno_col;
00090 extern str acc_sipcode_col;
00091 extern str acc_sipreason_col;
00092 extern str acc_time_col;
00093 #endif /* SQL_ACC */
00094 
00095 
00096 #endif