Ask Your Question

Why aren't the AVPs I added to the DIAMETER dictionary working?

asked 2019-07-18 15:34:03 +0000

Asif Ansari gravatar image

updated 2019-07-18 18:33:04 +0000

Guy Harris gravatar image

Hi I have created some new AVP in the CiscoSystems.xml as:

  <avp name="CiscoSystems-Supported-Features" code="189" vendor-id="CiscoSystems">
      <gavp name="CiscoSystems-Vendor-Id" />
      <gavp name="CiscoSystems-Feature-List-ID" />
      <gavp name="CiscoSystems-Feature-List" />

  <avp name="CiscoSystems-Vendor-Id" vendor-id="CiscoSystems" code="190" >
    <type type-name="OctetString" />

  <avp name="CiscoSystems-Feature-List-ID" vendor-id="CiscoSystems" code="191" >
    <type type-name="OctetString" />

  <avp name="CiscoSystems-Feature-List" vendor-id="CiscoSystems" code="192" >
    <type type-name="OctetString" />

  <avp name="CiscoSystems-Exp-Result" code="195" vendor-id="CiscoSystems">
      <gavp name="CiscoSystems-Vendor-Id" />
      <gavp name="CiscoSystems-Exp-Result-Code" />

  <avp name="CiscoSystems-Exp-Result-Code" vendor-id="CiscoSystems" code="196" >
    <type type-name="OctetString" />

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

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-07-18 18:57:50 +0000

Anders gravatar image

Seems like the vendor flag is not set.

edit flag offensive delete link more


I.e., in the XML you've stated that the Vendor-ID will be Cisco but the packets don't have the V-bit set.

JeffMorriss gravatar imageJeffMorriss ( 2019-07-18 19:47:52 +0000 )edit

Thanks. I modified the same as per suggestion and it is working niw. Thanks a lot for the help...

Asif Ansari gravatar imageAsif Ansari ( 2019-07-20 05:01:57 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-07-18 15:34:03 +0000

Seen: 298 times

Last updated: Jul 18 '19