6.2. Diameter Answer Processing
6.2. Diameter Answer Processing
When a request is locally processed, the following procedures MUST be applied to create the associated answer, in addition to any additional procedures that MAY be discussed in the Diameter application defining the command:
-
The same Hop-by-Hop Identifier in the request is used in the answer.
-
The local host's identity is encoded in the Origin-Host AVP.
-
The Destination-Host and Destination-Realm AVPs MUST NOT be present in the answer message.
-
The Result-Code AVP is added with its value indicating success or failure.
-
If the Session-Id is present in the request, it MUST be included in the answer.
-
Any Proxy-Info AVPs in the request MUST be added to the answer message, in the same order they were present in the request.
-
The 'P' bit is set to the same value as the one in the request.
-
The same End-to-End identifier in the request is used in the answer.
Note that the error messages (see Section 7) are also subjected to the above processing rules.