aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap-voip.h
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2007-10-24 08:30:46 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2007-10-24 08:30:46 +0000
commit28cb460c25cef00eda7ec0e66f69f778820c3815 (patch)
treef2d826f5353ad3c6dea9e73f40110309e186670f /epan/tap-voip.h
parentfdf4de405fb3402eeb708d870d3a67be32142864 (diff)
add common VoIP TAP listener "voip" which can be used in arbitrary experimental/proprietary protocol (implemented e.g. in plugin) and allows it to make graphs and replay streams
svn path=/trunk/; revision=23262
Diffstat (limited to 'epan/tap-voip.h')
-rw-r--r--epan/tap-voip.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/epan/tap-voip.h b/epan/tap-voip.h
new file mode 100644
index 0000000000..210fc2d46f
--- /dev/null
+++ b/epan/tap-voip.h
@@ -0,0 +1,59 @@
+/* tap-voip.h
+ * VoIP packet tap interface 2007 Tomas Kukosa
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _TAP_VOIP_H_
+#define _TAP_VOIP_H_
+
+/* defines voip call state */
+typedef enum _voip_call_state {
+ VOIP_NO_STATE,
+ VOIP_CALL_SETUP,
+ VOIP_RINGING,
+ VOIP_IN_CALL,
+ VOIP_CANCELLED,
+ VOIP_COMPLETED,
+ VOIP_REJECTED,
+ VOIP_UNKNOWN
+} voip_call_state;
+
+typedef enum _voip_call_active_state {
+ VOIP_ACTIVE,
+ VOIP_INACTIVE
+} voip_call_active_state;
+
+/* structure for common/proprietary VoIP calls TAP */
+typedef struct _voip_packet_info_t
+{
+ gchar *protocol_name;
+ gchar *call_id;
+ voip_call_state call_state;
+ voip_call_active_state call_active_state;
+ gchar *from_identity;
+ gchar *to_identity;
+ gchar *call_comment;
+ gchar *frame_label;
+ gchar *frame_comment;
+} voip_packet_info_t;
+
+#endif /* _TAP_VOIP_H_ */