Simple AVP Tag Format
The following format must be used to define new custom AVP:
< avp name="<avpName>"display="<displayText>" [vendor-id="<vendorId>"] code="<code>"type="<type>"/>
where
- avpName must be unique AVP identifier in the dictionary file, if the vendorId is present then the name should be preceded by vendor-id (see the example below)
- vendorId is optional and if present then must be either defined in the custom dictionary file, or must be one of the predefined ones
- type must be one of the following predefined types:
- OctetString
- Integer32, Unsigned32, Integer64, Unsigned64
- UTFString
- IPAddress
- TBCD
Example:
< avp name="3GPP:3GPP-IMSI"display="3GPP-IMSI"code="1"vendor-id="3GPP"type="UTF8String"/>
Enumerated AVP Tag Format
The following XML tag format must be used to define new enumerated AVP
:< avp name="<avpName>"display="<displayText>" [vendor-id="<vendorId>"] code="<code>"type="type">
<enumcode="<value>"name="<enumDisplayText>">
. . .
</avp>
where
- avpName , displayText, vendorId, code and type are the same as in case of simple AVP format
- value is the numeric value and enumDisplayText is a text which is displayed in the full decoding window. If a named value is not defined, the decoder displays just simple numeric value
Example:
<avp name="Framed-Routing" display="Framed-Routing" code="10" type="Enumerated" >
<enum code="0" name="None"/>
<enum code="1" name="Broadcast"/>
<enum code="2" name="Listen"/>
<enum code="3" name="Broadcast-Listen"/>
</avp>
Grouped AVP Tag Format
The following XML tag format must be used to define new custom grouped AVP:
< avp name="<avpName>"display="<displayText>" [vendor-id="<vendorId>"] code="<code>"type="type">
<avpref="<refAvpName>">
. . .
</avp>
where
- avpName , displayText, vendorId, code and type are the same as in case of simple AVP format
- refAVPName must be name of an existing AVP define in the custom dictionary
Example:
<avp name="3GPP:User-Identity" display="User-Identity" code="700" vendor-id="3GPP" type="Grouped">
<avp ref="Public-Identity"/>
<avp ref="3GPP:MSISDN"/>
<avp ref="3GPP:Public-Identity"/>
</avp>