diff options
author | Anders Svensson <[email protected]> | 2011-05-20 13:43:26 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-05-20 13:43:26 +0200 |
commit | 916e80959746c467ff858538e35f3c0105dbbced (patch) | |
tree | 87e01c252c58b38bc1633de24ec790004752587f /lib/diameter/examples/server_cb.erl | |
parent | d958680092ef38ee16f5f67757412609aa599505 (diff) | |
parent | f2bff722fdb93cf021d9b80f383046cf36435ff3 (diff) | |
download | otp-916e80959746c467ff858538e35f3c0105dbbced.tar.gz otp-916e80959746c467ff858538e35f3c0105dbbced.tar.bz2 otp-916e80959746c467ff858538e35f3c0105dbbced.zip |
Merge branch 'anders/diameter/20110519/doc/OTP-9323' into dev
* anders/diameter/20110519/doc/OTP-9323:
Remove undocumented interface functions plus comment fix.
Various documentation fixes and improvements.
Minor diameter_service fix when sending a diameter_header/avp list
Minor make depend fixes.
Trivial depend.sed simplification.
Fix broken doc links.
Fix broken make dependencies by generating them.
Diffstat (limited to 'lib/diameter/examples/server_cb.erl')
-rw-r--r-- | lib/diameter/examples/server_cb.erl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/diameter/examples/server_cb.erl b/lib/diameter/examples/server_cb.erl index b8705aedfc..43b8e24b5c 100644 --- a/lib/diameter/examples/server_cb.erl +++ b/lib/diameter/examples/server_cb.erl @@ -74,11 +74,8 @@ handle_request(#diameter_packet{msg = Req, errors = []}, _SvcName, {_, Caps}) {reply, answer(RT, Id, OH, OR)}; %% ... or one that wasn't. 3xxx errors are answered by diameter itself -%% but these are non-3xxx errors for which we must contruct a reply. -%% Returning a packet with the non-[] errors field will cause -%% diameter to add the appropriate result code and Failed-AVPs avps. -%% We just have to return the relevant answer record with any required -%% avps. +%% but these are 5xxx errors for which we must contruct a reply. +%% diameter will set Result-Code and Failed-AVP's. handle_request(#diameter_packet{msg = Req} = Pkt, _SvcName, {_, Caps}) when is_record(Req, diameter_base_RAR) -> #diameter_caps{origin_host = {OH,_}, @@ -91,7 +88,7 @@ handle_request(#diameter_packet{msg = Req} = Pkt, _SvcName, {_, Caps}) 'Origin-Realm' = OR, 'Session-Id' = Id}, - {reply, Pkt#diameter_packet{msg = Ans}}; + {reply, Ans}; %% Should really reply to other base messages that we don't support %% but simply discard them instead. |