To work with the diameter protocol, I use the library https://github.com/fiorix/go-diameter.
When I try to send CER (Capabilities-Exchange-Request) to the diameter-server, I get a failed Result-Code AVP: 5012
.
I think these are unspecified reasons. I don't have access to the server logs.
How to solve this error on the client side ?
Where do I start with the diagnostics?
Asked
Active
Viewed 2,145 times
1

Aleksey Budaev
- 115
- 6
1 Answers
1
Im not familiar with this library, however you can find all result-codes here: result-codes
5012 means:
DIAMETER_UNABLE_TO_COMPLY 5012 This error is returned when a request is rejected for unspecified reasons.
There are 2 options to your situation:
- There is some problem with your CER, so the Diameter node you are trying to reach is sending you back CEA with result-code 5012.
- The open source library you are trying to use do not let you send the CER and gives you a message with 5012 as a response to your CER.
To solve the issue:
- If your CER went to the network take a capture using wireshark/tcpdump and make sure you received CEA. You can look at your CER and check what is wrong with it (you can also send it here). Maybe your CER is not according to RFC 3588/6733?
- If the library do not let you send the CER look at the library log and see if you can spot any error. If you do see an error you can consult the guy who wrote the library.

Oded Itzhaky
- 445
- 5
- 16
-
I get a CEA with `DIAMETER_UNABLE_TO_COMPLY`. Please take a look at the dump. [diamlist.cap google drive](https://drive.google.com/file/d/1RoSXpqUsNfIDLAA9oPut2a3yHKNkh2qR/view?usp=sharing) – Aleksey Budaev Jan 13 '22 at 05:39
-
CEA: `Error-Message: Unable to receive CER in OPEN state.` – Aleksey Budaev Jan 13 '22 at 06:32
-
1in the pcap I see you first have successful CER/CEA (packets 4 and 6) and second CER/CEA with failure (packet 11 and 16) . Seems that the server that sent the CEA is not interested in another CER. It says you are already connected to it following the first CER. Try to send a message to the server after the first CER, it will most likely be successful. – Oded Itzhaky Jan 13 '22 at 11:40