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