Status: New
Owner: ----
Labels: Component-Diameter Type-Enhancement Priority-Medium SubComponent-DIAMETER-Stack DIAMETER-1.4.0.FINAL Roadmap-Fix

New issue 3096 by [email protected]: Diameter s6a grouped avp cast exception
http://code.google.com/p/mobicents/issues/detail?id=3096

When adding three grouped AVPs in the Diameter S6a:
org.mobicents.slee.resource.diameter.s6a.events.avp.SubscriptionDataAvpImpl.setAmbr()
org.mobicents.slee.resource.diameter.s6a.events.avp.SubscriptionDataAvpImpl.setAPNConfigurationProfile()
org.mobicents.slee.resource.diameter.s6a.events.avp.APNConfigurationProfileAvpImpl.setAPNConfiguration()

These grouped AVPs are added with an addAVP() method that adds them as if they are DiameterAvpImpl and not GroupedAvp - this causes a cast exception in AvpUtilities.

Instead of using the addAvp method:
addAvp(DiameterS6aAvpCodes.APN_CONFIGURATION, DiameterS6aAvpCodes.S6A_VENDOR_ID, apnconfig.byteArrayValue());

We should be using the addAvp method:
addAvp(apnconfig);


Attached is a patch that has been tested and corrects this class cast exception

Attachments:
        diameter-s6a-patch-grouped-avp-problem  2.0 KB

Reply via email to