summaryrefslogtreecommitdiff
path: root/idl/parlay/osa.idl
blob: 5a9634373dd2f5a70d4453fd87c1b6c29625c529 (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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
//Source file: osa.idl
//Date:  7 October 2004
//Common Data Types for ES 203 915-2 V1.1.1, DES/TISPAN-01005-02, Parlay 5.0

#ifndef __OSA_DEFINED
#define __OSA_DEFINED

module org {
	
	module csapi {
		
		
		enum TpAddressError {

			P_ADDRESS_INVALID_UNDEFINED,
			P_ADDRESS_INVALID_MISSING,
			P_ADDRESS_INVALID_MISSING_ELEMENT,
			P_ADDRESS_INVALID_OUT_OF_RANGE,
			P_ADDRESS_INVALID_INCOMPLETE,
			P_ADDRESS_INVALID_CANNOT_DECODE			
		};
		
		
		enum TpAddressPlan {

			P_ADDRESS_PLAN_NOT_PRESENT,
			P_ADDRESS_PLAN_UNDEFINED,
			P_ADDRESS_PLAN_IP,
			P_ADDRESS_PLAN_MULTICAST,
			P_ADDRESS_PLAN_UNICAST,
			P_ADDRESS_PLAN_E164,
			P_ADDRESS_PLAN_AESA,
			P_ADDRESS_PLAN_URL,
			P_ADDRESS_PLAN_NSAP,
			P_ADDRESS_PLAN_SMTP,
			P_ADDRESS_PLAN_MSMAIL,
			P_ADDRESS_PLAN_X400,
			P_ADDRESS_PLAN_SIP,
			P_ADDRESS_PLAN_ANY,
			P_ADDRESS_PLAN_NATIONAL			
		};
		
		
		enum TpAddressPresentation {

			P_ADDRESS_PRESENTATION_UNDEFINED,
			P_ADDRESS_PRESENTATION_ALLOWED,
			P_ADDRESS_PRESENTATION_RESTRICTED,
			P_ADDRESS_PRESENTATION_ADDRESS_NOT_AVAILABLE			
		};
		
		
		enum TpAddressScreening {

			P_ADDRESS_SCREENING_UNDEFINED,
			P_ADDRESS_SCREENING_USER_VERIFIED_PASSED,
			P_ADDRESS_SCREENING_USER_NOT_VERIFIED,
			P_ADDRESS_SCREENING_USER_VERIFIED_FAILED,
			P_ADDRESS_SCREENING_NETWORK			
		};
		
		
		typedef boolean TpBoolean;
		
		
		typedef float TpFloat;
		
		
		typedef long TpInt32;
		
		
		const TpInt32 P_METHOD_NOT_SUPPORTED = 22;
		
		const TpInt32 P_NO_CALLBACK_ADDRESS_SET = 17;
		
		const TpInt32 P_RESOURCES_UNAVAILABLE = 13;
		
		const TpInt32 P_TASK_CANCELLED = 15;
		
		const TpInt32 P_TASK_REFUSED = 14;
		
		typedef TpInt32 TpAssignmentID;
		
		
		typedef TpInt32 TpDuration;
		
		
		typedef TpInt32 TpSessionID;
		
		
		typedef sequence <TpSessionID> TpSessionIDSet;
		
		
		typedef string TpString;
		
		
		exception P_INVALID_ASSIGNMENT_ID {
			TpString ExtraInformation;
		};
		
		
		exception P_INVALID_TIME_AND_DATE_FORMAT {
			TpString ExtraInformation;
		};
		
		
		exception P_INVALID_EVENT_TYPE {
			TpString ExtraInformation;
		};
		
		
		exception P_INVALID_INTERFACE_NAME {
			TpString ExtraInformation;
		};
		
		
		exception P_INVALID_INTERFACE_TYPE {
			TpString ExtraInformation;
		};
		
		
		exception P_UNKNOWN_SUBSCRIBER {
			TpString ExtraInformation;
		};
		
		
		exception P_INFORMATION_NOT_AVAILABLE {
			TpString ExtraInformation;
		};
		
		
		struct TpAddress {
			TpAddressPlan Plan;
			TpString AddrString;
			TpString Name;
			TpAddressPresentation Presentation;
			TpAddressScreening Screening;
			TpString SubAddressString;
		};
		
		
		struct TpAddressRange {
			TpAddressPlan Plan;
			TpString AddrString;
			TpString Name;
			TpString SubAddressString;
		};
		
		
		typedef sequence <TpAddress> TpAddressSet;
		
		
		typedef TpString TpPrice;
		
		
		typedef TpString TpDate;
		
		
		typedef TpString TpDateAndTime;
		
		
		typedef TpString TpTime;
		
		
		typedef TpString TpURL;
		
		
		typedef TpString TpLanguage;
		
		enum TpCallAoCOrderCategory {

			P_CHARGE_ADVICE_INFO,
			P_CHARGE_PER_TIME,
			P_CHARGE_NETWORK			
		};
		
		
		struct TpCAIElements {
			TpInt32 UnitsPerInterval;
			TpInt32 SecondsPerTimeInterval;
			TpInt32 ScalingFactor;
			TpInt32 UnitIncrement;
			TpInt32 UnitsPerDataInterval;
			TpInt32 SegmentsPerDataInterval;
			TpInt32 InitialSecsPerTimeInterval;
		};
		
		
		struct TpChargeAdviceInfo {
			TpCAIElements CurrentCAI;
			TpCAIElements NextCAI;
		};
		
		
		struct TpChargePerTime {
			TpInt32 InitialCharge;
			TpInt32 CurrentChargePerMinute;
			TpInt32 NextChargePerMinute;
		};
		
		
		union TpAoCOrder switch(TpCallAoCOrderCategory) {
			case P_CHARGE_ADVICE_INFO: TpChargeAdviceInfo ChargeAdviceInfo;
			case P_CHARGE_PER_TIME: TpChargePerTime ChargePerTime;
			case P_CHARGE_NETWORK: TpString NetworkCharge;
		};
		
		
		struct TpAoCInfo {
			TpAoCOrder ChargeOrder;
			TpString Currency;
		};
		
		
		exception P_INVALID_CRITERIA {
			TpString ExtraInformation;
		};
		
		
		const TpInt32 P_INVALID_STATE = 744;
		
		exception P_INVALID_SESSION_ID {
			TpString ExtraInformation;
		};
		
		
		exception TpCommonExceptions {
			TpInt32 ExceptionType;
			TpString ExtraInformation;
		};
		
		
		exception P_INVALID_CURRENCY {
			TpString ExtraInformation;
		};
		
		
		exception P_INVALID_AMOUNT {
			TpString ExtraInformation;
		};
		
		
		struct TpTimeInterval {
			TpDateAndTime StartTime;
			TpDateAndTime StopTime;
		};
		
		
		exception P_APPLICATION_NOT_ACTIVATED {
			TpString ExtraInformation;
		};
		
		
		exception P_INVALID_ADDRESS {
			TpString ExtraInformation;
		};
		
		
		typedef octet TpOctet;
		
		
		typedef sequence <TpOctet> TpOctetSet;
		
		
		exception P_UNSUPPORTED_ADDRESS_PLAN {
			TpString ExtraInformation;
		};
		
		
		exception P_UNAUTHORISED_PARAMETER_VALUE {
			TpString ExtraInformation;
		};
		
		
		typedef string TpLongString;
		
		
		typedef any TpAny;
		
		
		typedef long long TpInt64;
		
		
		typedef TpString TpVersion;
		
		
		exception P_INVALID_VERSION {
			TpString ExtraInformation;
		};
		
		
		typedef sequence <TpString> TpStringList;
		
		
		typedef sequence <TpString> TpStringSet;
		
		
		enum TpDataSessionQosClass {

			P_DATA_SESSION_QOS_CLASS_CONVERSATIONAL,
			P_DATA_SESSION_QOS_CLASS_STREAMING,
			P_DATA_SESSION_QOS_CLASS_INTERACTIVE,
			P_DATA_SESSION_QOS_CLASS_BACKGROUND			
		};
		
		
		typedef TpString TpURN;
		
		
		exception P_INVALID_NETWORK_STATE {
			TpString ExtraInformation;
		};
		
		
		typedef sequence <TpOctet> TpUnorderedOctetSet;
		
		
		typedef char TpChar;
		
		
		typedef wchar TpWChar;
		
		
		typedef wstring TpWString;
		
		
		typedef short TpInt16;
		
		
		typedef unsigned short TpUnsignedInt16;
		
		
		typedef unsigned long TpUnsignedInt32;
		
		
		typedef unsigned long long TpUnsignedInt64;
		
		
		typedef double TpDouble;
		
		
		typedef TpString TpXMLString;
		
		
		typedef TpString TpStructuredAttributeType;
		
		
		struct TpStructuredAttributeValue {
			TpStructuredAttributeType Type;
			TpAny Value;
		};
		
		
		enum TpSimpleAttributeTypeInfo {

			P_BOOLEAN,
			P_OCTET,
			P_CHAR,
			P_WCHAR,
			P_STRING,
			P_WSTRING,
			P_INT16,
			P_UNSIGNED_INT16,
			P_INT32,
			P_UNSIGNED_INT32,
			P_INT64,
			P_UNSIGNED_INT64,
			P_FLOAT,
			P_DOUBLE			
		};
		
		
		union TpSimpleAttributeValue switch(TpSimpleAttributeTypeInfo) {
			case P_BOOLEAN: TpBoolean BooleanValue;
			case P_OCTET: TpOctet OctetValue;
			case P_CHAR: TpChar CharValue;
			case P_WCHAR: TpWChar WCharValue;
			case P_STRING: TpString StringValue;
			case P_WSTRING: TpWString WStringValue;
			case P_INT16: TpInt16 Int16Value;
			case P_UNSIGNED_INT16: TpUnsignedInt16 UnsignedInt16Value;
			case P_INT32: TpInt32 Int32Value;
			case P_UNSIGNED_INT32: TpUnsignedInt32 UnsignedInt32Value;
			case P_INT64: TpInt64 Int64Value;
			case P_UNSIGNED_INT64: TpUnsignedInt64 UnsignedInt64Value;
			case P_FLOAT: TpFloat FloatValue;
			case P_DOUBLE: TpDouble DoubleValue;
		};
		
		
		enum TpAttributeTagInfo {

			P_SIMPLE_TYPE,
			P_STRUCTURED_TYPE,
			P_XML_TYPE			
		};
		
		
		union TpAttributeValue switch(TpAttributeTagInfo) {
			case P_SIMPLE_TYPE: TpSimpleAttributeValue SimpleValue;
			case P_STRUCTURED_TYPE: TpStructuredAttributeValue StructuredValue;
			case P_XML_TYPE: TpXMLString XMLValue;
		};
		
		
		struct TpAttribute {
			TpString AttributeName;
			TpAttributeValue AttributeValue;
		};
		
		
		typedef sequence <TpAttribute> TpAttributeList;
		
		
		typedef sequence <TpAttribute> TpAttributeSet;

		
		
		interface IpInterface {
		};
		
		
		interface IpService : IpInterface {
			void setCallback (
				in IpInterface appInterface	
				)				
				raises (TpCommonExceptions,P_INVALID_INTERFACE_TYPE);
				
			void setCallbackWithSessionID (
				in IpInterface appInterface,	
				in TpSessionID sessionID	
				)				
				raises (TpCommonExceptions,P_INVALID_SESSION_ID,P_INVALID_INTERFACE_TYPE);
				
		};
		
	};
	
};

#endif