LibSip_SimpleMsgSummaryTypes.ttcn 1.73 KB
Newer Older
 * @author STF 406, 471
tepelmann's avatar
tepelmann committed
 * @version $Id: LibSip_SimpleMsgSummaryTypes.ttcn 488 2010-11-08 10:17:19Z pintar $
 * @desc This module provides the SMS type system for SIP tests.
 *              This module is part of LibSipV3.
*/
tepelmann's avatar
tepelmann committed
module LibSip_SimpleMsgSummaryTypes {
    // RFC 3842
    group SMSConstants {

        // IMS ETSI name MWI application
        const charstring c_imsEtsiMwiApplication := "application/simple-message-summary";
tepelmann's avatar
tepelmann committed

        // msg_status line := "Message-Waiting"
        const charstring c_messageWaiting := "Message-Waiting";

        // msg_status line := "Message-Account"
        const charstring c_messageAccount := "Message-Account";

        // msg_summary line := "Voice-Message"
        const charstring c_voiceMessage := "Voice-Message";

tepelmann's avatar
tepelmann committed

    group SMSTypes {
        type record SimpleMsgSummary {
            // Simple_message_summary
            Msg_status_line msg_status_line,
            Msg_account msg_account optional,
            Msg_summary_line_list msg_summary_line_list optional,
tepelmann's avatar
tepelmann committed
            Opt_msg_headers opt_msg_headers optional
tepelmann's avatar
tepelmann committed

        type record Msg_status_line {
            charstring msg_type,
            charstring msg_status
        }
tepelmann's avatar
tepelmann committed

        type record Msg_account {
            charstring msg_type_account,
            charstring account_URI
        }
tepelmann's avatar
tepelmann committed

        type set of Msg_summary_line Msg_summary_line_list;
tepelmann's avatar
tepelmann committed

        type record Msg_summary_line {
            charstring msg_context_class,
            charstring msgs,
            charstring urgent_msgs optional
        }
tepelmann's avatar
tepelmann committed

        type set of charstring Opt_msg_headers;

tepelmann's avatar
tepelmann committed

    // type integer msgcount length(1); //msgs and urgent_msgs can be dividet into subtypes
    }
rennoch's avatar
rennoch committed
}