1 /* packet-unistim.h
2  * header field declarations, value_string definitions, true_false_string
3  * definitions and function prototypes for main dissectors
4  * Copyright 2007 Don Newton <dnewton@cypresscom.net>
5  *
6  * Wireshark - Network traffic analyzer
7  * By Gerald Combs <gerald@wireshark.org>
8  * Copyright 1998 Gerald Combs
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  */
12 
13 #ifndef PACKET_UNISTIM_H
14 #define PACKET_UNISTIM_H
15 
16 typedef struct _unistim_info_t
17 {
18 	guint8        rudp_type;      /* NAK, ACK, Payload */
19 	guint8        payload_type;   /* unistim payload type (aggregate, non-aggregate, encapsulated) */
20 	guint32       sequence;       /* rudp sequence number */
21 	guint32       termid;         /* termid if available */
22 	address       it_ip;          /* IP addr of it, determined by who is sending termids */
23 	guint32       it_port;        /* port of it (phone) */
24 	address       ni_ip;          /* IP addr of ni (server) as determined by who's sending termids */
25 	gint          key_val;        /* actual key pressed (-1 if not used) */
26 	gint          key_state;      /* Key state 1=down 0=up */
27 	gint          hook_state;     /* Hook state 1=offhook 0=onhook */
28 	gint          stream_connect; /* Audio stream connect 1=connect 0=disconnect */
29 	gint          trans_connect;  /* Transducer connect? 1=connect 0=disconnect */
30 	gint	      set_termid;     /* Set the termid 1=set termid */
31 	const guint8  *string_data;   /* Any time a string is written to the display, this has the string */
32 	gint          call_state;     /* Not used? */
33 	guchar        *key_buffer;    /* Used in voip-calls.c tap, holds call keys pressed */
34 } unistim_info_t;
35 
36 #endif
37 
38