acc_logic.h

Go to the documentation of this file.
00001 /*
00002  * $Id: acc_logic.h 4518 2008-07-28 15:39:28Z henningw $
00003  *
00004  * Accounting module
00005  *
00006  * Copyright (C) 2006 Voice Sistem SRL
00007  *
00008  * This file is part of Kamailio, a free SIP server.
00009  *
00010  * Kamailio is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version
00014  *
00015  * Kamailio is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *
00024  * History:
00025  * ---------
00026  * 2005-09-19  created during a big re-structuring of acc module(bogdan)
00027  */
00028 
00029 /*! \file
00030  * \ingroup acc
00031  * \brief Acc:: Accounting logic
00032  *
00033  * - \ref acc_logic.c
00034  * - Module: \ref acc
00035  */
00036 
00037 #ifndef _ACC_ACC_LOGIC_H
00038 #define _ACC_ACC_LOGIC_H
00039 
00040 #include "../../str.h"
00041 #include "../tm/t_hooks.h"
00042 
00043 
00044 /* various acc variables */
00045 struct acc_enviroment {
00046    unsigned int code;
00047    str code_s;
00048    str reason;
00049    struct hdr_field *to;
00050    str text;
00051    time_t ts;
00052 };
00053 
00054 /* param trasnporter*/
00055 struct acc_param {
00056    int code;
00057    str code_s;
00058    str reason;
00059 };
00060 
00061 
00062 void acc_onreq( struct cell* t, int type, struct tmcb_params *ps );
00063 
00064 int w_acc_log_request(struct sip_msg *rq, char *comment, char *foo);
00065 
00066 #ifdef SQL_ACC
00067 int w_acc_db_request(struct sip_msg *rq, char *comment, char *table);
00068 #endif
00069 
00070 #ifdef RAD_ACC
00071 int w_acc_rad_request(struct sip_msg *rq, char *comment, char *foo);
00072 #endif
00073 
00074 #ifdef DIAM_ACC
00075 int w_acc_diam_request(struct sip_msg *rq, char *comment, char *foo);
00076 #endif
00077 
00078 
00079 #endif

Generated on Thu May 17 12:00:24 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6