sipcapture.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * $Id$
  3. *
  4. * hep related structure
  5. *
  6. * Copyright (C) 2011-2014 Alexandr Dubovikov (QSC AG) ([email protected])
  7. *
  8. * This file is part of Kamailio, a free SIP server.
  9. *
  10. * Kamailio is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version
  14. *
  15. * Kamailio is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. */
  25. #ifndef _sipcapture_h
  26. #define _sipcapture_h
  27. struct _sipcapture_object {
  28. str method;
  29. str reply_reason;
  30. str ruri;
  31. str ruri_user;
  32. str from_user;
  33. str from_tag;
  34. str to_user;
  35. str to_tag;
  36. str pid_user;
  37. str contact_user;
  38. str auth_user;
  39. str callid;
  40. str callid_aleg;
  41. str via_1;
  42. str via_1_branch;
  43. str cseq;
  44. str diversion;
  45. str reason;
  46. str content_type;
  47. str authorization;
  48. str user_agent;
  49. str source_ip;
  50. int source_port;
  51. str destination_ip;
  52. int destination_port;
  53. str contact_ip;
  54. int contact_port;
  55. str originator_ip;
  56. int originator_port;
  57. int proto;
  58. int family;
  59. str rtp_stat;
  60. int type;
  61. long long tmstamp;
  62. str node;
  63. str msg;
  64. #ifdef STATISTICS
  65. stat_var *stat;
  66. #endif
  67. };
  68. struct hep_generic_recv;
  69. int receive_logging_json_msg(char * buf, unsigned int len, struct hep_generic_recv *hg, char *log_table);
  70. #endif /* _sipcapture_h */