Dear Erlang Community,
I’m a beginner in Erlang, and i have a question on diameter stack behavior.
I ‘m working on a sw acting as diameter peer server with a S6A app.
I have noticed that when an diameter request is received with an error (for example an additional AVP not supported by dict), even if the packet provided in return value of the handle_request call back contains a valid answer with an AVP result-code=Success and header with errors=[] and is_error=false, the diameter stack return to client peer a diameter packet with an error 5001 (unsupported_avp) which is corresponding to the initial error found on request decoding (and not the answer sent in {reply, Reply}.
If the initial diameter request is valid verus dict, then the answer provided by callback is sent back to client peer as expected.
I would like to confirm that it is due to a bug from my sw (most probably ☹ )
So I have some questions :
Thx a lot by advance for your support.
BR
René Veyland
Provenance : Courrier pour Windows 10
Dear Erlang Community,
I’m a beginner in Erlang, and i have a question on diameter stack behavior.
I ‘m working on a sw acting as diameter peer server with a S6A app.
I have noticed that when an diameter request is received with an error (for example an additional AVP not supported by dict), even if the packet provided in return value of the handle_request call back contains a valid answer with an AVP result-code=Success and header with errors=[] and is_error=false, the diameter stack return to client peer a diameter packet with an error 5001 (unsupported_avp) which is corresponding to the initial error found on request decoding (and not the answer sent in {reply, Reply}.
If the initial diameter request is valid verus dict, then the answer provided by callback is sent back to client peer as expected.
I would like to confirm that it is due to a bug from my sw (most probably ☹ )
So I have some questions :
- Is it a normal of diameter stack behavior
- if yes how to avoid/bypass it ? (how to send a valid answer even if request is seen in error)
- More globally: What is the simplest way to debug diameter stack in order to verify that data sent back by callback handler are « as expected » ?
Hi Chandru
Thx for answer. I will crosscheck my sw again even if very similar. The issue is only visible if recevied diameter packet as an error raised.
For debuging, i will try your method too.
Br
René
De : Chandru
Envoyé le :jeudi 21 juin 2018 18:32
À : René Veyland Mobile
Cc : erlang-q...@erlang.org
Objet :Re: [erlang-questions] [OTP 19.3] [Diameter 1.12.2] Handle_requestwith error: reply not taken into account