Commit f6eb693b authored by rennoch's avatar rennoch
Browse files

f_IMS_TC_301_024

parent 98a2c295
Loading
Loading
Loading
Loading
+44 −6
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ module SipIsup_IMS_TCFunctions {
	//IsupAts
	import from SipIsup_ISUP_ModuleParams all; // for timer values e.g. PX: T7, T9
	import from SipIsup_PIXITS all;
	import from SipIsup_ISUP_Constants all;
	
    //Type to adress the IUT to send it message
    //type Address address;
@@ -2821,14 +2822,12 @@ module SipIsup_IMS_TCFunctions {

					// 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_Base); 
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					//Check message body : PSTN XML bearer capability (transfer capability)
					if ( not match(vc_pstnTransit_remote.BearerInfomationElement[0],mw_BearerCapabilityType({?,bit2str(PX_BearerCapabilityInformationTransferCapability)},?)))
@@ -2844,15 +2843,54 @@ module SipIsup_IMS_TCFunctions {

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

					// POSTAMBLE
					f_SIP_postamble_IMS1_withoutRegistration ()
	
				}// end function f_IMS_TC_301_023

				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_301_024
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_301_024(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_Base); 
					f_awaitingINVITE(mw_INVITE_Request_IMS(*,*,*,*));
					//Check message body : PSTN XML bearer capability (speech, unrestricted-digital-info)
					if ( not (match(vc_pstnTransit_remote.BearerInfomationElement[0],
							mw_BearerCapabilityType({?,bit2str(c_BCAP_Speech)},?)))
							and
					(match(vc_pstnTransit_remote.BearerInfomationElement[1],
							mw_BearerCapabilityType({?,bit2str(c_BCAP_UDI_TA)},?)))
							)
						{log("unexpected Bearer Capability"); setverdict (fail);}
					
					f_sendResponse(m_Response_18XonINVITE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact));
					f_check_Ringing();
					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
					// send REGISTER, await 401, send REGISTER, await 200 OK 
					//f_RemoveRegistration(vc_cSeq);

	//				f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict());// sync point postamble done
					f_SIP_postamble_IMS1_withoutRegistration ()
	
				}// end function f_IMS_TC_301_023

				}// end function f_IMS_TC_301_024
				
			} // end group TP301_SendingINVITE