Rev

Rev 553 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | Bug Tracker

Rev 553 Rev 599
Line 1... Line 1...
1
/**
1
/**
2
 *  @author   STF 346, STF366, STF368, STF369, STF450, STF471
2
 * @author STF 346, STF366, STF368, STF369, STF450, STF471
3
 *  @version  $Id: LibSip_SDPTypes.ttcn 553 2014-01-08 09:21:16Z rennoch $
3
 * @version $Id: LibSip_SDPTypes.ttcn 599 2014-02-25 17:53:39Z tepelmann $
4
 *  @desc     This module defines message, attribute, structured and simple
4
 * @desc This module defines message, attribute, structured and simple
5
 *            SDP types as well constants used by LipSip constructs. <br>
5
 *             SDP types as well constants used by LipSip constructs. <br>
6
 *            Note that any changes made to the definitions in this module
6
 *             Note that any changes made to the definitions in this module
7
 *            may be overwritten by future releases of this library
7
 *             may be overwritten by future releases of this library
8
 *            End users are encouraged to contact the distributers of this
8
 *             End users are encouraged to contact the distributers of this
9
 *            module regarding their modifications or additions
9
 *             module regarding their modifications or additions
10
 *            This module is part of LibSipV3.
10
 *             This module is part of LibSipV3.
11
 *  @remark   Adding of new attributes types is ok;
-
 
12
 *            Adding of new optional attributes in @see SDP_attribute type
11
 * @remark Adding of new attributes types is ok; Adding of new optional attributes in @see SDP_attribute type is ok; Existing attribute types shall not be changed or removed - change requests shall be made to http://t-ort.etsi.org
13
 *            is ok;
-
 
14
 *            Existing attribute types shall not be changed or removed -
-
 
15
 *            change requests shall be made to http://t-ort.etsi.org
-
 
16
 */
12
 */
17
-
 
