Skip to content

Commit

Permalink
Strip + from msisdn in UDR
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkneipp committed Nov 16, 2023
1 parent 453f216 commit dffb8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3286,7 +3286,7 @@ def Request_16777217_306(self, **kwargs):

if "msisdn" in kwargs:
msisdn = kwargs['msisdn']
msisdn.replace('+', '')
msisdn = msisdn.replace('+', '')
msisdn_avp = self.generate_vendor_avp(701, 'c0', 10415, self.TBCD_encode(str(msisdn))) #MSISDN
avp += self.generate_vendor_avp(700, "c0", 10415, msisdn_avp) #User-Identity
avp += self.generate_vendor_avp(701, 'c0', 10415, self.TBCD_encode(str(msisdn)))
Expand Down

0 comments on commit dffb8d5

Please sign in to comment.