aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_capx.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-10-12 18:39:36 +0200
committerAnders Svensson <[email protected]>2011-11-10 16:23:50 +0100
commit30db65a00da4b0105faa760856286b42f0cde3e8 (patch)
tree753372ef5b956c5a5252fdf9cdb7cbc0e9e8be22 /lib/diameter/src/base/diameter_capx.erl
parente20bc73324e9e2e4fc5efedfb905bfe4b5c6664a (diff)
downloadotp-30db65a00da4b0105faa760856286b42f0cde3e8.tar.gz
otp-30db65a00da4b0105faa760856286b42f0cde3e8.tar.bz2
otp-30db65a00da4b0105faa760856286b42f0cde3e8.zip
Add capabilities_cb transport option
Value is a function that's applied to the transport reference and capabilities record after capabilities exchange. If a callback returns anything but 'ok' then the connection is closed. In the case of an incoming CER, the callback can return a result code with which to answer. Multiple callbacks can be specified and are applied until either all return 'ok' or one doesn't. Also, include Origin-State-Id in answers where it was previously omitted.
Diffstat (limited to 'lib/diameter/src/base/diameter_capx.erl')
-rw-r--r--lib/diameter/src/base/diameter_capx.erl4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/diameter/src/base/diameter_capx.erl b/lib/diameter/src/base/diameter_capx.erl
index 138e76411e..293eb0c196 100644
--- a/lib/diameter/src/base/diameter_capx.erl
+++ b/lib/diameter/src/base/diameter_capx.erl
@@ -224,10 +224,6 @@ rCER(CER, #diameter_service{capabilities = LCaps} = Svc) ->
RCaps,
CEA#diameter_base_CEA{'Result-Code' = ?SUCCESS})}.
-%% TODO: 5.3 of RFC 3588 says we MUST return DIAMETER_NO_COMMON_APPLICATION
-%% in the CEA and SHOULD disconnect the transport. However, we have
-%% no way to guarantee the send before disconnecting.
-
build_CEA([], _, _, CEA) ->
CEA#diameter_base_CEA{'Result-Code' = ?NOAPP};