Commit f05caefb authored by rennoch's avatar rennoch
Browse files

606003

parent 9f1d849b
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -11743,6 +11743,46 @@ module SipIsup_IMS_TCFunctions {
        					
				}// end function f_IMS_TC_606_002

				/* 
				*  @desc	This is the test case function (IMS/SIP side) for TC_606_003
				*  @param	loc_CSeq_s - Transaction Id
				*/
				function f_IMS_TC_606_003(in CSeq p_cSeq_s) runs on ImsComponent {
					
					var INVITE_Request v_InviteReq;
					// 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(*,*,*,*));
					v_InviteReq:=vc_request;
					
					select(PX_SIP_MESSAGE_VA) {           
						case(1){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine180,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted))));}
						case(2){f_sendResponse(m_Response_18XonINVITE_pAsserted_UE(c_statusLine183,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted))));}
						case(3){setverdict(pass);} // see below for Response_200
						case else {log("Invalid PX_SIP_MESSAGE_VA variant (",PX_SIP_MESSAGE_VA,"), available variant 1-3");}
					}
					
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
				
					f_sendResponse(m_Response_2XXonINVITE_pAsserted_UE(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,m_PAssertedID(m_AddrUnion_NameAddr(PX_SIP_NameAddr_PAsserted)),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_606_003

			} // end group TP606_COL