Rev

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

Rev 549 Rev 599
Line 1... Line 1...
1
/******************************************************************************/
1
/******************************************************************************
-
 
2
 *
-
 
3
 */
2
// $Date: 2013-04-08 08:18:17 +0000 (Mo, 08 Apr 2013) $
4
// $Date: 2013-04-08 08:18:17 +0000 (Mo, 08 Apr 2013) $
3
// $Author: seka $
5
// $Author: seka $
4
// $Rev: 8470 $
6
// $Rev: 8470 $
5
/******************************************************************************/
7
/******************************************************************************
-
 
8
 *
-
 
9
 */
6
/*
10
/*
7
* This module is part of LibSipV2.
11
* This module is part of LibSipV2.
8
*/
12
*/
9
-
 
10
module LibSip_MessageBodyTypes
13
module LibSip_MessageBodyTypes {
11
{
-
 
12
  import from LibSip_SDPTypes all;
14
    import from LibSip_SDPTypes all;
13
  import from LibSip_SimpleMsgSummaryTypes all;
15
    import from LibSip_SimpleMsgSummaryTypes all;
14
  import from LibSip_XMLTypes all;
16
    import from LibSip_XMLTypes all;
15
 
17
16
//  type charstring XmlBody;
18
    // type charstring XmlBody;
17
-
 
18
  group MIMETypes {
19
    group MIMETypes {
19
  type union MIME_Encapsulated_Parts {
20
        type union MIME_Encapsulated_Parts {
20
    SDP_Message   sdpMessageBody,
21
            SDP_Message sdpMessageBody,
21
    XmlBody xmlBody                    // if there is XML body
22
            XmlBody
22
    // XMLMessage  xmlMessage          // if there is XML message (with header and body)
23
            xmlBody // if there is XML body
23
  };
24
        }
24
25
25
  type record MIME_Encapsulated_Part {
26
        type record MIME_Encapsulated_Part {
26
    charstring                content_type,
27
            charstring content_type,
27
    charstring                content_disposition optional,
28
            charstring content_disposition optional,
28
    MIME_Encapsulated_Parts   mime_encapsulated_part
29
            MIME_Encapsulated_Parts mime_encapsulated_part
29
  };
30
        }
30
31
31
  type record MIME_Message {
32
        type record MIME_Message {
32
    charstring boundary, // len:
33
            charstring boundary,
-
 
34
            // len:
33
    MimeEncapsulatedList mimeEncapsulatedList
35
            MimeEncapsulatedList mimeEncapsulatedList
34
  };
36
        }
35
37
36
  type record of MIME_Encapsulated_Part MimeEncapsulatedList;
38
        type record of MIME_Encapsulated_Part MimeEncapsulatedList;
-
 
39
37
40
38
  } // group MIMETypes
41
    } // group MIMETypes
39
42
40
  type union MessageBody {
43
    type union MessageBody {
-
 
44
        SDP_Message sdpMessageBody,
41
    SDP_Message sdpMessageBody,     // if there is only SDP part
45
        // if there is only SDP part
42
//      XMLMessage xmlMessage,          // if there is XML message (with header and body)
46
        // XMLMessage xmlMessage, // if there is XML message (with header and body)
-
 
47
        XmlBody xmlBody,
43
    XmlBody xmlBody,                // if there is XML body
48
        // if there is XML body
-
 
49
        MIME_Message mimeMessageBody,
44
    MIME_Message mimeMessageBody,   // if there is SDP and encapsulated ISUP part
50
        // if there is SDP and encapsulated ISUP part
-
 
51
        charstring sipfrag,
45
    charstring sipfrag,             // if content-Type is message/sipfrag (cp. NOTIFY, cp TS124147 A.4.3.1.2)
52
        // if content-Type is message/sipfrag (cp. NOTIFY, cp TS124147 A.4.3.1.2)
-
 
53
        charstring textplain,
46
    charstring textplain,           // if content type is text/plain (for testing long messages)
54
        // if content type is text/plain (for testing long messages)
47
    SimpleMsgSummary simpleMsgSummary, // RFC 3842
55
        SimpleMsgSummary simpleMsgSummary,
-
 
56
        // RFC 3842
-
 
57
        octetstring
48
    octetstring smsMessage          // encoded SMS message 3GPP 23.040, 24.011
58
        smsMessage // encoded SMS message 3GPP 23.040, 24.011
49
  };
59
    }
50
-
 
51
-
 
52
}
60
}