Why aren't the AVPs I added to the DIAMETER dictionary working?
Hi I have created some new AVP in the CiscoSystems.xml as:
<avp name="CiscoSystems-Supported-Features" code="189" vendor-id="CiscoSystems">
<grouped>
<gavp name="CiscoSystems-Vendor-Id" />
<gavp name="CiscoSystems-Feature-List-ID" />
<gavp name="CiscoSystems-Feature-List" />
</grouped>
</avp>
<avp name="CiscoSystems-Vendor-Id" vendor-id="CiscoSystems" code="190" >
<type type-name="OctetString" />
</avp>
<avp name="CiscoSystems-Feature-List-ID" vendor-id="CiscoSystems" code="191" >
<type type-name="OctetString" />
</avp>
<avp name="CiscoSystems-Feature-List" vendor-id="CiscoSystems" code="192" >
<type type-name="OctetString" />
</avp>
<avp name="CiscoSystems-Exp-Result" code="195" vendor-id="CiscoSystems">
<grouped>
<gavp name="CiscoSystems-Vendor-Id" />
<gavp name="CiscoSystems-Exp-Result-Code" />
</grouped>
</avp>
<avp name="CiscoSystems-Exp-Result-Code" vendor-id="CiscoSystems" code="196" >
<type type-name="OctetString" />
</avp>
When i run my call, in my application logs, I can see the correct decoding as:
DiameterAVP [code=195, name=CISCOCSG2-Exp-Result, vendorId=9,flags#0=-M-,value#0:GroupedAVP={
AVP#0=DiameterAVP [code=190, name=CISCOCSG2-Vendor-Id, vendorId=9,flags#0=VM-,value#0:Unsigned32=9],
AVP#1=DiameterAVP [code=196, name=CISCOCSG2-Exp-Result-Code, vendorId=9,flags#0=V--,value#0:Unsigned32=5999]}]
DiameterAVP [code=189, name=CISCOCSG2-Supported-Features, vendorId=9,flags#0=VM-,value#0:GroupedAVP={
AVP#0=DiameterAVP [code=192, name=CISCOCSG2-Feature-List, vendorId=9,flags#0=V--,value#0:Unsigned32=16],
AVP#1=DiameterAVP [code=191, name=CISCOCSG2-Feature-List-ID, vendorId=9,flags#0=V--,value#0:Unsigned32=9],
AVP#2=DiameterAVP [code=190, name=CISCOCSG2-Vendor-Id, vendorId=9,flags#0=VM-,value#0:Unsigned32=9]}]
While, When open the pcap in wireshark, the decoding is not correct:
AVP: Experimental-Use-195(195) l=40 f=-M- val=000000bec00000100000000900000009000000c480000010…
AVP Code: 195 Experimental-Use-195
AVP Flags: 0x40, Mandatory: Set
AVP Length: 40
Experimental-Use-195: 000000bec00000100000000900000009000000c480000010…
What I am doing wrong here ?
Thanks Asif