Commit c1e1378b authored by barakatr's avatar barakatr
Browse files

Add EmergencySessionEstablishmentRoaming

parent 0fb59bad
Loading
Loading
Loading
Loading
+426

File changed.

Preview size limit exceeded, changes collapsed.

+64
Changes for ttcn/AtsImsIot/AtsImsIot_TP_behavior_GM.ttcn: 64 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1864,6 +1864,70 @@ module AtsImsIot_TP_behavior_GM {
			 }
		} // End of function f_mtc_check_TP_GM_PCSCF_INVITE_04
		
		/**
		 * @desc Verify that the P-CSCF successfully receives an initial emergency INVITE from a registered but not emergency registered UE.
		 * Reference 
         *   "ETSI TS 124 229 [1], Clauses 5.1.6.8.4"
         * Config Id CF_VoLTE_RMI_ES
         * PICS Selection NONE
         * Initial conditions with {
         *    the UE_A entity isAttachedTo the EPC_B and
         *    the UE_A entity isRegisteredTo the IMS_A and
         *    the UE_A entity not isEmergencyRegisteredTo the IMS_A
         *   // This implies that the UE is currently attached and registered 
         *      to its home operator's network and the IP-CAN does not define emergency bearers
         *      see 5.1.6.1 3rd paragraph //
         * }
         * Expected behaviour
         *   ensure that {
         *       when {
         *           the UE_A entity isRequestedToEstablishEmergencyCall
         *       }
         *       then {
         *           the IMS_P_CSCF_A entity receives an INVITE containing
         *               From indicating value PX_UE_A_SIP_URI,
         *               To indicating value PX_SIP_EMERGENCY_SERVICE_URN,
         *               CallId indicating value PX_UE_A_CALLID,
         *               Via indicating value PX_UE_A_VIA,
         *               Route indicating value PX_UE_A_SERVICE_ROUTE,
         *               PPreferredIdentity, // one or two instances
         *               MessageBody;
         *           from the UE_A entity
         *       }
         *   }
		 */
		function f_mtc_check_TP_GM_PCSCF_ECO_INVITE_05( // FIXME RMI To be reviewed
													   in SipInterfaceMonitor p_monitorCompRef,
													   in boolean p_checkMessage := false,
													   out SipMessage p_sip
													   ) runs on ImsTestCoordinator {
			 if (isvalue(p_monitorCompRef)){
				var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A_EMERGENCY);
				var ImsUserInfo v_psap := f_getSipUserId(PX_PSAP);
                
				// Check the INVITE
				p_monitorCompRef.start(
									   f_Iot_Sip_receive(
														{ 
															mw_SipRequest(mw_TP_GM_PCSCF_ECO_INVITE_05(
																									   -, // FIXME Set expected value
																									   mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
																									   mw_To_AddrUnion_SipUrl(omit, v_psap.publicId, v_psap.domain)
																									   ))
														},
														{ mw_SipRequest(mw_INVITE_Request_Base) },
														{0, omit},
														"TP_GM_PCSCF_ECO_INVITE_05 - Request",
														true,
														p_checkMessage
														)
									   );
				p_monitorCompRef.done;
				// Retrieve messge
				f_getSipMsgFromMonitor(p_monitorCompRef, p_sip);
			 }
		} // End of function f_mtc_check_TP_GM_PCSCF_INVITE_05
        
		function f_mtc_check_TP_GM_PCSCF_INVITE_04( // FIXME RMI To be reviewed
												   in SipInterfaceMonitor p_monitorCompRef,
												   in boolean p_checkMessage := false,
+17
Changes for ttcn/AtsImsIot/AtsImsIot_Templates_GM.ttcn: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -484,6 +484,23 @@ module AtsImsIot_Templates_GM {
            }
        } // End of template mw_TP_GM_PCSCF_ECO_INVITE_04
        
		template (present) INVITE_Request mw_TP_GM_PCSCF_ECO_INVITE_05( // TODO To be enforced
																	   template (present) SipUrl p_invite_uri := ?,
																	   template (present) From p_from := ?,
																	   template (present) To p_to := ?,
																	   template (present) Contact p_contact := ?,
																	   template (present) MessageBody p_messageBody := ?,
																	   template (present) PPreferredID p_pPreferredID := ?,
																	   template (present) Accept p_accept := ?,
																	   template (present) RecvInfo p_recvInfo := ?
																	   ) modifies mw_TP_GM_PCSCF_ECO_INVITE_01 := {
			msgHeader := {
				accept       := p_accept,
				recvInfo     := p_recvInfo,
				pPreferredID := p_pPreferredID
			}
		} // End of template mw_TP_GM_PCSCF_ECO_INVITE_05
        
        template (present) INVITE_Request mw_TP_GM_PCSCF_RE_INVITE_01( // TODO To be enforced
                                                                      template (present) SipUrl p_invite_uri := ?,
                                                                      template (present) From p_from := ?,
+1

File changed.

Preview size limit exceeded, changes collapsed.

+6
Changes for ttcn/LibIot/LibIot_PIXITS.ttcn: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -269,6 +269,12 @@ module LibIot_PIXITS {
	 */
	modulepar	integer	PX_EUT_B := 2;
	
	/**
	 * 
	 * @desc Selects product based on	index	in PX_PRODCUTS vendor	list for EUT_B
	 */
	modulepar	integer	PX_EUT_B_EMERGENCY := 3;
	
    /**
     * 
     * @desc Selects product based on	index	in PX_PRODCUTS vendor	list for EUT_C