1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
# h248.cnf
# H.248 conformation file
# $Id$
#.MODULE_IMPORT
#.EXPORTS
#.PDU
#.NO_EMIT
MtpAddress
PkgdName
PropertyID
SignalName
EventName
ContextID
ErrorCode
#.TYPE_RENAME
IndAudMediaDescriptor/streams indAudMediaDescriptorStreams
ActionRequest/contextId contextId
ActionReply/contextId contextId
TransactionRequest/transactionId transactionId
TransactionPending/transactionId transactionId
TransactionReply/transactionId transactionId
#.FIELD_RENAME
IP4Address/address iP4Address
IP6Address/address iP6Address
ContextAttrAuditRequest/emergency cAAREmergency
ContextAttrAuditRequest/priority cAARPriority
SecondRequestedEvent/eventAction secondaryEventAction
TerminationStateDescriptor/eventBufferControl tSEventBufferControl
SecondEventsDescriptor/eventList secondaryEventList
IndAudEventBufferDescriptor/eventName iAEBDEventName
TerminationID/id terminationId
IndAudStreamParms/localControlDescriptor iASPLocalControlDescriptor
IndAudStreamParms/localDescriptor iASPLocalDescriptor
MediaDescriptor/streams/oneStream mediaDescriptorOneStream
MediaDescriptor/streams/multiStream mediaDescriptorMultiStream
MediaDescriptor/streams/multiStream/_item mediaDescriptorMultiStream_item
DomainName/name domName
IndAudEventsDescriptor/pkgdName iAEDPkgdName
IndAudLocalRemoteDescriptor/propGrps iAPropertyGroup
IndAudLocalControlDescriptor/propertyParms indAudPropertyParms
IndAudTerminationStateDescriptor/propertyParms indAudPropertyParms
IndAudLocalControlDescriptor/reserveGroup iALCDReserveGroup
IndAudLocalControlDescriptor/reserveValue iALCDReserveValue
IndAudLocalControlDescriptor/streamMode iALCDStreamMode
IndAudStreamDescriptor/streamParms indAudStreamParms
IndAudMediaDescriptor/termStateDescr indAudTerminationStateDescriptor
IndAudSignal/signalName iASignalName
IndAudSeqSigList/signalList iASignalList
IndAudSignalsDescriptor/signal indAudSignal
IndAudSignalsDescriptor/seqSigList indAudSeqSigList
IndAudTerminationStateDescriptor/serviceState iATSDServiceState
IndAudStreamParms/remoteDescriptor iASPRemoteDescriptor
PropertyParm/value propertyParamValue
IndAudMediaDescriptor/streams indAudMediaDescriptorStreams
AmmRequest/terminationID terminationIDList
AmmsReply/terminationID terminationIDList
SubtractRequest/terminationID terminationIDList
NotifyRequest/terminationID terminationIDList
NotifyReply/terminationID terminationIDList
ServiceChangeRequest/terminationID terminationIDList
ServiceChangeReply/terminationID terminationIDList
#.FN_BODY TransactionRequest/transactionId
offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset);
#.END
#.FN_BODY TransactionPending/transactionId
offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset);
#.END
#.FN_BODY TransactionReply/transactionId
offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset);
#.END
#.FN_BODY TransactionResponseAck/transactionId
offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset);
#.END
#.FN_HDR Command
h248_cmdmsg = ep_alloc0(sizeof(h248_cmdmsg_info_t));
h248_cmdmsg->offset = offset;
h248_cmdmsg->transaction_id = transaction_id;
h248_cmdmsg->context_id = context_id;
h248_cmdmsg->cmd_type = H248_CMD_NONE;
h248_cmdmsg->msg_type = H248_TRX_REQUEST;
h248_cmdmsg->term_is_wildcard = FALSE;
#.END
#.FN_FTR Command
if (check_col(pinfo->cinfo, COL_INFO)) col_set_str(pinfo->cinfo, COL_INFO, cmd_str(h248_cmdmsg));
if (keep_persistent_data) {
cmdmsg_tree(h248_cmdmsg);
analyze_h248_cmd(pinfo,h248_cmdmsg);
analysis_tree(pinfo, tvb, h248_tree, h248_cmdmsg);
}
#.END
#.FN_HDR CommandReply
h248_cmdmsg = ep_alloc0(sizeof(h248_cmdmsg_info_t));
h248_cmdmsg->offset = offset;
h248_cmdmsg->transaction_id = transaction_id;
h248_cmdmsg->context_id = context_id;
h248_cmdmsg->cmd_type = H248_CMD_NONE;
h248_cmdmsg->msg_type = H248_TRX_REPLY;
h248_cmdmsg->term_is_wildcard = FALSE;
#.END
#.FN_FTR CommandReply
if (check_col(pinfo->cinfo, COL_INFO)) col_set_str(pinfo->cinfo, COL_INFO, cmd_str(h248_cmdmsg));
if (keep_persistent_data) {
cmdmsg_tree(h248_cmdmsg);
analyze_h248_cmd(pinfo,h248_cmdmsg);
analysis_tree(pinfo, tvb, h248_tree, h248_cmdmsg);
}
#.END
#.FN_BODY ActionRequest/contextId
offset = dissect_h248_ctx_id(implicit_tag, pinfo, tree, tvb, offset);
#.END
#.FN_BODY ActionReply/contextId
offset = dissect_h248_ctx_id(implicit_tag, pinfo, tree, tvb, offset);
#.END
#.FN_HDR Command/addReq
h248_cmdmsg->cmd_type = H248_CMD_ADD;
#.END
#.FN_HDR Command/moveReq
h248_cmdmsg->cmd_type = H248_CMD_MOVE;
#.END
#.FN_HDR Command/modReq
h248_cmdmsg->cmd_type = H248_CMD_MOD;
#.END
#.FN_HDR Command/subtractReq
h248_cmdmsg->cmd_type = H248_CMD_SUB;
#.END
#.FN_HDR Command/auditCapRequest
h248_cmdmsg->cmd_type = H248_CMD_AUDITCAP;
#.END
#.FN_HDR Command/auditValueRequest
h248_cmdmsg->cmd_type = H248_CMD_AUDITVAL;
#.END
#.FN_HDR Command/notifyReq
h248_cmdmsg->cmd_type = H248_CMD_NOTIFY;
#.END
#.FN_HDR Command/ServiceChangeRequest
h248_cmdmsg->cmd_type = H248_CMD_SVCCHG;
#.END
#.FN_HDR CommandReply/addReply
h248_cmdmsg->cmd_type = H248_CMD_ADD;
#.END
#.FN_HDR CommandReply/moveReply
h248_cmdmsg->cmd_type = H248_CMD_MOVE;
#.END
#.FN_HDR CommandReply/modReply
h248_cmdmsg->cmd_type = H248_CMD_MOD;
#.END
#.FN_HDR CommandReply/subtractReply
h248_cmdmsg->cmd_type = H248_CMD_SUB;
#.END
#.FN_HDR CommandReply/notifyReply
h248_cmdmsg->cmd_type = H248_CMD_NOTIFY;
#.END
#.FN_HDR CommandReply/ServiceChangeReply
h248_cmdmsg->cmd_type = H248_CMD_SVCCHG;
#.END
#.FN_HDR CommandReply/auditCapReply
h248_cmdmsg->cmd_type = H248_CMD_AUDITCAP;
#.END
#.FN_HDR CommandReply/auditValueReply
h248_cmdmsg->cmd_type = H248_CMD_AUDITVAL;
#.END
#.FN_BODY WildcardField
tvbuff_t* new_tvb;
offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index,&new_tvb);
tree = proto_item_add_subtree(get_ber_last_created_item(),ett_wildcard);
proto_tree_add_item(tree,hf_h248_term_wild_type,new_tvb,0,1,FALSE);
proto_tree_add_item(tree,hf_h248_term_wild_level,new_tvb,0,1,FALSE);
proto_tree_add_item(tree,hf_h248_term_wild_position,new_tvb,0,1,FALSE);
h248_cmdmsg->term_is_wildcard = TRUE;
#.END
#.FN_BODY ErrorDescriptor/errorCode
guint32 val;
val = 0;
offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_h248_error_code, &val);
h248_cmdmsg->error_code = val;
return offset;
#.END
#.FN_BODY TerminationID/id
tvbuff_t* new_tvb;
offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index, &new_tvb);
h248_cmdmsg->term_id = bytes_to_str(tvb_get_ptr(tvb,0,tvb->length),tvb->length);
if (new_tvb && h248_term_handle) {
call_dissector(h248_term_handle, new_tvb, pinfo, tree);
}
#.END
#.TYPE_ATTR
IP4Address/address TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL
IP6Address/address TYPE = FT_IPv6 DISPLAY = BASE_NONE STRINGS = NULL
ActionRequest/contextId TYPE = FT_UINT32 DISPLAY = BASE_HEX STRINGS = NULL
ActionReply/contextId TYPE = FT_UINT32 DISPLAY = BASE_HEX STRINGS = NULL
|