Commit 65b6825a authored by Yann Garcia's avatar Yann Garcia Committed by Bostjan Pintar
Browse files

Review of TTCN-3 implementation & templates of all emergency TPs for the SIP part

parent 659d6c4e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2426,6 +2426,7 @@ module AtsImsIot_Emergency {
                        f_mtc_check_TP_MW_PCSCF_EMC_CANCEL_01(vc_vxlte_monitor_components.mwPE, -, v_sip); // Event 6
            
                        f_mtc_check_TP_MX_ECSCF_EMC_CANCEL_01(vc_vxlte_monitor_components.mmB_PSAP, -, v_sip); // Event 9

                        f_mtc_check_TP_IC_IBCF_CANCEL_01(vc_vxlte_monitor_components.ic, true); // CANCEL Event 10 (NOTE: comment out if ISC simulated by Ic)

                        f_mtc_check_TP_IC_IBCF_2XXRESP_01(vc_vxlte_monitor_components.ic); // 200 CANCEL – Event 11
@@ -2536,6 +2537,7 @@ module AtsImsIot_Emergency {

                        f_mtc_check_TP_MM_ECSCF_EMC_487INVITE_01(vc_vxlte_monitor_components.mmB_PSAP, -, v_sip); // Event 22
                        f_mtc_check_TP_MI_ECSCF_EMC_487INVITE_01(vc_vxlte_monitor_components.mwEB, -, v_sip); // Event 23

                        f_mtc_check_TP_MW_PCSCF_EMC_487INVITE_01(vc_vxlte_monitor_components.mwPE, -, v_sip); // Event 24
                        f_mtc_check_TP_GM_PCSCF_487INVITE_01(vc_vxlte_monitor_components.gmA, -, v_sip); // Event 25

+1 −0
Original line number Diff line number Diff line
@@ -1801,6 +1801,7 @@ module AtsImsIot_TP_behavior_GM {
			}
		} // End of function f_mtc_check_TP_GM_PCSCF_ECO_INVITE_03

        
		/**
		 * @desc Verify that the P-CSCF successfully receives an initial eCall type INVITE from an emergency registered UE.
		 * Reference 
+62 −0
Original line number Diff line number Diff line
@@ -2975,6 +2975,40 @@ module AtsImsIot_TP_behavior_MW_PS {
            }
        } // End of function f_mtc_check_TP_MW_PCSCF_ECO_200OK_01
        
        function f_mtc_check_TP_MW_PCSCF_ECO_200OK_01(
                                                      in SipInterfaceMonitor p_monitorCompRef,
                                                      in boolean p_checkMessage := false,
                                                      in SipMessage p_sip
                                                      ) runs on ImsTestCoordinator {
            if (isvalue(p_monitorCompRef)) {
                var ImsUserInfo v_psapInfo := f_getSipUserId(PX_PSAP);
                
                // Check the 200 OK
                p_monitorCompRef.start(
                                       f_Iot_Sip_receive(
                                                         { mw_SipResponse(mw_200OK(
                                                                                   p_sip.request.msgHeader.cSeq,
                                                                                   p_sip.request.msgHeader.callId,
                                                                                   p_sip.request.msgHeader.fromField,
                                                                                   (
                                                                                      mw_To_NameAddr_TelUrl({quotedString:=v_psapInfo.publicId}),
                                                                                      mw_To_AddrUnion_TelUrl(v_psapInfo.publicId),
                                                                                      p_sip.request.msgHeader.toField
                                                                                    )
                                                                                   )) 
                                                         },
                                                         { mw_SipResponse(mw_200OK_Base) },
                                                         { 0, omit },
                                                         "TP_MW_ECSCF_ECO_200OK_01",
                                                         false,
                                                         p_checkMessage
                                                         )
                                        );
                p_monitorCompRef.done;
                
            }
        } // End of function f_mtc_check_TP_MW_PCSCF_ECO_200OK_01
        
        /**
         * @desc Verify that the P-CSCF successfully processes a 200 (Ok) provisional response on initial INVITE (Terminating Leg).
         * Initial conditions with {
@@ -3188,6 +3222,34 @@ module AtsImsIot_TP_behavior_MW_PS {
            }
        } // End of function f_mtc_check_TP_MW_PCSCF_ECO_ACK_01
        
        function f_mtc_check_TP_MW_PCSCF_ECO_ACK_01(
                                                    in SipInterfaceMonitor p_monitorCompRef,
                                                    in boolean p_checkMessage := false,
                                                    in SipMessage p_sip
                                                    ) runs on ImsTestCoordinator {
            if (isvalue(p_monitorCompRef)) {
                // Check the ACK
                p_monitorCompRef.start(
                                       f_Iot_Sip_receive(
                                                         { mw_SipRequest(mw_TP_MW_ECSCF_ACK_01(
                                                                                               p_sip.request.msgHeader.callId,
                                                                                               p_sip.request.msgHeader.cSeq,
                                                                                               -, // FIXME To be set
                                                                                               p_sip.request.msgHeader.fromField,
                                                                                               p_sip.request.msgHeader.toField
                                                                                               )) 
                                                         },
                                                         { mw_SipRequest(mw_ACK_Request_Base) },
                                                         { 0, omit },
                                                         "TP_MW_ECSCF_ECO_ACK_01 - Request",
                                                         false,
                                                         p_checkMessage
                                                         )
                                        );
                p_monitorCompRef.done;
            }
        } // End of function f_mtc_check_TP_MW_PCSCF_ECO_ACK_01
        
        /**
         * @desc Verify that the P-CSCF successfully processes a ACK provisional response on initial INVITE (Terminating Leg).
         * Initial conditions with {