core_stats.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright (C) 2006 Voice Sistem SRL
  3. *
  4. * This file is part of Kamailio, a free SIP server.
  5. *
  6. * Kamailio is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Kamailio is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. *
  20. * History:
  21. * ---------
  22. * 2006-01-23 first version (bogdan)
  23. * 2006-11-28 Added statistics for the number of bad URI's, methods, and
  24. * proxy requests (Jeffrey Magder - SOMA Networks)
  25. */
  26. /*!
  27. * \file
  28. * \brief KEX :: Kamailio statistics
  29. * \ingroup kex
  30. */
  31. #ifndef _CORE_STATS_H_
  32. #define _CORE_STATS_H_
  33. #include "../../lib/kcore/statistics.h"
  34. #ifdef STATISTICS
  35. /*! exported core statistics */
  36. extern stat_export_t core_stats[];
  37. /*! \brief received requests */
  38. extern stat_var* rcv_reqs;
  39. /*! \brief received replies */
  40. extern stat_var* rcv_rpls;
  41. /*! \brief forwarded requests */
  42. extern stat_var* fwd_reqs;
  43. /*! \brief forwarded replies */
  44. extern stat_var* fwd_rpls;
  45. /*! \brief dropped requests */
  46. extern stat_var* drp_reqs;
  47. /*! \brief dropped replies */
  48. extern stat_var* drp_rpls;
  49. /*! \brief error requests */
  50. extern stat_var* err_reqs;
  51. /*! \brief error replies */
  52. extern stat_var* err_rpls;
  53. /*! \brief Set in parse_uri() */
  54. extern stat_var* bad_URIs;
  55. /*! \brief Set in parse_method() */
  56. extern stat_var* unsupported_methods;
  57. /*! \brief Set in get_hdr_field(). */
  58. extern stat_var* bad_msg_hdr;
  59. int register_mi_stats(void);
  60. int register_core_stats(void);
  61. #endif /*STATISTICS*/
  62. #endif /*_CORE_STATS_H_*/