From 9157c93d3c084ef682d21e60cc7df91f5c5e9413 Mon Sep 17 00:00:00 2001 From: nickvsnetworking Date: Fri, 12 Jan 2024 17:05:21 +1100 Subject: [PATCH] Log if no serving APN set --- lib/diameter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/diameter.py b/lib/diameter.py index 3607f9c..582f1c7 100644 --- a/lib/diameter.py +++ b/lib/diameter.py @@ -3061,6 +3061,8 @@ def Answer_16777236_275(self, packet_vars, avps): servingPgwRealm = servingApn.get('serving_pgw_realm', '') servingPgwPeer = servingApn.get('serving_pgw_peer', '').split(';')[0] pcrfSessionId = servingApn.get('pcrf_session_id', None) + else: + self.logTool.log(service='HSS', level='debug', message=f"[diameter.py] [Answer_16777236_265] [STA] No servingApn defined for IMS Subscriber", redisClient=self.redisMessaging) self.database.Update_Proxy_CSCF(imsi=imsi, proxy_cscf=pcscf, pcscf_realm=pcscf_realm, pcscf_peer=pcscf_peer, pcscf_active_session=None) except Exception as e: pass