Commit 9f5c4b01 authored by pintar's avatar pintar
Browse files

new templates

mdw_TP_IMS_5067_01_mw
mdw_TP_IMS_5055_01_mw
mdw_TP_IMS_5055_02_mw
mdw_TP_IMS_5108_01_mw
mdw_TP_IMS_5301_01_mw
parent aecbd759
Loading
Loading
Loading
Loading
+126 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ module AtsImsIot_Templates {
    		routeBody := {mw_routeBody(p_pcscfEutAUri), *}       		
      	},
		pPreferredID := omit,
		pAssertedID := mw_PAssertedID(mw_PAssertedIDValue(p_pcscfEutAUri)),
		pAssertedID := mw_PAssertedID(mw_PAssertedIDValue(p_pcscfEutAUri)),//TODO containing an address of UE_A!
        pChargingVector :=  mw_PChargingVector({
            {id := "icid-value", paramValue := *}, 
            *
@@ -292,6 +292,52 @@ module AtsImsIot_Templates {
      }
    }
    
	/**
	  * 
	  * @desc 180 Ringing Response checking TP_IMS_5055_01 on MW
	  */
	template Response mdw_TP_IMS_5055_01_mw(template SipUrl p_pcscfEutAUri) 
	 modifies mw_180Ringing_Base := {
	  msgHeader := {
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBody(p_pcscfEutAUri), *}       		
		},
		pPreferredID := omit,
		pAssertedID := mw_PAssertedID(mw_PAssertedIDValue(p_pcscfEutAUri))//TODO containing public identitiy sent in P-Called_Party-ID header in the initial request
	  }
	}
    
	/**
	  * 
	  * @desc 200 OK Response checking TP_IMS_5055_02 on MW
	  */
	template Response mdw_TP_IMS_5055_02_mw(template SipUrl p_pcscfEutAUri) 
	 modifies mw_200OK_Base := {
	  msgHeader := {
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBody(p_pcscfEutAUri), *}       		
		},
		pPreferredID := omit,
		pAssertedID := mw_PAssertedID(mw_PAssertedIDValue(p_pcscfEutAUri))//TODO containing public identitiy sent in P-Called_Party-ID header in the initial request
	  }
	}

	/**
	  * 
	  * @desc INVITE Request checking TP_IMS_5067_01 on MW
	  */
	template INVITE_Request mdw_TP_IMS_5067_01_mw 
	 modifies mw_INVITE_Request_Base := {
    	msgHeader := {
			pChargingVector :=  mw_PChargingVector({
				{id := "access-network-charging-info", paramValue := *}, 
				*
			})
    	}
	}
    
    /**
    * 
    * @desc SUBSCRIBE checking TP_IMS_5096_01.
@@ -426,6 +472,55 @@ module AtsImsIot_Templates {
	  }
	}
    
	/**
	  * 
	  * @desc INVITE Request checking TP_IMS_5108_01 on MW
	  */
	template INVITE_Request mdw_TP_IMS_5108_01_mw(
		template SipUrl p_SCSCF_Uri,
		template GenericParam p_param
	) modifies mw_INVITE_Request_Base := {
	 msgHeader := {
		route := omit, // TODO TP is not clear please double check
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {{
				nameAddr := {
					displayName := *,
					addrSpec := p_SCSCF_Uri	
				},
				rrParam := *
			}}
		},
		pChargingVector := {
			fieldName := P_CHARGING_VECTOR_E,
			chargeParams := {
				p_param,
				*
			}
		}	
	 }
	}
	
	/**
	  * 
	  * @desc INVITE Request checking TP_IMS_5108_01_f on MW
	  * 		ifpresent ioi params than fail
	  */
	template INVITE_Request mdw_TP_IMS_5108_01_f_mw
	 modifies mw_INVITE_Request_Base := {
	  msgHeader := {
		pChargingVector := {
			fieldName := P_CHARGING_VECTOR_E,
			chargeParams := {
				{id := "orig-ioi", paramValue := ?},
				{id := "term-ioi", paramValue := ?},
				*
			}
		}	
	  }
	}
    
	/**
	  * 
	  * @desc 180 Ringing Response checking TP_IMS_5115_01 on MW
@@ -522,6 +617,28 @@ module AtsImsIot_Templates {
	  }
	}
    
	/**
	  * 
	  * @desc BYE Request checking TP_IMS_5301_01 on MW
	  */
	template BYE_Request mdw_TP_IMS_5301_01_mw(template CallId p_callId, template SipUrl p_SCSCF_SIP_URI)
	 modifies mw_BYE_Request_Base := {
	  msgHeader := {
		route := {
			fieldName := ROUTE_E,
			routeBody := {
				*, 
				complement(mw_routeBody(p_SCSCF_SIP_URI)),
				*
			}
		},
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBody(p_SCSCF_SIP_URI), *}       		
		}
	  }
	}

   /**
     * 
     * @desc INVITE Request checking TP_IMS_5310_01 on MW
@@ -821,6 +938,14 @@ module AtsImsIot_Templates {
		payload	:= omit
	}

  template Response mw_100Trying_Base  modifies m_Response_Dummy :=
		{
		statusLine := c_statusLine100,
		msgHeader := ?,
		messageBody := omit,
		payload	:= omit
		}

  template Response mw_180Ringing_Base  modifies m_Response_Dummy :=
		{
		statusLine := c_statusLine180,