Commit c83ecb75 authored by rennoch's avatar rennoch
Browse files

f_IMS_TC_301_034 and related templates/PIXIT due cpc mapping

parent d93d75f1
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
@@ -3651,6 +3651,7 @@ module SipIsup_IMS_TCFunctions {
					//Check message body : PSTN XML progress indicator #6(originating access ISDN)
					if (not (match(vc_pstnTransit_remote.HighLayerCompatibility,
					
										
							{mw_HighLayerCompatibilityType(?,{bit2str(PX_HighLayerCharacteristicsIdentification)}), 
							 mw_HighLayerCompatibilityType(?,{bit2str(PX_HighLayerCharacteristicsIdentification2)})							 
							}
@@ -3676,6 +3677,42 @@ module SipIsup_IMS_TCFunctions {
				}// end function f_IMS_TC_301_033


				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_301_034
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_301_034(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 with PAsserted (using CPC tel URI draft by IETF) and AcceptContact headers
					// ISUP CPC: Q.763 ch. 3.11, using mapping from TS129163 annex C	
					f_awaitingINVITE(mw_INVITE_Request_PAsserted_AcceptContact(mw_PAssertedID(mw_PAssertedIDValue(mw_SipUrl_urlParam(m_cpc))),mw_acceptContact(mw_semicolonParams_language(PX_SIP_ISUP_LANGUAGE))));
					
					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_SIP_postamble_IMS1_withoutRegistration ()
	
				}// end function f_IMS_TC_301_034
				
			} // end group TP301_SendingINVITE
		
			group TP302_Receiving_SAM {