diff options
author | Anders Svensson <[email protected]> | 2012-08-23 01:20:00 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-08-23 18:59:29 +0200 |
commit | de0cbe83cd96c17d75baf353e84c883b78980f98 (patch) | |
tree | 0a873a74b95f3bf439e321a4e0e76acfb7276d04 /lib | |
parent | 60fb617d030a24afb86fe9779479509f11179578 (diff) | |
download | otp-de0cbe83cd96c17d75baf353e84c883b78980f98.tar.gz otp-de0cbe83cd96c17d75baf353e84c883b78980f98.tar.bz2 otp-de0cbe83cd96c17d75baf353e84c883b78980f98.zip |
Allow an answer to opt out of setting Result-Code/Failed-AVP
By returning it in a length 1 list from a handle_request callback.
This is the aforementioned roll your own.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diameter/src/base/diameter_service.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/diameter/src/base/diameter_service.erl b/lib/diameter/src/base/diameter_service.erl index 167b2c1f79..ced6fe605c 100644 --- a/lib/diameter/src/base/diameter_service.erl +++ b/lib/diameter/src/base/diameter_service.erl @@ -1937,6 +1937,12 @@ is_loop(Code, Vid, OH, Avps) -> %% %% Send a locally originating reply. +%% Skip the setting of Result-Code and Failed-AVP's below. +reply([Msg], Dict, TPid, Pkt) + when is_list(Msg); + is_tuple(Msg) -> + reply(Msg, Dict, TPid, Pkt#diameter_packet{errors = []}); + %% No errors or a diameter_header/avp list. reply(Msg, Dict, TPid, #diameter_packet{errors = Es, transport_data = TD} |