Commit 34aaaefb authored by rennoch's avatar rennoch
Browse files

finished group 506XXX

parent 90a51ce1
Loading
Loading
Loading
Loading
+138 −1
Original line number Diff line number Diff line
@@ -10623,7 +10623,144 @@ module SipIsup_IMS_TCFunctions {
					f_IMS_TC_506_006(p_cSeq_s);
				} // end function f_IMS_TC_506_009			

			} // end group TP506_COL
				/* 
				* @desc		This is the test case function (SIP side) for TC_506_010
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_506_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, omit, vc_route, vc_recordRoute, m_Supported_fromChange, omit, m_MBody_SDP(vc_sdp_local)));
		
					f_awaitingResponse(mw_Response_Base(c_statusLine180,vc_callId, vc_cSeq)); 
		
					f_check_Ringing();
		
					//Check in 200 OK if PAsserted header has number in international format
					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_506_010
				
				/* 
				* @desc		This is the test case function (SIP side) for TC_506_011
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_506_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, omit, 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();
					
					//Check in 200 OK if PAsserted header has number in international format + Supported tag : from-change
					f_awaitingResponse(mw_Response_PAsserted_Privacy_Supported(c_statusLine200,vc_callId, vc_cSeq,mw_PAssertedID(mw_PAssertedIDValue(mw_TelSipUrl_Number(m_international_number_format))),*,mw_Supported_fromChange)); 
						
					f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via));		
					
					//Awaiting UPDATE, reply 200
					f_awaitingUPDATE(mw_UPDATE_Request_Base(vc_callId));
					
					//Check from field
					if (not(match(vc_caller_From,mw_From_NameAddr_SipUrl(*,m_international_number_format,?)))){setverdict (fail);}
					
					f_sendResponse(m_Response_2xxonUPDATE(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();
					
					//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_506_011		
				
				/* @desc		This is the test case function (SIP side) for TC_506_012
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_506_012(in CSeq p_cSeq_s) runs on ImsComponent {
					f_IMS_TC_506_011(p_cSeq_s);
				} // end function f_IMS_TC_506_012
				
				/* 
				* @desc		This is the test case function (SIP side) for TC_506_013
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_506_013(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, omit, 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();
					
					//Check in 200 OK if PAsserted header has number in international format + Supported tag : from-change
					f_awaitingResponse(mw_Response_PAsserted_Privacy_Supported(c_statusLine200,vc_callId, vc_cSeq,mw_PAssertedID(mw_PAssertedIDValue(mw_TelSipUrl_Number(m_international_number_format))),*,mw_Supported_fromChange)); 
						
					f_SendACK(m_ACK_Request_Base(vc_requestUri, vc_callId, vc_cSeq, vc_from, vc_to, vc_via));		
					
					//Awaiting UPDATE, reply 200
					f_awaitingUPDATE(mw_UPDATE_Request_Base(vc_callId));
					
					//Check from field
					if (not(match(vc_caller_From,mw_From_NameAddr_SipUrl(*,m_international_number_format,?)))){setverdict (fail);}
					
					//Check for Privacy header field 
					if (not(ispresent (vc_request.msgHeader.privacy))){setverdict(fail)}
					
					f_sendResponse(m_Response_2xxonUPDATE(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();
					
					//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_506_013		
				
				/* @desc		This is the test case function (SIP side) for TC_506_014
				* @param	p_CSeq_s Transaction Id
				*/
				function f_IMS_TC_506_014(in CSeq p_cSeq_s) runs on ImsComponent {
					f_IMS_TC_506_013(p_cSeq_s);
				} // end function f_IMS_TC_506_014
				
			} // end group TP506_COLP

			group TP507_MCID {