Commit ff9017cb authored by juvancic's avatar juvancic
Browse files

No commit message

No commit message
parent 8766b510
Loading
Loading
Loading
Loading
+57 −3
Original line number Diff line number Diff line
@@ -7912,6 +7912,24 @@ module SipIsup_IMS_TCFunctions {
				*/
				function f_IMS_TC_307_004(in CSeq p_cSeq_s) runs on ImsComponent {
					
					// expected status and cause values according to the testcase variant
					// From ETSI TS 186 009-2 Table 10, TP307004-307006
					var integer v_CauseVal[7]; 
					// dummy value for index 0 (unused)
					v_CauseVal[0] := 0;		
					// Cause Value No. 16 (normal call clearing)
					v_CauseVal[1] := 16;
					// Cause Value No. 31 (normal unspecified) (Class default)
					v_CauseVal[2] := 31;
					// Cause Value No. 41 (Temporary failure)
					v_CauseVal[3] := 41;
					// Cause Value No. 95 (invalid message) (Class default)
					v_CauseVal[4] := 95;
					// Cause Value No. 102 (recovery on timer expiry)
					v_CauseVal[5] := 102;
					// Cause Value No. 111 (protocol error, unspecified) (Class default)
					v_CauseVal[6] := 111;
					
					// PREAMBLE
					// IMS component interface initialization
					//c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE
@@ -7932,7 +7950,7 @@ module SipIsup_IMS_TCFunctions {
					}
					
					f_awaitingCANCEL(mw_CANCEL_Request_Base(vc_callId));
					if (not (match (vc_request.msgHeader.reason,mw_Reason(PX_CauseValue)))){setverdict(fail)}
					if (not (match (vc_request.msgHeader.reason,mw_Reason(v_CauseVal[PX_TC_VA])))){setverdict(fail)}
					
					f_sendResponse(m_Response_onCANCEL(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route()));
					f_sendResponse(m_Response_onCANCEL(c_statusLine487,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route()));
@@ -7951,6 +7969,24 @@ module SipIsup_IMS_TCFunctions {
				*/
				function f_IMS_TC_307_005(in CSeq p_cSeq_s) runs on ImsComponent {

					// expected status and cause values according to the testcase variant
					// From ETSI TS 186 009-2 Table 10, TP307004-307006
					var integer v_CauseVal[7]; 
					// dummy value for index 0 (unused)
					v_CauseVal[0] := 0;		
					// Cause Value No. 16 (normal call clearing)
					v_CauseVal[1] := 16;
					// Cause Value No. 31 (normal unspecified) (Class default)
					v_CauseVal[2] := 31;
					// Cause Value No. 41 (Temporary failure)
					v_CauseVal[3] := 41;
					// Cause Value No. 95 (invalid message) (Class default)
					v_CauseVal[4] := 95;
					// Cause Value No. 102 (recovery on timer expiry)
					v_CauseVal[5] := 102;
					// Cause Value No. 111 (protocol error, unspecified) (Class default)
					v_CauseVal[6] := 111;

					// PREAMBLE
					f_IMS_preamble_MGCF(c_userProfile_ICSCFwithHomeUE, p_cSeq_s); // assignment of PIXIT values to component variable

@@ -7965,7 +8001,7 @@ module SipIsup_IMS_TCFunctions {
					f_awaitingACK(mw_ACK_Request_Base(vc_callId));
					f_check_Conversation();
					//await BYE and send 200 OK
					f_awaitingBYE_sendReply(mw_BYE_Request_Reason(vc_callId,PX_CauseValue));
					f_awaitingBYE_sendReply(mw_BYE_Request_Reason(vc_callId,v_CauseVal[PX_TC_VA]));

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

@@ -7980,6 +8016,24 @@ module SipIsup_IMS_TCFunctions {
				*/
				function f_IMS_TC_307_006(in CSeq p_cSeq_s) runs on ImsComponent {
					
					// expected status and cause values according to the testcase variant
					// From ETSI TS 186 009-2 Table 10, TP307004-307006
					var integer v_CauseVal[7]; 
					// dummy value for index 0 (unused)
					v_CauseVal[0] := 0;		
					// Cause Value No. 16 (normal call clearing)
					v_CauseVal[1] := 16;
					// Cause Value No. 31 (normal unspecified) (Class default)
					v_CauseVal[2] := 31;
					// Cause Value No. 41 (Temporary failure)
					v_CauseVal[3] := 41;
					// Cause Value No. 95 (invalid message) (Class default)
					v_CauseVal[4] := 95;
					// Cause Value No. 102 (recovery on timer expiry)
					v_CauseVal[5] := 102;
					// Cause Value No. 111 (protocol error, unspecified) (Class default)
					v_CauseVal[6] := 111;
					
					// PREAMBLE
					// IMS component interface initialization
					//c_userProfile_ICSCFwithHomeUE or c_userProfile_IBCFwithHomeUE
@@ -8000,7 +8054,7 @@ module SipIsup_IMS_TCFunctions {
					f_selfOrClientSyncAndVerdict(c_sync1, f_getVerdict());// sync point
					
					f_awaitingCANCEL(mw_CANCEL_Request_Base(vc_callId));
					if (not (match (vc_request.msgHeader.reason,mw_Reason(PX_CauseValue)))){setverdict(fail)}
					if (not (match (vc_request.msgHeader.reason,mw_Reason(v_CauseVal[PX_TC_VA])))){setverdict(fail)}
					
					f_sendResponse(m_Response_onCANCEL(c_statusLine200,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route()));
					f_sendResponse(m_Response_onCANCEL(c_statusLine487,vc_callId, vc_cSeq,vc_caller_From, vc_caller_To, vc_via,vc_contact,f_route()));