-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Open5GS now sends Subscription-ID(443) -> Subscription-ID-Type(450) END_USER_IMSI and Subscription-ID(443) -> Subscription-ID-Type(450) END_USER_E164 in the Gx CCR
this is causing PyHSS return a CCA with DIAMETER_USER_UNKNOW (5030)
in diameter.py Answer_16777238_272 the function is trying to process the MSISDN as an IMSI and i think that's the cause of the 5030
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:15] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] Found IMSI 311435000070570
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:15] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] Evaluating UniqueSubscriptionIdentifier AVP {'avp_code': 450, 'avp_flags': '40', 'avp_length': 12, 'vendor_id': '', 'misc_data': '00000000'} to find IMSI
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:15] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] Evaluating UniqueSubscriptionIdentifier AVP {'avp_code': 444, 'avp_flags': '40', 'avp_length': 18, 'vendor_id': '', 'misc_data': '33333432303132383332'} to find IMSI
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:15] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] Found IMSI 3342012832
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:15] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] SubscriptionID: [[{'avp_code': 450, 'avp_flags': '40', 'avp_length': 12, 'vendor_id': '', 'misc_data': '00000001'}, {'avp_code': 444, 'avp_flags': '40', 'avp_length': 23, 'vendor_id': '', 'misc_data': '333131343335303030303730353730'}], [{'avp_code': 450, 'avp_flags': '40', 'avp_length': 12, 'vendor_id': '', 'misc_data': '00000000'}, {'avp_code': 444, 'avp_flags': '40', 'avp_length': 18, 'vendor_id': '', 'misc_data': '33333432303132383332'}]]
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:15] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] Getting Get_Charging_Rules for IMSI 3342012832 using APN internet from database
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:16] [DEBUG] Called Get_Charging_Rules() for IMSI 3342012832 and APN internet
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:16] [DEBUG] Get_Subscriber for imsi 3342012832
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:16] [DEBUG] No row was found when one was required
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:16] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] Subscriber 3342012832 unknown in HSS for CCR - Check Charging Rule assigned to APN is set and exists
Mar 26 17:34:16 pyhss python3[368839]: [03/26/2025 17:34:16] [DEBUG] [diameter.py] [Answer_16777238_272] [CCA] Request type for CCA is 1 - Initial
can we add support for Subscription-ID(443) -> Subscription-ID-Type(450) END_USER_E164 or simply ignore the Subscription-ID(443) -> Subscription-ID-Type(450) END_USER_E164 AVP