aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/t124/t124.cnf
blob: e3a8efa50727c107a7c43cc3c7d72fd2b7f9eb3b (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
# T.124/GCC-PROTOCOL.cnf
# Copyright 2011 Graeme Lunt
#----------------------------------------------------------------------------------------
#.EXPORTS
#----------------------------------------------------------------------------------------
ConnectData
ConnectGCCPDU
#.END

#.OMIT_ASSIGNMENT
GCCPDU
ConnectMCSPDU
IndicationPDU
ResponsePDU
Connect-Initial
Connect-Additional
Connect-Result
UserIDIndication
ConferenceAddResponse
ConferenceLockResponse
ConferenceLockIndication
ConferenceUnlockResponse
ConferenceUnlockIndication
ConferenceTerminateResponse
ConferenceTerminateIndication
ConferenceEjectUserResponse
ConferenceEjectUserIndication
ConferenceTransferResponse
ConferenceTransferIndication
RosterUpdateIndication
ApplicationInvokeIndication
RegistryMonitorEntryIndication
RegistryAllocateHandleResponse
RegistryResponse
ConductorAssignIndication
ConductorReleaseIndication
ConductorPermissionAskIndication
ConductorPermissionGrantIndication
ConferenceTimeRemainingIndication
ConferenceTimeInquireIndication
ConferenceTimeExtendIndication
ConferenceAssistanceIndication
TextMessageIndication
FunctionNotSupportedResponse
Connect-Response
Time
Handle
NodeRecord
ApplicationRecord
ApplicationInvokeSpecifier
RegistryItem
RegistryEntryOwner
RequestPDU
DomainParameters
DynamicTokenID
NodeProperties
AlternativeNodeID
ChannelType
CapabilityID
CapabilityClass
ConferenceAddRequest
ConferenceLockRequest
ConferenceUnlockRequest
ConferenceTerminateRequest
ConferenceEjectUserRequest
ConferenceTransferRequest
RegistryRegisterChannelRequest
RegistryAssignTokenRequest
RegistrySetParameterRequest
RegistryRetrieveEntryRequest
RegistryDeleteEntryRequest
RegistryMonitorEntryRequest
RegistryAllocateHandleRequest
NonStandardPDU
NetworkAddressV2
EntityID
RegistryKey
RegistryModificationRights
MediaList
ChannelAggregationMethod
Profile
NetworkConnection
SessionKey
ChannelID
GSTNConnection
ISDNConnection
CSDNConnection
PSDNConnection
ATMConnection
ExtendedE164NetworkAddress
TransportAddress

#----------------------------------------------------------------------------------------

#.PDU
#----------------------------------------------------------------------------------------


#.TF_RENAME
ISDNConnection/circuitTypes		ISDNCircuitTypes
ISDNConnection/circuitTypes/_item	ISDNCircuitTypes_item
ISDNConnection/highLayerCompatibility 	ISDNHighLayerCompatibility
PSDNConnection/networkAddress	      	PSDNNetworkAddress
ConferenceTerminateRequest/reason	TerminateRequestReason
ConferenceTerminateIndication/reason	TerminateIndicationReason
ConferenceEjectUserRequest/reason		EjectUserRequestReason
RosterUpdateIndication/nodeInformation/nodeRecordList/refresh NodeRefresh
RosterUpdateIndication/applicationInformation/_item/applicationRecordList/refresh ApplicationRefresh
RosterUpdateIndication/applicationInformation/_item/applicationRecordList/update ApplicationUpdate
RosterUpdateIndication/applicationInformation/_item/applicationRecordList/update/_item ApplicationUpdateItem
ConferenceQueryResponse/result	QueryResponseResult
ConferenceJoinResponse/result	JoinResponseResult
ConferenceInviteResponse/result	InviteResponseResult
ConferenceAddResponse/result	AddResponseResult
ConferenceLockResponse/result	LockResponseResult
ConferenceUnlockResponse/result	UnlockResponseResult
ConferenceTerminateResponse/result	TerminateResponseResult
ConferenceEjectUserResponse/result	EjectUserResponseResult
ConferenceTransferResponse/result	TransferResponseResult
RegistryAllocateHandleResponse/result	AllocateHandleResponseResult

#.FN_BODY ConnectData/connectPDU VAL_PTR = &next_tvb
    tvbuff_t	*next_tvb = NULL;
    proto_tree	*next_tree = NULL;
    int		old_offset = 0;

    old_offset = offset;
    %(DEFAULT_BODY)s
    if(next_tvb) {
      /* "2a -> ConnectData::connectPDU length = 42 bytes */
      /* This length MUST be ignored by the client." */

      /* Not sure why - but lets ignore the length. */
      /* We assume the OCTET STRING is all of the remaining bytes */

      if(tvb_reported_length(next_tvb) == 42) {
         /* this is perhaps a naive ... */
	 next_tvb = tvb_new_subset_remaining(tvb, (old_offset>>3)+1);
      }

	 next_tree = proto_item_add_subtree(actx->created_item, ett_t124_connectGCCPDU);

       dissect_t124_ConnectGCCPDU(next_tvb, 0, actx, next_tree, hf_t124_connectGCCPDU);

    }
#.END

#.FN_BODY UserData/_item/value VAL_PTR = &next_tvb
    tvbuff_t *next_tvb = NULL;
    tvbuff_t *t124NSIdentifier = (tvbuff_t*)actx->private_data;
    guint8   *ns = NULL;

%(DEFAULT_BODY)s

	if(next_tvb && t124NSIdentifier) {

	ns = tvb_get_string_enc(wmem_packet_scope(), t124NSIdentifier, 0, tvb_reported_length(t124NSIdentifier), ENC_ASCII|ENC_NA);
	if(ns != NULL) {
		dissector_try_string(t124_ns_dissector_table, ns, next_tvb, actx->pinfo, top_tree, NULL);
	}
	}

#.END

#.FN_BODY SendDataRequest/userData  VAL_PTR = &next_tvb
    tvbuff_t	*next_tvb = NULL;

%(DEFAULT_BODY)s

	if(next_tvb) {

	     dissector_try_uint(t124_sd_dissector_table, channelId, next_tvb, actx->pinfo, top_tree);

	}

#.END

#.FN_BODY SendDataIndication/userData VAL_PTR = &next_tvb
    tvbuff_t	*next_tvb = NULL;

%(DEFAULT_BODY)s

	if(next_tvb) {

	     dissector_try_uint(t124_sd_dissector_table, channelId, next_tvb, actx->pinfo, top_tree);

	}

#.END


#.FN_BODY DomainMCSPDU  VAL_PTR = &domainmcs_value
  	gint domainmcs_value;

%(DEFAULT_BODY)s
	switch(domainmcs_value) {
	case 25: /* sendDataRequest */
	case 26: /* sendDataIndication */
	case 27: /* uniformSendDataRequest */
	case 28: /* uniformSendDataIndication */
		/* Do nothing */
		break;
	default:
		col_prepend_fstr(%(ACTX)s->pinfo->cinfo, COL_INFO, "%%s ", val_to_str(domainmcs_value, t124_DomainMCSPDU_vals, "Unknown"));
		break;
	}

#.END

#.FN_PARS Key/object
	  FN_VARIANT = _str VAL_PTR = &actx->external.direct_reference

#.FN_PARS H221NonStandardIdentifier
      VAL_PTR = (tvbuff_t**)&actx->private_data

#.FN_BODY H221NonStandardIdentifier

    %(DEFAULT_BODY)s


#.FN_BODY ChannelId VAL_PTR = &channelId

    %(DEFAULT_BODY)s

    if(hf_index == hf_t124_channelId_03)
        col_append_fstr(%(ACTX)s->pinfo->cinfo, COL_INFO, "%%d", channelId);


#.OMIT_ASSIGNMENT
StaticChannelID
TokenID
StaticTokenID
RosterRefreshRequest
#.END
#.VIRTUAL_ASSGN
#----------------------------------------------------------------------------------------

#.END

#----------------------------------------------------------------------------------------
# vim:set ts=4 sts=2 sw=2: