aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/app/diameter_callback.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-09-27 20:26:47 +0200
committerAnders Svensson <[email protected]>2011-09-27 20:26:47 +0200
commitd897eea38983f0adfa0e8a2dc483879bc1126f94 (patch)
tree6b17d52c4e9dc2d6215363302c346bd8c6512e6d /lib/diameter/src/app/diameter_callback.erl
parent571bc8c6135cb902e7cf9429f1bfad67284f8f23 (diff)
parent58fe7b5e48ad95f14b05aae43a3a32122695da4e (diff)
downloadotp-d897eea38983f0adfa0e8a2dc483879bc1126f94.tar.gz
otp-d897eea38983f0adfa0e8a2dc483879bc1126f94.tar.bz2
otp-d897eea38983f0adfa0e8a2dc483879bc1126f94.zip
Merge branch 'dev' into major
Conflicts: lib/diameter/src/app/Makefile
Diffstat (limited to 'lib/diameter/src/app/diameter_callback.erl')
-rw-r--r--lib/diameter/src/app/diameter_callback.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/diameter/src/app/diameter_callback.erl b/lib/diameter/src/app/diameter_callback.erl
index fcf9a8fc1e..6d5c8cdca1 100644
--- a/lib/diameter/src/app/diameter_callback.erl
+++ b/lib/diameter/src/app/diameter_callback.erl
@@ -60,28 +60,28 @@ pick_peer([Peer|_], _, _SvcName, _State) ->
%%% ----------------------------------------------------------
prepare_request(Pkt, _SvcName, _Peer) ->
- Pkt.
+ {send, Pkt}.
%%% ----------------------------------------------------------
%%% # prepare_retransmit/3
%%% ----------------------------------------------------------
prepare_retransmit(Pkt, _SvcName, _Peer) ->
- Pkt.
+ {send, Pkt}.
%%% ----------------------------------------------------------
%%% # handle_request/3
%%% ----------------------------------------------------------
handle_request(_Pkt, _SvcName, _Peer) ->
- discard.
+ {protocol_error, 3001}. %% DIAMETER_COMMAND_UNSUPPORTED
%%% ----------------------------------------------------------
%%% # handle_answer/4
%%% ----------------------------------------------------------
handle_answer(#diameter_packet{msg = Ans}, _Req, _SvcName, _Peer) ->
- {ok, Ans}.
+ Ans.
%%% ---------------------------------------------------------------------------
%%% # handle_error/4