From c9ca7f7e836dc6a4fe91fd4d7103af6d4db76f0e Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Mon, 11 Feb 2013 00:04:37 +0100 Subject: Add application_opt() request_errors Configuring the value 'callback' all errors detected in incoming requests to result in a handle_request callback. The default value 'answer_3xxx' is the previous behaviour in which diameter answers protocol errors without a callback. --- lib/diameter/doc/src/diameter.xml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'lib/diameter/doc/src/diameter.xml') diff --git a/lib/diameter/doc/src/diameter.xml b/lib/diameter/doc/src/diameter.xml index ba9225da8b..accf21cf98 100644 --- a/lib/diameter/doc/src/diameter.xml +++ b/lib/diameter/doc/src/diameter.xml @@ -16,7 +16,7 @@
-20112012 +20112013 Ericsson AB. All Rights Reserved. @@ -206,11 +206,13 @@ probably avoid it.

Determines the manner in which incoming answer messages containing -decode errors are handled. +decode errors are handled.

+ +

If callback then errors result in a &app_handle_answer; callback in the same fashion as for &app_handle_request;, with errors communicated in the errors field of the -#diameter_packet{} record passed to the callback. +#diameter_packet{} passed to the callback. If report then an answer containing errors is discarded without a callback and a warning report is written to the log. If discard then an answer containing errors is silently @@ -224,6 +226,24 @@ question is as if a callback had taken place and returned Defaults to report if unspecified.

+{request_errors, answer_3xxx|callback} + +

+Determines the manner in which incoming requests are handled when an +error other than 3007, DIAMETER_APPLICATION_UNSUPPORTED. (With which no +application callback module can be associated.)

+ +

+If answer_3xxx then the request is answered by diameter +without a &app_handle_request; callback taking place if a 3xxx series +error (protocol errors) is detected. +If callback then even 3xxx errors result in an application +&app_handle_request; callback.

+ +

+Defaults to answer_3xxx if unspecified.

+
+ @@ -534,7 +554,7 @@ Pkt = #diameter_packet{} The RFC 3539 watchdog state machine has transitioned into (up) or out of (down) the OKAY state. -If a #diameter_packet{} record is present in an up event +If a #diameter_packet{} is present in an up event then there has been a capabilties exchange on a newly established transport connection and the record contains the received CER or CEA. Otherwise a connection has reestablished without the loss or -- cgit v1.2.3