18
module LibSip_SDPTypes
13
module LibSip_SDPTypes {
19
{
-
 
20
  group Constants
14
    group Constants {
21
  {
-
 
22
    group SimpleConstants
15
        group SimpleConstants {
23
    {
-
 
24
        //  SDP net_type
16
            // SDP net_type
25
        const charstring c_in := "IN";
17
            const charstring c_in := "IN";
26
18
27
        //  SDP addr_type
19
            // SDP addr_type
28
        const charstring c_ip4 := "IP4";
20
            const charstring c_ip4 := "IP4";
Line 54... Line 46...
54
        const charstring c_send := "send";
46
            const charstring c_send := "send";
55
        const charstring c_recv := "recv";
47
            const charstring c_recv := "recv";
56
        const charstring c_e2e := "e2e";
48
            const charstring c_e2e := "e2e";
57
    }
49
        }
58
  }
50
    }
59
  group Types
51
    group Types {
60
  {
-
 
61
    group SubTypes
52
        group SubTypes {
62
    {
-
 
63
        group AttributeTypes
53
            group AttributeTypes {
64
        {
-
 
65
            type record SDP_attribute_cat {
54
                type record SDP_attribute_cat {
66
                charstring attr_value
55
                    charstring attr_value
67
            }
56
                }
68
57
69
            type record SDP_attribute_keywds {
58
                type record SDP_attribute_keywds {
Line 180... Line 169...
180
                SDP_attribute_des             des,
169
                    SDP_attribute_des des,
181
                SDP_attribute_conf            conf,
170
                    SDP_attribute_conf conf,
182
                SDP_attribute_rtpmap          rtpmap,
171
                    SDP_attribute_rtpmap rtpmap,
183
                SDP_attribute_rtcp            rtcp,
172
                    SDP_attribute_rtcp rtcp,
184
                SDP_attribute_msrp            msrp,
173
                    SDP_attribute_msrp msrp,
185
-
 
186
                //*  unknown has to be the last else encoding/decoding won't work!
174
                    //*     unknown has to be the last else encoding/decoding won't work!
187
                SDP_attribute_unknown unknown
175
                    SDP_attribute_unknown unknown
188
            }
176
                }
-
 
177
189
        } //*  group AttributeTypes
178
            } //*     group AttributeTypes
190
179
191
      type set of SDP_attribute SDP_attribute_list;
180
            type set of SDP_attribute SDP_attribute_list;
192
181
193
      type record SDP_bandwidth {
182
            type record SDP_bandwidth {
Line 256... Line 245...
256
        SDP_time_field      time_field,
245
                SDP_time_field time_field,
257
        SDP_repeat_list     time_repeat optional
246
                SDP_repeat_list time_repeat optional
258
      }
247
            }
259
248
260
      type record SDP_time_field{
249
            type record SDP_time_field {
-
 
250
                charstring start_time,
261
        charstring   start_time, //*  field is numeric strings that may not fit into 32-bit signed int
251
                //*     field is numeric strings that may not fit into 32-bit signed int
-
 
252
                charstring
262
        charstring   stop_time //*  field is numeric strings that may not fit into 32-bit signed int
253
                stop_time //*     field is numeric strings that may not fit into 32-bit signed int
263
      }
254
            }
264
255
265
      type record SDP_repeat{
256
            type record SDP_repeat {
266
        SDP_typed_time      repeat_interval,
257
                SDP_typed_time repeat_interval,
267
        SDP_typed_time      active,
258
                SDP_typed_time active,
Line 286... Line 277...
286
277
287
      type set of SDP_timezone SDP_timezone_list;
278
            type set of SDP_timezone SDP_timezone_list;
288
279
289
      type record SDP_Origin{
280
            type record SDP_Origin {
290
        charstring          user_name,
281
                charstring user_name,
-
 
282
                charstring session_id,
291
        charstring          session_id,//*  field is numeric strings that may not fit into 32-bit signed int
283
                //*     field is numeric strings that may not fit into 32-bit signed int
-
 
284
                charstring session_version,
292
        charstring          session_version, //*  field is numeric strings that may not fit into 32-bit signed int
285
                //*     field is numeric strings that may not fit into 32-bit signed int
293
        charstring          net_type,
286
                charstring net_type,
294
        charstring          addr_type,
287
                charstring addr_type,
295
        charstring          addr
288
                charstring addr
296
      }
289
            }
297
290
298
      type set of SDP_contact_tel SDP_phone_list;
291
            type set of SDP_contact_tel SDP_phone_list;
-
 
292
299
    } //*  group SubTypes
293
        } //*     group SubTypes
300
294
301
295
302
    group MessageTypes
296
        group MessageTypes {
303
    {
-
 
304
      type record SDP_Message{
297
            type record SDP_Message {
305
        integer             protocol_version,
298
                integer protocol_version,
306
        SDP_Origin          origin,
299
                SDP_Origin origin,
307
        charstring          session_name,
300
                charstring session_name,
308
        charstring          information optional,
301
                charstring information optional,
Line 314... Line 307...
314
        SDP_time_list       times,
307
                SDP_time_list times,
315
        SDP_timezone_list   timezone_adjustments optional,
308
                SDP_timezone_list timezone_adjustments optional,
316
        SDP_key             key optional,
309
                SDP_key key optional,
317
        SDP_attribute_list  attributes optional,
310
                SDP_attribute_list attributes optional,
318
        SDP_media_desc_list media_list optional
311
                SDP_media_desc_list media_list optional
-
 
312
            }
-
 
313
            with {
319
      } with { encode "SDPCodec" }
314
                encode "SDPCodec";
-
 
315
            }
-
 
316
320
    } //  group MessageTypes
317
        } // group MessageTypes
321
  } //  group Types
-
 
322
 
-
 
323
 
318
-
 
319
    } // group Types
324
} // end module LibSip_SDPTypes
320
} // end module LibSip_SDPTypes