Commit 445432de authored by rennoch's avatar rennoch
Browse files

cfu03

parent 63f427b4
Loading
Loading
Loading
Loading
+121 −0
Original line number Diff line number Diff line
@@ -6751,6 +6751,127 @@ module AtsNIT_SipSip_SS_TCFunctions {
		f_AtsNIT_TC_SS___XXSSCFU01UE3(p_cSeq_s);
	} // end function f_AtsNIT_TC_SS___XXSSCFU02UE3

	/* 
	* @desc		This is the test case function (originating side) for AtsNIT_TC_SS___XXSSCFU03
	* @param	p_CSeq_s Transaction Id
	*/
	function f_AtsNIT_TC_SS___XXSSCFU03UE1(in CSeq p_cSeq_s) runs on ImsComponent {
		f_IMS_preamble_withRegistrationBasic(c_userProfile_UE1atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable

		f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());

		// Testbody
		
		// prepare and send INVITE UE2@SUT
		LibIms_Steps.f_setHeadersINVITE(
			vc_cSeq, 
			c_userProfile_UE2atSUThome
		);
		
		f_SendINVITE(m_INVITE_Request_UE(
			vc_requestUri, 
			vc_callId, 
			vc_cSeq, 
			vc_from, 
			vc_to, 
			vc_via, 
			vc_contact, 
			omit, 
			vc_route, 
			omit, 
			m_MBody_SDP(vc_sdp_local)
		));

		vc_ignore181 := true; // allow optional 181
		
		// await 180 response without 
		// 100rel in require header field
		f_awaitingResponse(mw_Response_Require_ifpresent(
			c_statusLine180,
			vc_callId, 
			vc_cSeq,
			mw_Require_not_100rel
		));

		// NO 181 allowed
				
		// await 200 OK response
		f_awaitingOkResponse(vc_cSeq);
		
		// send ACK
		f_SendACK(m_ACK_Request_Base(
			vc_requestUri, 
			vc_callId, 
			vc_cSeq, 
			vc_from, 
			vc_to, 
			vc_via
		));
				
		f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
		
		//await BYE and send 200OK
		f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));
		
		f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
		
		// postamble
		f_IMS_postamble_withDeRegistration(vc_cSeq);
	} // end function f_AtsNIT_TC_SS___XXSSCFU03UE1
	
	
	
	/* 
	* @desc		This is the test case function (terminating side) for TC_SS___XXSSCFU03
	* @param	p_CSeq_s Transaction Id
	*/

	// UE2 does not take part in the test	

	/* 
	* @desc		This is the test case function (terminating side) for TC_SS___XXSSCFU03
	* @param	p_CSeq_s Transaction Id
	*/
	function f_AtsNIT_TC_SS___XXSSCFU03UE3(in CSeq p_cSeq_s) runs on ImsComponent {
		f_IMS_preamble_withRegistrationBasic(c_userProfile_UE3atSUThome, p_cSeq_s); // assignment of PIXIT values to component variable

		f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());

		// Testbody
		
		f_awaitingINVITE(mw_INVITE_Request_require(
			mw_Require_not_100rel
		)); 
		f_sendResponse(m_Response_18XonINVITE_Require_ifpresent(
			c_statusLine180,
			vc_callId, 
			vc_cSeq,
			vc_caller_From, 
			vc_caller_To, 
			vc_via,
			vc_contact,
			mw_Require_not_100rel
		));
				
		f_sendResponse(m_Response_2xxonINVITE_UE(
			c_statusLine200,
			vc_callId, 
			vc_cSeq,
			vc_caller_From, 
			vc_caller_To, 
			vc_via,vc_contact,
			f_route(),
			valueof(m_MBody_SDP(vc_sdp_local))
		));
		
		// await ACK
		f_awaitingACK(mw_ACK_Request_Base(vc_callId));
						
		f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
		
		// postamble
		f_IMS_postamble_withDeRegistration(vc_cSeq);
	} // end function f_AtsNIT_TC_SS___XXSSCFU03UE3

	}//end group TP2_6_SS_CFU