summaryrefslogtreecommitdiff
path: root/asn1/t124/t124.cnf
blob: ad7099cf98ee5b8fe5aa46f4a984bcb51de86153 (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
# T.124/GCC-PROTOCOL.cnf
# Copyright 2011 Graeme Lunt
# $Id$
#----------------------------------------------------------------------------------------
#.EXPORTS
#----------------------------------------------------------------------------------------
ConnectData
ConnectGCCPDU
#.END

#.OMIT_ASSIGNMENT
GCCPDU
ConnectMCSPDU
IndicationPDU
ResponsePDU
Connect-Initial
Connect-Respons
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

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

#.PDU_NEW
#----------------------------------------------------------------------------------------


#.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_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;
    guint8      *ns = NULL;

%(DEFAULT_BODY)s

	if(next_tvb) {

	ns = tvb_get_string(t124NSIdentifier, 0, tvb_length(t124NSIdentifier));
	if(ns != NULL) {
		dissector_try_string(t124_ns_dissector_table, ns, next_tvb, actx->pinfo, top_tree);
		g_free(ns);
	}
	}

#.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 = &t124Identifier

#.FN_PARS H221NonStandardIdentifier
	  VAL_PTR = &t124NSIdentifier

#.FN_BODY H221NonStandardIdentifier

    %(DEFAULT_BODY)s

#.FN_PARS ChannelId VAL_PTR = &channelId

#.FN_BODY 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: