epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / packet-sip.h
blobf975f0c8e9f5748b437d8d6812680b0f3d628f7e
1 /* packet-sip.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef __PACKET_SIP_H__
11 #define __PACKET_SIP_H__
13 #include <epan/packet.h>
15 typedef struct _sip_info_value_t
17 const uint8_t *request_method;
18 unsigned response_code;
19 bool resend;
20 uint32_t setup_time;
21 /* added for VoIP calls analysis, see ui/voip_calls.c*/
22 char *tap_call_id;
23 char *tap_from_addr;
24 char *tap_to_addr;
25 uint32_t tap_cseq_number;
26 char *reason_phrase;
27 } sip_info_value_t;
29 typedef enum {
30 SIP_PROTO_OTHER = 0,
31 SIP_PROTO_SIP = 1,
32 SIP_PROTO_Q850 = 2
33 } sip_reason_code_proto_t;
35 typedef struct _sip_reason_code_info_t
37 sip_reason_code_proto_t protocol_type_num;
38 unsigned cause_value;
39 } sip_reason_code_info_t;
41 WS_DLL_PUBLIC const value_string sip_response_code_vals[];
43 extern void dfilter_store_sip_from_addr(tvbuff_t *tvb, proto_tree *tree,
44 unsigned parameter_offset, unsigned parameter_len);
46 extern void dissect_sip_p_access_network_info_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, int line_end_offset);
48 #endif