Rev

Rev 549 | Details | Compare with Previous | Last modification | View Log | SVN | Bug Tracker

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