Skip to content

Commit

Permalink
Correct UDA error code on lookup fail
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkneipp committed Nov 16, 2023
1 parent b4122c9 commit a6f8dce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/diameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2239,7 +2239,7 @@ def Answer_16777217_306(self, packet_vars, avps):
self.logTool.log(service='HSS', level='debug', message="Merged subscriber details: " + str(subscriber_details), redisClient=self.redisMessaging)
except Exception as e:
self.logTool.log(service='HSS', level='debug', message=f"No subscriber found for MSISDN {msisdn}", redisClient=self.redisMessaging)
result_code = 5005
result_code = 5001
#Experimental Result AVP
avp_experimental_result = ''
avp_experimental_result += self.generate_vendor_avp(266, 40, 10415, '') #AVP Vendor ID
Expand All @@ -2260,7 +2260,7 @@ def Answer_16777217_306(self, packet_vars, avps):
"imsi_prefix": str(username[0:6])},
metricHelp='Diameter Authentication related Counters',
metricExpiry=60)
result_code = 5005
result_code = 5001
#Experimental Result AVP
avp_experimental_result = ''
avp_experimental_result += self.generate_vendor_avp(266, 40, 10415, '') #AVP Vendor ID
Expand Down Expand Up @@ -3527,7 +3527,6 @@ def Request_4_272(self, sessionid, imsi, CC_Request_Type, input_octets, output_o
response = self.generate_diameter_packet("01", "c0", 272, 4, self.generate_id(4), self.generate_id(4), avp) #Generate Diameter packet
return response


#3GPP Sh - Profile Update Request
def Request_16777217_307(self, msisdn):
avp = ''
Expand Down

0 comments on commit a6f8dce

Please sign in to comment.