Rev

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

Rev 605 Rev 607
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_Interface.ttcn 605 2014-02-27 10:42:56Z nikolajev $
3
 *  @version    $Id: LibSip_Interface.ttcn 607 2014-02-27 17:24:26Z nikolajev $
4
 *  @desc        This module provides the types used by the test component
4
 *  @desc        This module provides the types used by the test component
5
 *              for SIP-IMS tests. Module become from STF306 and STF334-336
5
 *              for SIP-IMS tests. Module become from STF306 and STF334-336
6
 *              This module is part of LibSipV3.
6
 *              This module is part of LibSipV3.
7
 */
7
 */
8
module LibSip_Interface {
8
module LibSip_Interface {
Line 17... Line 17...
17
    import from LibSip_XMLTypes all;
17
    import from LibSip_XMLTypes all;
18
18
19
    import from LibSip_PIXITS all;
19
    import from LibSip_PIXITS all;
20
20
21
    group AdressTypes {
21
    group AdressTypes {
22
        type record address4SIP {
22
        type record Address4SIP {
23
            // HostPort
23
            // HostPort
24
            charstring host optional,
24
            charstring host optional,
25
            // hostname, IPv4 or IPv6
25
            // hostname, IPv4 or IPv6
26
            integer portField
26
            integer portField
27
             optional // represented as an integer
27
             optional // represented as an integer
28
        }
28
        }
29
        with {
29
        with {
30
            encode "SIPCodec";
30
            encode "SIPCodec";
31
        }
31
        }
32
32
33
        type address4SIP address;
33
        type Address4SIP address;
34
34
35
35
36
    } // end group AdressTypes
36
    } // end group AdressTypes
37
37
38
    type port SipPort message {
38
    type port SipPort message {
Line 41... Line 41...
41
    with {
41
    with {
42
        extension "address";
42
        extension "address";
43
    }
43
    }
44
44
45
    signature s_SIP_conversation(
45
    signature s_SIP_conversation(
46
        in charstring text,
46
        in charstring p_text,
47
        out boolean answer
47
        out boolean p_answer
48
    ) ;
48
    ) ;
49
    signature s_SIP_ringing(
49
    signature s_SIP_ringing(
50
        in charstring text,
50
        in charstring p_text,
51
        out boolean answer
51
        out boolean p_answer
52
    ) ;
52
    ) ;
53
    signature s_SIP_announcementA(
53
    signature s_SIP_announcementA(
54
        in charstring text,
54
        in charstring p_text,
55
        out boolean answer
55
        out boolean p_answer
56
    ) ;
56
    ) ;
57
    signature s_SIP_announcementB(
57
    signature s_SIP_announcementB(
58
        in charstring text,
58
        in charstring p_text,
59
        out boolean answer
59
        out boolean p_answer
60
    ) ;
60
    ) ;
61
    signature s_SIP_announcement(
61
    signature s_SIP_announcement(
62
        in charstring text,
62
        in charstring p_text,
63
        out boolean answer
63
        out boolean p_answer
64
    ) ;
64
    ) ;
65
    signature s_SIP_voiceMessage(
65
    signature s_SIP_voiceMessage(
66
        in charstring text,
66
        in charstring p_text,
67
        out boolean answer
67
        out boolean p_answer
68
    ) ;
68
    ) ;
69
    signature s_SIP_mediastopped(
69
    signature s_SIP_mediastopped(
70
        in charstring text,
70
        in charstring p_text,
71
        out boolean answer
71
        out boolean p_answer
72
    ) ;
72
    ) ;
73
    type port operatorPort procedure {
73
    type port OperatorPort procedure {
74
        inout s_SIP_conversation;
74
        inout s_SIP_conversation;
75
        inout s_SIP_ringing;
75
        inout s_SIP_ringing;
76
        inout s_SIP_announcementA;
76
        inout s_SIP_announcementA;
77
        inout s_SIP_announcementB;
77
        inout s_SIP_announcementB;
78
        inout s_SIP_announcement;
78
        inout s_SIP_announcement;
Line 90... Line 90...
90
    // } // end ImsComponent
90
    // } // end ImsComponent
91
    type component SipComponent {
91
    type component SipComponent {
92
        // port
92
        // port
93
        port SipPort SIPP;
93
        port SipPort SIPP;
94
        // used for communication with the operator
94
        // used for communication with the operator
95
        port operatorPort opPort;
95
        port OperatorPort opPort;
96
96
97
        // current address to send TCP/UDP messages
97
        // current address to send TCP/UDP messages
98
        var SipUserProfile vc_userprofile; // PIXIT userinformation
98
        var SipUserProfile vc_userprofile; // PIXIT userinformation
99
        var address vc_sent_label; // removed because this value is predefined and used to open socket := {host := PX_SIP_SUT_IPADDR, portField := PX_SIP_SUT_PORT};
99
        var address vc_sent_label; // removed because this value is predefined and used to open socket := {host := PX_SIP_SUT_IPADDR, portField := PX_SIP_SUT_PORT};
100
        // last incoming message
100
        // last incoming message
Line 197... Line 197...
197
        var boolean vc_MESSAGEreceived := false; // true if MESSAGE received during altstep
197
        var boolean vc_MESSAGEreceived := false; // true if MESSAGE received during altstep
198
        var boolean vc_first_recv := false; // true after receipt of first incomming SIP message
198
        var boolean vc_first_recv := false; // true after receipt of first incomming SIP message
199
        var boolean vc_firstREGISTER_sent := false; // true after sent of first REGISTER message
199
        var boolean vc_firstREGISTER_sent := false; // true after sent of first REGISTER message
200
        var boolean vc_DeregDone := false; // true after first DeREGISTRATION trail (avoid loop)
200
        var boolean vc_DeregDone := false; // true after first DeREGISTRATION trail (avoid loop)
201
        var boolean vc_interface_isc := false; // true if isc interface is in use
201
        var boolean vc_interface_isc := false; // true if isc interface is in use
202
        var boolean v_white_space := false; // MRO
202
        var boolean vc_white_space := false; // MRO
203
        // TODO: TT change
203
        // TODO: TT change
204
        var boolean vc_subscribed := false;
204
        var boolean vc_subscribed := false;
205
        // ETS address
205
        // ETS address
206
        var address v_ets_label; /*STF471 removed assignment, should be performed in specific ATS
206
        var address vc_ets_label; /*STF471 removed assignment, should be performed in specific ATS
207
            := {
207
            := {
208
                host := PX_SIP_TS1_IPADDR,
208
                host := PX_SIP_TS1_IPADDR,
209
                portField := PX_SIP_TS1_PORT
209
                portField := PX_SIP_TS1_PORT
210
            };*/
210
            };*/
211
211
212
        // parts needed for Client/SelfSyncComp type compatibility
212
        // parts needed for Client/SelfSyncComp type compatibility
213
        var StringStack v_stateStack := c_initStringStack;
213
        var StringStack vc_stateStack := c_initStringStack;
214
        port SyncPort syncSendPort;
214
        port SyncPort syncSendPort;
215
        port SyncPort syncPort;
215
        port SyncPort syncPort;
216
        timer tc_sync := PX_TSYNC_TIME_LIMIT;
216
        timer tc_sync := PX_TSYNC_TIME_LIMIT;
217
    // // used for communication with the operator
217
    // // used for communication with the operator
218
    // port operatorPort_SIP opPort;
218
    // port OperatorPort_SIP opPort;
219
    } // end SipComponent
219
    } // end SipComponent
220
} // end module LibSip_Interface
220
} // end module LibSip_Interface