diff --git a/CHANGELOG.md b/CHANGELOG.md index 62f5fed..7675912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.0.1] - 2023-01-23 + +### Removed + - Assert on missing "IMS Services" for AAA/Audio Request + ### Changed - Reduced verbosity of failing subscriber lookups to debug diff --git a/lib/diameter.py b/lib/diameter.py index 00fb694..b8af15b 100755 --- a/lib/diameter.py +++ b/lib/diameter.py @@ -2903,8 +2903,8 @@ def Answer_16777236_265(self, packet_vars, avps): try: afApplicationIdentifier = self.get_avp_data(avps, 504)[0] mediaType = self.get_avp_data(avps, 520)[0] - assert(bytes.fromhex(afApplicationIdentifier).decode('ascii') == "IMS Services") - assert(int(mediaType, 16) == 0) + # In order to send a Gx RAR, we need to ensure that mediaType is AUDIO(0) or VIDEO(1) + assert(int(mediaType, 16) == 0 or int(mediaType, 16) == 1) # At this point, we know the AAR is indicating a call setup, so we'll get the serving pgw information, then send a # RAR to the PGW over Gx, asking it to setup the dedicated bearer.