Commit 7c39f8cb authored by pintar's avatar pintar
Browse files

TC 101 010 to 101 014

parent 37ff06af
Loading
Loading
Loading
Loading
+190 −0
Original line number Diff line number Diff line
@@ -452,6 +452,196 @@ module SipIsup_IMS_TCFunctions {
					f_SIP_postamble_IMS1_withoutRegistration();
				} // end function f_IMS_TC_101_009
				
				/* 
				* @desc		This is the test case function (SIP side) for TC_101_010
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_101_010(in CSeq p_cSeq_s) runs on ImsComponent {

					//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());
					// Testbody
					
					// 	INVITE UE1
					LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP);
					f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, m_Require_prec, vc_route, vc_recordRoute, omit, omit, m_MBody_SDP(vc_sdp_local)));
					
					f_awaitingResponse(mw_Response_Base(c_statusLine183,vc_callId, vc_cSeq));
										
					if (f_checkTagPresent(valueof(vc_to.toParams))) {
						setverdict (pass);
					} else {
						log ("FAIL: Missing TAG parameter in To header.");
						setverdict (fail);
					}
					
					f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq));
					
					f_check_Ringing();
					
					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));		
					
					f_check_Conversation();
					
					//Send BYE and awaiting response
					f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To);
					
					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					
					f_SIP_postamble_IMS1_withoutRegistration();
				} // end function f_IMS_TC_101_010
				
				/* 
				* @desc		This is the test case function (SIP side) for TC_101_011
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_101_011(in CSeq p_cSeq_s) runs on ImsComponent {

					//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());
					// Testbody
					
					// 	INVITE UE1
					LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP);
					f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, m_Require_prec, vc_route, vc_recordRoute, omit, omit, m_MBody_SDP(vc_sdp_local)));
					
					f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq));
										
					if (f_checkTagPresent(valueof(vc_to.toParams))) {
						setverdict (pass);
					} else {
						log ("FAIL: Missing TAG parameter in To header.");
						setverdict (fail);
					}
					
					f_check_Ringing();
					
					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));		
					
					f_check_Conversation();
					
					//Send BYE and awaiting response
					f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To);
					
					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					
					f_SIP_postamble_IMS1_withoutRegistration();
				} // end function f_IMS_TC_101_011
				
				/* 
				* @desc		This is the test case function (SIP side) for TC_101_012
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_101_012(in CSeq p_cSeq_s) runs on ImsComponent {

					//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());
					// Testbody
					
					// 	INVITE UE1
					LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP);
					f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, m_Require_prec, vc_route, vc_recordRoute, omit, omit, m_MBody_SDP(vc_sdp_local)));
					
					f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq));
					
					f_check_Ringing();
					
					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));		
					
					f_check_Conversation();
					
					//Send BYE and awaiting response
					f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To);
					
					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					
					f_SIP_postamble_IMS1_withoutRegistration();
				} // end function f_IMS_TC_101_012
				
				/* 
				* @desc		This is the test case function (SIP side) for TC_101_013
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_101_013(in CSeq p_cSeq_s) runs on ImsComponent {

					var SDP_media_desc_list v_mediaDescList := valueof({m_media(m_media_field(c_image, 41711, c_udptl, "t38"))
																	  });
										
					//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());
					// Testbody
					
					// 	INVITE UE1
					vc_sdp_local := valueof(m_SDP_mediaList(v_mediaDescList, vc_userprofile));
					LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP);
					f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, m_Require_prec, vc_route, vc_recordRoute, omit, omit, m_MBody_SDP(vc_sdp_local)));
					
					f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq));
					
					f_check_Ringing();
					
					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));		
					
					f_check_Conversation();
					
					//Send BYE and awaiting response
					f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To);
					
					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					
					f_SIP_postamble_IMS1_withoutRegistration();
				} // end function f_IMS_TC_101_013
				
				/* 
				* @desc		This is the test case function (SIP side) for TC_101_014
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_101_014(in CSeq p_cSeq_s) runs on ImsComponent {
					
					var SDP_attribute_list v_attribute_list_invite := valueof({  m_attribute_PCMU,
																				 m_attribute_CLEARMODE_DPT		
																			  });
										
					//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());
					// Testbody
					
					// 	INVITE UE1
					vc_sdp_local := valueof(m_SDP_media_attr_preconditions(valueof(m_media(m_media_field(c_audio, 4711, c_rtpAvp, "8"))), vc_userprofile, v_attribute_list_invite));
					LibIms_Steps.f_setHeadersINVITE(vc_cSeq, c_userProfile_ISUP);
					f_SendINVITE(m_INVITE_Request_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via, vc_contact, m_Require_prec, vc_route, vc_recordRoute, omit, omit, m_MBody_SDP(vc_sdp_local)));
					
					f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq));
					
					f_check_Ringing();
					
					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));		
					
					f_check_Conversation();
					
					//Send BYE and awaiting response
					f_terminateCall_IMS(vc_requestUri, vc_callId, vc_cSeq, vc_caller_From, vc_caller_To);
					
					f_selfOrClientSyncAndVerdict(c_tbDone, f_getVerdict());
					
					f_SIP_postamble_IMS1_withoutRegistration();
				} // end function f_IMS_TC_101_014
				
			} // end group TP101_SendingIAM

			group TP102_Sending_SAM {