Skip to content

Commit

Permalink
Additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkneipp committed Oct 23, 2024
1 parent 4615916 commit 615d3f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/diameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3036,10 +3036,12 @@ def Answer_16777236_265(self, packet_vars, avps):
#If we didn't find a serving APN for the IP, try the other local HSS'.
localGeoredEndpoints = self.config.get('geored', {}).get('local_endpoints', [])
for localGeoredEndpoint in localGeoredEndpoints:
self.logTool.log(service='HSS', level='debug', message=f"[diameter.py] [Answer_16777236_265] [AAA] Searching remote HSS for serving apn: {localGeoredEndpoint}", redisClient=self.redisMessaging)
response = requests.get(url=f"{localGeoredEndpoint}/pcrf/pcrf_serving_apn_ip/{ueIp}")
responseJson = response.json()
if not responseJson:
continue
self.logTool.log(service='HSS', level='debug', message=f"[diameter.py] [Answer_16777236_265] [AAA] Recieved response from remote HSS: {responseJson}", redisClient=self.redisMessaging)
remoteServingApn = responseJson
ipApnName = self.database.Get_APN(apn_id=int(remoteServingApn.get('apn', {})))
ipApnName = ipApnName.get('apn', None)
Expand Down

0 comments on commit 615d3f1

Please sign in to comment.