Commit eb90b1fc authored by juvancic's avatar juvancic
Browse files

added tests of 306XXX group - Waiting CON messages

parent 5361957e
Loading
Loading
Loading
Loading
+68 −0
Original line number Diff line number Diff line
@@ -7556,6 +7556,74 @@ module SipIsup_IMS_TCFunctions {
			} // end group TP305_Sending_ANM
			
			group TP306_Sending_CON {
				
				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_306_001
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_306_001(in CSeq p_cSeq_s) runs on ImsComponent {
					
					// PREAMBLE
					// IMS component interface initialization
					//c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE
					f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable

					f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());// sync point preamble done
					// TESTBODY
					//Awaiting INVITE	
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));

					f_sendResponse(m_Response_2xxonINVITE(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))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));
					f_check_Conversation();	
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));

					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
						
				}// end function f_IMS_TC_306_001
				
				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_306_002
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_306_002(in CSeq p_cSeq_s) runs on ImsComponent {
					f_IMS_TC_306_001(p_cSeq_s);
				}// end function f_IMS_TC_306_002
				
				/*  @desc	This is the test case function (IMS/SIP side) for TC_306_003
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_306_003(in CSeq p_cSeq_s) runs on ImsComponent {
	
					// PREAMBLE
					// IMS component interface initialization
					//c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE
					f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable

					f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict());// sync point preamble done
					// TESTBODY
					//Awaiting INVITE	
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));

					vc_xml_local := valueof(m_XmlBody_PSTNTransit(m_PSTN_transit(m_BearerCapabilityType(c_BCAP_Speech), omit, omit, omit, omit, m_ProgressIndicatorType(PX_ProgressIndicator), omit)));
					
					f_sendResponse(m_Response_2xxonINVITE_Mime(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route(),valueof(m_MBody_MIMESdpXml(vc_sdp_local, vc_xml_local))));
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));
					f_check_Conversation();	
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Base(vc_callId));

					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());// sync point test body done

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
		
				}// end function f_IMS_TC_306_003
				
			} // end group TP306_Sending_CON
		
			group TP307_Receiving_REL {