Commit e3358db0 authored by pintar's avatar pintar
Browse files

CUG_N01_001 test case and PIXITS for CUG functionality

parent 8f97853c
Loading
Loading
Loading
Loading
+46 −23
Original line number Diff line number Diff line
@@ -17,25 +17,41 @@ module SS_Ims_PIXITS {
	*			Value of PX_LOCAL_POLICY
	*			1: receive no cause due to local policy, 2: receive cause #31 due to local policy
	*/
	modulepar {


	/** @desc	integer for testcase variant according to table entry in table to test purpose description, if present
	*/
	integer PX_TC_VA:=1;
 	modulepar integer PX_TC_VA:=1;

	/** @desc	float default value for Ti/w1 (500 ms)
	*/
	modulepar float        PX_SIP_Tiw1 := 0.5;

	/** @desc	float default value for Ti/w2 (500 ms)
	*/
	modulepar float        PX_SIP_Tiw2 := 0.5;
	
	/** @desc	Integer for Cause value used for mapping between 
		*          ISUP: Cause value within CAUI parameter and 
		*          SIP: Q.850 cause value in Reason header
		*          Used in TC_110_001 and TC_110_002
	*/
	modulepar integer PX_CauseValue:=16;

group PSTN_Transit {
	/** @desc	Bitstring[5] for Bearer Capability Information Transfer Capability used for mapping between 
	 *          ISUP: Bearer Capability information element within USI parameter and 
	 *          SIP: SDP offer or PSTN XML BearerCapability 
	 *          Used in TC_301_014, TC_301_015 and TC_301_023
	*/
	Bit5 PX_BearerCapabilityInformationTransferCapability:='00000'B;
	modulepar Bit5 PX_BearerCapabilityInformationTransferCapability:='00000'B;

	/** @desc  Bitstring[5] for Bearer Capability Information Transfer Capability used for mapping between 
	*          ISUP: Bearer Capability information element within ATP parameter and 
	*          SIP: PSTN XML BearerCapability
	*          Used in TC_
	*/
	Bit5 PX_BearerCapabilityInformationTransferCapability2:='00000'B;
	modulepar Bit5 PX_BearerCapabilityInformationTransferCapability2:='00000'B;

	/** @desc	Bitstring[7] for High layer characteristics identification used for mapping between 
	 *          ISUP: High layer compatibility information element within ATP or UTSI parameter and 
@@ -43,50 +59,56 @@ module SS_Ims_PIXITS {
	 *          Used in TC_105_012, TC_105_013, TC_106_006, TC_106_007, TC_107_008, TC_107_009,
	 *          TC_301_031, TC_301_032 and TC_301_033
	*/
	Bit7 PX_HighLayerCharacteristicsIdentification:='0000001'B;
	modulepar Bit7 PX_HighLayerCharacteristicsIdentification:='0000001'B;

    /** @desc	Bitstring[7] for 2nd High layer characteristics identification used for mapping between 
     *          ISUP: High layer compatibility information element within ATP parameter and 
     *          SIP: PSTN XML HighLayerCompatibility
     *          Used in TC104_015, TC_104_016 and TC_301_033 
    */
    Bit7 PX_HighLayerCharacteristicsIdentification2:='0000001'B;
	modulepar Bit7 PX_HighLayerCharacteristicsIdentification2:='0000001'B;
 
 	/** @desc	Bitstring[5] for Low layer Information Transfer Capability used for mapping between 
	 *          ISUP: Low layer compatibility information element within ATP parameter and 
	 *          SIP: PSTN XML LowLayerCompatibility
	 *          Used in TC_104_018, TC_104_019, TC_106_008, TC_107_010 and TC_301_030
	*/
	Bit5 PX_LowLayerInformationTransferCapability:='00000'B;
	modulepar Bit5 PX_LowLayerInformationTransferCapability:='00000'B;

	/** @desc	Bitstring[7] for Progress description used for mapping between 
	 *          ISUP: Progress indicator information element within ATP parameter and 
	 *          SIP: PSTN XML ProgressIndicator
	 *          Used in TC_104_008, TC_104_020, TC_105_006, TC_107_004 and TC_301_029
	*/

	Bit7 PX_ProgressIndicator:='0000001'B;

	/** @desc	Integer for Cause value used for mapping between 
	 *          ISUP: Cause value within CAUI parameter and 
	 *          SIP: Q.850 cause value in Reason header
	 *          Used in TC_110_001 and TC_110_002
	modulepar Bit7 PX_ProgressIndicator:='0000001'B;
} // end group PSTN_Transit

group CUG_PIXITS{
	/** @desc	Integer for CugIndex which refers to value assigned by the network  
		*          to identify a CUG 
		*          integer (0 .. 32767)
		*          Used in CUG group of tests
	*/
	modulepar integer PX_CugIndex:=1000;

	integer PX_CauseValue:=16;

	/** @desc	float default value for Ti/w1 (500 ms)
	/** @desc	hexstring for CugNetworkIndicator 
		*          Used in CUG group of tests
		*          
	*/
	float        PX_SIP_Tiw1 := 0.5;
	modulepar hexstring PX_CugNetworkIndicator:='A'H;

	/** @desc	float default value for Ti/w2 (500 ms)
	/** @desc	hexstring for CugInterlockBinaryCode  
		*          Used in CUG group of tests
	*/
	float        PX_SIP_Tiw2 := 0.5;
	modulepar hexstring PX_CugInterlockBinaryCode:='AB'H;
}

group SIPHeadersPIXITS {
	
    /** @desc	NameAddr default value for From field 
     * 			used in groupe 501
    */
	NameAddr	PX_SIP_NameAddr_From := {displayName := omit, 	 			// optional charstring
	modulepar NameAddr	PX_SIP_NameAddr_From := {displayName := omit, 	 			// optional charstring
										addrSpec :=	{	  
                                            		scheme := c_sipScheme,  			// contains "sip"
                                            		userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit},
@@ -97,7 +119,7 @@ module SS_Ims_PIXITS {
	/** @desc	NameAddr default value for PAsserted(with sip scheme) field 
	 * 			used in groupe 501
	*/
	NameAddr	PX_SIP_NameAddr_PAsserted := {displayName := omit, 	 			// optional charstring
	modulepar NameAddr	PX_SIP_NameAddr_PAsserted := {displayName := omit, 	 			// optional charstring
										addrSpec :=	{	  
                                                    scheme := c_sipScheme,  			// contains "sip"
                                                    userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit},
@@ -108,7 +130,7 @@ module SS_Ims_PIXITS {
    /** @desc	NameAddr default value for PAsserted2(with tel scheme) field 
     * 			used in groupe 501 
	*/
	NameAddr	PX_SIP_NameAddr_PAsserted2 := {displayName := omit, 	 			// optional charstring
	modulepar NameAddr	PX_SIP_NameAddr_PAsserted2 := {displayName := omit, 	 			// optional charstring
										addrSpec :=	{	  
													scheme := c_telScheme,  			// contains "tel"
													userInfo := {userOrTelephoneSubscriber:= "+491234567", password:=omit},
@@ -116,6 +138,7 @@ module SS_Ims_PIXITS {
													urlParameters := omit,
													headers := omit}
										}
	}
}// end group SIPHeadersPIXITS
	

}// end module SipIsup_PIXITS
 No newline at end of file
+23 −1
Original line number Diff line number Diff line
@@ -716,10 +716,32 @@ group SuplementaryService_CUG{
				// Testbody

				// 	INVITE to AS1@IMS
				vc_xml_local := valueof(m_XmlBody_CUG(m_CUG(omit, omit, omit, omit)));
				vc_xml_local := valueof(m_XmlBody_CUG(m_CUG(m_cugReqType(omit,PX_CugIndex), 'A'H, 'AB'H, bit2str('00'B))));
				LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_AS1);
				f_SendINVITE(m_INVITE_Request_Mime_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, vc_recordRoute, omit, omit, m_MBody_MIMESdpXml(vc_sdp_local, vc_xml_local)));
				
				f_awaitingINVITE(mw_INVITE_Request_IMS_cug(*,*,*,*,mw_CUG(*, PX_CugNetworkIndicator, PX_CugInterlockBinaryCode, bit2str('11'B))));
				
        		f_sendResponse(m_Response_mbody(c_statusLine200, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To, vc_via, valueof(m_MBody_SDP(vc_sdp_local))));
        
				f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq));
        
        		f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via));
        
				// POSTAMBLE: await ACK, await termination
				f_awaitingACK(mw_ACK_Request_Base(vc_callId));
        		
				f_SendBYE(m_BYE_Request_Base( vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via));
        
        		f_awaitingBYE(mw_BYE_Request_Base(vc_callId));
        
        		f_sendResponse(m_Response_Base(c_statusLine200, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To, vc_via));
        		
        		f_awaitingResponse(mw_Response_Base(c_statusLine200, vc_callId, vc_cSeq));
        
        		// UE1 is registerd in SUT only, but not registered in IMS1
        		f_SIP_postamble_IMS1_withoutRegistration();
				
			} // end f_Sip_CUG_N01_001_AS1
			
		}// end group Originating_AS