[asterisk-commits] mjordan: branch mjordan/12-hep r404723 - /team/mjordan/12-hep/include/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 3 10:45:22 CST 2014


Author: mjordan
Date: Fri Jan  3 10:45:20 2014
New Revision: 404723

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404723
Log:
Add the header file :-)

Added:
    team/mjordan/12-hep/include/asterisk/res_hepv3.h   (with props)

Added: team/mjordan/12-hep/include/asterisk/res_hepv3.h
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/12-hep/include/asterisk/res_hepv3.h?view=auto&rev=404723
==============================================================================
--- team/mjordan/12-hep/include/asterisk/res_hepv3.h (added)
+++ team/mjordan/12-hep/include/asterisk/res_hepv3.h Fri Jan  3 10:45:20 2014
@@ -1,0 +1,84 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 1999 - 2013, Digium, Inc.
+ *
+ * Alexandr Dubovikov <alexandr.dubovikov at sipcapture.org>
+ * Matt Jordan <mjordan at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+/*!
+ * \file
+ * \brief Routines for integration with Homer using HEPv3
+ *
+ * \author Alexandr Dubovikov <alexandr.dubovikov at sipcapture.org>
+ * \author Matt Jordan <mjordan at digium.com>
+ *
+ */
+
+#ifndef _ASTERISK_RES_HEPV3_H
+#define _ASTERISK_RES_HEPV3_H
+
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+#include "asterisk/netsock2.h"
+
+/*! \brief HEPv3 Packet Capture Types */
+enum hepv3_capture_type {
+	hepv3_capture_type_sip = 0x01,
+	hepv3_capture_type_h323 = 0x02,
+	hepv3_capture_type_sdp = 0x03,
+	hepv3_capture_type_rtp = 0x04,
+	hepv3_capture_type_rtcp = 0x05,
+	hepv3_capture_type_mgcp = 0x06,
+	hepv3_capture_type_megaco = 0x07,
+	hepv3_capture_type_m2ua = 0x08,
+	hepv3_capture_type_m3ua = 0x09,
+	hepv3_capture_type_iax = 0x10,
+};
+
+/*! \brief HEPv3 Capture Info */
+struct hepv3_capture_info {
+	/*! The source address of the packet */
+	struct ast_sockaddr src_addr;
+	/*! The destination address of the packet */
+	struct ast_sockaddr dst_addr;
+	/*! The time the packet was captured */
+	struct timeval capture_time;
+	/*! The \ref hepv3_capture_type packet type captured */
+	enum hepv3_capture_type capture_type;
+	/*! Some UUID for the packet */
+	char *uuid;
+	/*! If non-zero, the payload accompanying this capture info will be compressed */
+	int zipped:1;
+};
+
+/*!
+ * \brief Send a generic packet capture to HEPv3
+ *
+ * \param capture_info Information describing the packet
+ * \param buf The buffer containing the data to be sent
+ * \param len The length of the buffer
+ *
+ * \retval 0 on success
+ * \retval -1 on error
+ */
+int hepv3_send_packet(struct hepv3_capture_info *capture_info, const void *buf, size_t len);
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
+#endif /* _ASTERISK_RES_HEPV3_H */

Propchange: team/mjordan/12-hep/include/asterisk/res_hepv3.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/mjordan/12-hep/include/asterisk/res_hepv3.h
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/mjordan/12-hep/include/asterisk/res_hepv3.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list