sean-cc / jain-slee

Automatically exported from code.google.com/p/jain-slee
0 stars 0 forks source link

Wrong encoding of msisdn in UserIdentityAvp (expected TBCD) #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Diameter Sh Client RA v 2.8.0-SNAPSHOT 

According to 3GPP TS 29.329 point 6.3.2:
"The MSISDN AVP is of type OctetString. This AVP contains an MSISDN, in 
international number format as described
in ITU-T Rec E.164 [8], encoded as a TBCD-string"

UserIdentityAvpImpl.msisdn should  be encoded as TBCD String (currently is 
encoded using setAvpAsOctetString)

in net.java.slee.resource.diameter.base.events.avp.AvpUtilities.addAvp() there 
is already implemented exception for Address (issue #2758), it could be a good 
place to add other exception for TBCDString instance.

Original issue reported on code.google.com by biedr...@gmail.com on 9 May 2014 at 7:52