Commit acc70bcd authored by pintar's avatar pintar
Browse files

templates are done for TP_IMS_CALL_0024 and TP_IMS_CALL_0025

mdw_TP_IMS_5135_01_mw
mdw_TP_IMS_5137_01_mw
mdw_TP_IMS_5137_02_mw
mdw_TP_IMS_5137_03_mw
mdw_TP_IMS_5404_01_gm
mdw_TP_IMS_5404_01_mw
mdw_TP_IMS_5408_01_mw
mdw_TP_IMS_5408_02_mw
mdw_TP_IMS_5408_03_mw
mw_routeBodyTH
parent 5cb12552
Loading
Loading
Loading
Loading
+223 −2
Original line number Original line Diff line number Diff line
@@ -827,6 +827,102 @@ module AtsImsIot_Templates {
	  }
	  }
	}
	}


     /**
       * 
       * @desc INVITE Request checking TP_IMS_5135_01
       */
     template INVITE_Request mdw_TP_IMS_5135_01_mw (template SipUrl p_ibcfEutAUri)
      modifies mw_INVITE_Request_Base := {
       msgHeader := {
          recordRoute := {
           fieldName := RECORD_ROUTE_E,
           routeBody := {mw_routeBody(p_ibcfEutAUri), *}       		
          }
       }
     }

	/**
	  * 
	  * @desc INVITE Request checking TP_IMS_5137_01
	  */
	template INVITE_Request mdw_TP_IMS_5137_01_mw (template SipUrl p_ibcfEutAUri)
	 modifies mw_INVITE_Request_Base := {
	  msgHeader := {
		route := {
			fieldName := ROUTE_E,
			routeBody := {
				(mw_routeBodyTH(p_ibcfEutAUri)),
				*
			}
		},
		via := {
			fieldName := VIA_E,
			viaBody := {{
				sentProtocol := *,
				sentBy := *,
				viaParams :={{
    				id:="tokenized-by",
    				paramValue := *
    			}}
			}}
		},
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBodyTH(*), *}       		
		}
	 }
	}
    
	/**
	  * 
	  * @desc 180 Ringing Response checking TP_IMS_5137_02 on MW
	  */
	template Response mdw_TP_IMS_5137_02_mw 
	 modifies mw_180Ringing_Base := {
	  msgHeader := {
		via := {
			fieldName := VIA_E,
			viaBody := {{
				sentProtocol := *,
				sentBy := *,
				viaParams :={{
					id:="tokenized-by",
					paramValue := *
				}}
			}}
		},
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBodyTH(*), *}       		
		}
	  }
	}
    
	/**
	  * 
	  * @desc 200 OK Response checking TP_IMS_5137_03 on MW
	  */
	template Response mdw_TP_IMS_5137_03_mw 
	 modifies mw_200OK_Base := {
	  msgHeader := {
		via := {
			fieldName := VIA_E,
			viaBody := {{
				sentProtocol := *,
				sentBy := *,
				viaParams :={{
					id:="tokenized-by",
					paramValue := *
				}}
			}}
		},
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBodyTH(*), *}       		
		}
	  }
	}
	
	/**
	/**
	  * 
	  * 
	  * @desc BYE Request checking TP_IMS_5139_01 on MW
	  * @desc BYE Request checking TP_IMS_5139_01 on MW
@@ -915,8 +1011,6 @@ module AtsImsIot_Templates {
	 }
	 }
	}
	}


	

   /**
   /**
     * 
     * 
     * @desc INVITE Request checking TP_IMS_5310_01 on GM
     * @desc INVITE Request checking TP_IMS_5310_01 on GM
@@ -930,6 +1024,7 @@ module AtsImsIot_Templates {
          })
          })
      }
      }
    }
    }
    
   /**
   /**
     * 
     * 
     * @desc INVITE Request checking TP_IMS_5310_01 on AS
     * @desc INVITE Request checking TP_IMS_5310_01 on AS
@@ -999,6 +1094,120 @@ module AtsImsIot_Templates {
	  }
	  }
	}
	}


	/**
	  * 
	  * @desc INVITE Request checking TP_IMS_5404_01 on GM
	  */
	template INVITE_Request mdw_TP_IMS_5404_01_gm 
	 modifies mw_INVITE_Request_Base := {
	  msgHeader := {
		pChargingFunctionAddresses := ?
	 }
	}

	/**
	  * 
	  * @desc INVITE Request checking TP_IMS_5404_01 on MW
	  */
	template INVITE_Request mdw_TP_IMS_5404_01_mw 
	 modifies mw_INVITE_Request_Base := {
	  msgHeader := {
		pChargingFunctionAddresses := omit
	 }
	}
    
	/**
	  * 
	  * @desc ACK Request checking TP_IMS_5408_01 on MW
	  */
	template ACK_Request mdw_TP_IMS_5408_01_mw(template CallId p_callId, template SipUrl p_IBCF_SIP_URI)
	 modifies mw_ACK_Request_Base := {
	  msgHeader := {
		route := {
			fieldName := ROUTE_E,
			routeBody := {
				(mw_routeBodyTH(p_IBCF_SIP_URI)),
				*
			}
		},
		via := {
			fieldName := VIA_E,
			viaBody := {{
				sentProtocol := *,
				sentBy := *,
				viaParams :={{
					id:="tokenized-by",
					paramValue := *
				}}
			}}
		}
	  }
	}
    
	/**
			* 
			* @desc BYE Request checking TP_IMS_5408_02 on MW
			*/
	template CANCEL_Request mdw_TP_IMS_5408_02_mw(template CallId p_callId, template SipUrl p_IBCF_SIP_URI)
	 modifies mw_CANCEL_Request_Base := {
	  msgHeader := {
		route := {
			fieldName := ROUTE_E,
			routeBody := {
				(mw_routeBodyTH(p_IBCF_SIP_URI)),
				*
			}
		},
		via := {
			fieldName := VIA_E,
			viaBody := {{
				sentProtocol := *,
				sentBy := *,
				viaParams :={{
					id:="tokenized-by",
					paramValue := *
				}}
			}}
		},
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBodyTH(*), *}       		
		}
	  }
	}
    
	/**
	  * 
	  * @desc BYE Request checking TP_IMS_5408_03 on MW
	  */
	template BYE_Request mdw_TP_IMS_5408_03_mw(template CallId p_callId, template SipUrl p_IBCF_SIP_URI)
	 modifies mw_BYE_Request_Base := {
	  msgHeader := {
		route := {
			fieldName := ROUTE_E,
			routeBody := {
				(mw_routeBodyTH(p_IBCF_SIP_URI)),
				*
			}
		},
		via := {
			fieldName := VIA_E,
			viaBody := {{
				sentProtocol := *,
				sentBy := *,
				viaParams :={{
					id:="tokenized-by",
					paramValue := *
				}}
			}}
		},
		recordRoute := {
			fieldName := RECORD_ROUTE_E,
			routeBody := {mw_routeBodyTH(*), *}       		
		}
	  }
	}

   /**
   /**
     * 
     * 
     * @desc INVITE Request checking TP_IMS_5097_09
     * @desc INVITE Request checking TP_IMS_5097_09
@@ -1605,6 +1814,18 @@ module AtsImsIot_Templates {
		 otherResponse := {authScheme := ?, authParams := { {"integrity-protected", "no"},*} // TODO
		 otherResponse := {authScheme := ?, authParams := { {"integrity-protected", "no"},*} // TODO
		 }}
		 }}
      
      
		template RouteBody mw_routeBodyTH (template SipUrl p_sipurl):= {
    		nameAddr :=
    		{
    			displayName := *,
    			addrSpec := p_sipurl
    		},
    		rrParam := {{
				id:="tokenized-by",
				paramValue := *
			}}
		}
		 
		template NameAddr mw_NameAddr(template SipUrl p_URI) := {
		template NameAddr mw_NameAddr(template SipUrl p_URI) := {
			displayName := *,
			displayName := *,
			addrSpec := p_URI
			addrSpec := p_URI