modules_k/kex/core_stats.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2006 Voice Sistem SRL
00003  *
00004  * This file is part of Kamailio, a free SIP server.
00005  *
00006  * Kamailio is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * Kamailio is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019  *
00020  * History:
00021  * ---------
00022  *  2006-01-23  first version (bogdan)
00023  *  2006-11-28  Added statistics for the number of bad URI's, methods, and 
00024  *              proxy requests (Jeffrey Magder - SOMA Networks)
00025  */
00026 
00034 #ifndef _CORE_STATS_H_
00035 #define _CORE_STATS_H_
00036 
00037 #include "../../lib/kcore/statistics.h"
00038 
00039 #ifdef STATISTICS
00040 
00041 extern stat_export_t core_stats[];
00042 
00044 extern stat_var* rcv_reqs;
00045 
00047 extern stat_var* rcv_rpls;
00048 
00050 extern stat_var* fwd_reqs;
00051 
00053 extern stat_var* fwd_rpls;
00054 
00056 extern stat_var* drp_reqs;
00057 
00059 extern stat_var* drp_rpls;
00060 
00062 extern stat_var* err_reqs;
00063 
00065 extern stat_var* err_rpls;
00066 
00068 extern stat_var* bad_URIs;
00069 
00071 extern stat_var* unsupported_methods;
00072 
00074 extern stat_var* bad_msg_hdr;
00075  
00076 int register_mi_stats(void);
00077 int register_core_stats(void);
00078 
00079 #endif /*STATISTICS*/
00080 
00081 #endif /*_CORE_STATS_H_*/