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 15, 2023
1 parent d9eea3f commit 453f216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/diameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3286,6 +3286,7 @@ def Request_16777217_306(self, **kwargs):

if "msisdn" in kwargs:
msisdn = kwargs['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 453f216

Please sign in to comment.