Skip to content

Conversation

killdashnine
Copy link

When receiving AAR without Subscription-Id AVP there was a list index out of range issues:

[07/05/2025 14:05:57] [ERROR] [diameter.py] [Answer_16777236_265] [AAA] Error generating AAA: Traceback (most recent call last): File "/pyhss/lib/diameter.py", line 2891, in Answer_16777236_265 subscriptionId = bytes.fromhex(self.get_avp_data(avps, 444)[0]).decode('ascii') IndexError: list index out of range

When further investigating the code I discovered that the existence of the AVP was not checked, nor that the fallback mechanism to check the UE IP was properly implemented, and was not using the already extracted/decoded Framed-IP-Address AVP.

This PR will handle the case of the Subscription-Id AVP missing and also makes sure the UE IP address is actually being used to find the PCRF session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant