diff options
author | Anders Svensson <[email protected]> | 2013-06-02 15:02:55 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-06-02 15:02:55 +0200 |
commit | 107625c4fd3e3a50f9c5cc3716899ff595bcda99 (patch) | |
tree | eb01db6e9606cc3fc432dd60626216def1da599f /lib/diameter/doc/src/diameter_app.xml | |
parent | 28bb4559b2fada7028e253bb842b239ec8891345 (diff) | |
parent | 7417446d0e3c4e5e5a15f60b1879cabef1e26408 (diff) | |
download | otp-107625c4fd3e3a50f9c5cc3716899ff595bcda99.tar.gz otp-107625c4fd3e3a50f9c5cc3716899ff595bcda99.tar.bz2 otp-107625c4fd3e3a50f9c5cc3716899ff595bcda99.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/diameter/doc/src/diameter_app.xml')
-rw-r--r-- | lib/diameter/doc/src/diameter_app.xml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/diameter/doc/src/diameter_app.xml b/lib/diameter/doc/src/diameter_app.xml index 36a560b33c..90a36f8d53 100644 --- a/lib/diameter/doc/src/diameter_app.xml +++ b/lib/diameter/doc/src/diameter_app.xml @@ -565,7 +565,8 @@ Equivalent to</p> </pre> <p> where <c>Avps</c> sets the Origin-Host, Origin-Realm, the specified -Result-Code and (if the request contained one) Session-Id AVP's.</p> +Result-Code and (if the request contained one) Session-Id AVP's, and +possibly Failed-AVP as described below.</p> <p> Returning a value other than 3xxx or 5xxx will cause the request @@ -573,6 +574,14 @@ process in question to fail, as will returning a 5xxx value if the peer connection in question has been configured with the RFC 3588 common dictionary <c>diameter_gen_base_rfc3588</c>. (Since RFC 3588 only allows 3xxx values in an answer-message.)</p> + +<p> +When returning 5xxx, Failed-AVP will be populated with the AVP of the +first matching Result-Code/AVP pair in the <c>errors</c> field of the +argument &packet;, if found. +If this is not appropriate then an answer-message should be +constructed explicitly and returned in a <c>reply</c> tuple +instead.</p> </item> <tag><c>{relay, Opts}</c></tag> @@ -592,8 +601,7 @@ header of the relayed request.</p> The returned <c>Opts</c> should not specify <c>detach</c>. A subsequent &handle_answer; callback for the relayed request must return its first -argument, the <c>#diameter_packet{}</c> record containing the answer -message. +argument, the &packet; containing the answer message. Note that the <c>extra</c> option can be specified to supply arguments that can distinguish the relay case from others if so desired. Any other return value (for example, from a |