aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h248/h248.cnf
blob: 8b28acf7b0a575cf32acbe07b9a49aa35b4bc6f3 (plain)
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# 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
TransactionResponseAck/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_HDR Message
    msg = h248_msg(pinfo,TVB_RAW_OFFSET(tvb));
#.END

#.FN_FTR Message
    if (check_col(pinfo->cinfo, COL_INFO))
        col_set_str(pinfo->cinfo, COL_INFO, h248_msg_to_str(msg));
        
    if (keep_persistent_data)
        analyze_h248_msg(msg);
#.END

#.FN_BODY TransactionRequest/transactionId
    guint32 trx_id = 0;
	offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset, &trx_id);
    trx = h248_trx(msg,trx_id,H248_TRX_REQUEST);
#.END

#.FN_BODY TransactionPending/transactionId
    guint32 trx_id = 0;
	offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset, &trx_id);
    trx = h248_trx(msg,trx_id,H248_TRX_PENDING);
#.END

#.FN_BODY TransactionReply/transactionId
    guint32 trx_id = 0;
	offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset, &trx_id);
    trx = h248_trx(msg,trx_id,H248_TRX_REPLY);
#.END

#.FN_BODY TransactionResponseAck/transactionId
    guint32 trx_id = 0;
	offset = dissect_h248_trx_id(implicit_tag, pinfo, tree, tvb, offset, &trx_id);
    trx = h248_trx(msg,trx_id,H248_TRX_ACK);
#.END


#.FN_BODY ActionRequest/contextId
    guint32 ctx_id = 0;
	offset = dissect_h248_ctx_id(implicit_tag, pinfo, tree, tvb, offset, &ctx_id);
    ctx = h248_ctx(msg,trx,ctx_id);
#.END

#.FN_BODY ActionReply/contextId
    guint32 ctx_id;
	offset = dissect_h248_ctx_id(implicit_tag, pinfo, tree, tvb, offset, &ctx_id);
    ctx = h248_ctx(msg,trx,ctx_id);
    cmd = NULL;
#.END

#.FN_FTR ActionReply
    if (!cmd)
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_REPLY,offset);
#.END

#.FN_HDR Command/addReq
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_ADD_REQ,offset);
#.END

#.FN_FTR Command/addReq
      cmd = NULL;
#.END

#.FN_HDR Command/moveReq
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_MOVE_REQ,offset);
#.END

#.FN_FTR Command/moveReq
      cmd = NULL;
#.END

#.FN_HDR Command/modReq
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_MOD_REQ,offset);
#.END
#.FN_FTR Command/modReq
      cmd = NULL;
#.END

#.FN_HDR Command/subtractReq
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_SUB_REQ,offset);
#.END
#.FN_FTR Command/subtractReq
      cmd = NULL;
#.END

#.FN_HDR Command/auditCapRequest
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_AUDITCAP_REQ,offset);
#.END
#.FN_FTR Command/auditCapRequest
      cmd = NULL;
#.END

#.FN_HDR Command/auditValueRequest
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_AUDITVAL_REQ,offset);
#.END
#.FN_FTR Command/auditValueRequest
      cmd = NULL;
#.END

#.FN_HDR Command/notifyReq
	  cmd = h248_cmd(msg,trx,ctx,H248_CMD_NOTIFY_REQ,offset);
#.END
#.FN_FTR Command/notifyReq
      cmd = NULL;
#.END

#.FN_HDR Command/ServiceChangeRequest
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_SVCCHG_REQ,offset);
#.END
#.FN_FTR Command/ServiceChangeRequest
      cmd = NULL;
#.END

#.FN_HDR ContextRequest/topologyReq
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_TOPOLOGY_REQ,offset);
#.END
#.FN_FTR ContextRequest/topologyReq
      cmd = NULL;
#.END

#.FN_HDR ActionRequest/contextAttrAuditReq
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_CTX_ATTR_AUDIT_REQ,offset);
#.END
#.FN_FTR ActionRequest/contextAttrAuditReq
      cmd = NULL;
#.END

#.FN_HDR CommandReply/addReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_ADD_REPLY,offset);
#.END

#.FN_HDR CommandReply/moveReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_MOVE_REPLY,offset);
#.END

#.FN_HDR CommandReply/modReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_MOD_REPLY,offset);
#.END

#.FN_HDR CommandReply/subtractReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_SUB_REPLY,offset);
#.END

#.FN_HDR CommandReply/notifyReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_NOTIFY_REPLY,offset);
#.END

#.FN_HDR CommandReply/ServiceChangeReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_SVCCHG_REPLY,offset);
#.END

#.FN_HDR CommandReply/auditCapReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_AUDITCAP_REPLY,offset);
#.END

#.FN_HDR CommandReply/auditValueReply
      cmd = h248_cmd(msg,trx,ctx,H248_CMD_AUDITVAL_REPLY,offset);
#.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);
#.END

#.FN_BODY ErrorDescriptor/errorCode
    offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_h248_error_code, &error_code);
    expert_add_info_format(pinfo, get_ber_last_created_item(), PI_RESPONSE_CODE, PI_WARN, "Errored Command");
    
    if (cmd) {
        h248_cmd_set_error(cmd,error_code);
    } else {
        h248_trx_set_error(trx,error_code);
    }
    
    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_cmd_add_str(cmd,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