Commit 846671d1 authored by rennoch's avatar rennoch
Browse files

MW_SUB_09

parent 69bf7274
Loading
Loading
Loading
Loading
+31 −2
Original line number Diff line number Diff line
@@ -5085,8 +5085,37 @@ module AtsIms_Mw_TCFunctions
		function f_TC_IMST2_MW_SUB_09_IMS(in CSeq p_cSeq_s) runs on ImsComponent {
			f_IMS_preamble_woRegistration(c_userProfile_ICSCFwithHomeUE, p_cSeq_s);
			f_init_interfaceprofile(c_interfaceProfile_IMS_SUT_SCSCF);
			//TODO 
			f_SIP_postamble_UE1_withoutRegistration();
        	
			f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());
        	
			// Testbody
        	
			// prepare and send INVITE UE1
			LibIms_Steps.f_setHeadersINVITE(p_cSeq_s, c_userProfile_UE1atSUThome);
			f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, p_cSeq_s, vc_from, vc_to, vc_via, vc_contact, omit, vc_route, omit, omit, m_pChargingVector_origIoi_fixedValue(vc_userprofile.homeDomain), valueof(m_MBody_SDP(vc_sdp_local))));
        	
			// await response - 200 ...
			f_awaitingResponse(mw_Response_Base(c_statusLine200,vc_callId, vc_cSeq));
			// send ACK
			LibSip_Steps.f_setHeadersACK();
			f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via));

			//await BYE and send 200OK (if alternative b)
			f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));					
        		
			// Sending of a BYE request
			f_SendBYE(m_BYE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_route));
        			
			// await response - 481
			f_awaitingResponse(mw_Response_Base(c_statusLine481, ?, vc_cSeq));
        
			f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
			//Postamble
        	
			// send original BYE await response to clean the session
			f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To);
        	
			f_SIP_postamble_IMS1_withoutRegistration ();
		} // end function f_TC_IMST2_MW_SUB_09_IMS
		
		/*