Ask Your Question

How to add a vendor to the Diameter dictionary

asked 2020-01-17 14:34:15 +0000

vjokhoo gravatar image

updated 2020-01-17 19:41:10 +0000

Guy Harris gravatar image

I am trying to add a vendor to my wireshark running on Windows. I modified the dictionary.xml as follows:

!ENTITY myvendor SYSTEM "myvendor .xml"
vendor vendor-id="myvendor " code="0000" name="myvendor "<br>
&myvendor ;

I also created the myvendor.xml file and added the custom attributes, for example:

?xml version="1.0" encoding="utf-8"?
  vendor vendor-id="myvendor "  code="0000" name="myvendor "
    avp name="Service-Name" code="14" mandatory="must" may-encrypt="yes" vendor-id="myvendor "
    type type-name="UTF8String"

Wireshark still does not recognize and decode the AVP when I open the pcap:

AVP Code: 13 Unknown

Unknown AVP 13 (vendor=myvendor), if you know what this is you can add it to dictionary.xml

Is there something missing?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-01-17 14:53:33 +0000

grahamb gravatar image

updated 2020-01-17 19:40:52 +0000

Guy Harris gravatar image

This is untested, but I think you have a missing </avp> closing tag in your vendor xml.

In dictionary.xml you need:

<!ENTITY myvendor SYSTEM "myvendor.xml"> 


and in myvendor.xml you need:

<?xml version="1.0" encoding="utf-8"?>

<vendor vendor-id="myvendor" code="0000" name="myvendor"/>
    <avp name="Service-Name" code="14" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
       <type type-name="UTF8String"/>

You also had trailing spaces in a few of the "myvendor" strings, probably best not to do that. I'm also not sure if you need the vendor-bit="must" attribute in the avp declaration.

edit flag offensive delete link more


Hi I've been trying for days to comment but my browser just goes blank. Finally trying from my mobile.

I initially didn't format my original message properly but all the relevant tags are there. I was however missing the closing vendor tag and added it but same problem.

vjokhoo gravatar imagevjokhoo ( 2020-01-21 14:23:42 +0000 )edit

This is what myvendor.xml looks like now.

<?xml version="1.0" encoding="utf-8"?>
<vendor vendor-id="myvendor" code="0000" name="myvendor"/>
  <avp name="Service-Parameter" code="13" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
        <gavp name="Service-Name" maximum="1"/>
        <gavp name="Service-Value" maximum="1"/>
  <avp name="Service-Name" code="14" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
    <type type-name="UTF8String"/>
  <avp name="Service-Value" code="15" mandatory="must" may-encrypt="yes" vendor-id="myvendor">
    <type type-name="UTF8String"/>

Thanks for looking.

vjokhoo gravatar imagevjokhoo ( 2020-01-21 14:25:28 +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


Asked: 2020-01-17 14:34:15 +0000

Seen: 1,918 times

Last updated: Jan 17 '20