Multi-instance AVP Manipulation
Some AVPs can appear multiple times within a message. To choose a specific occurrence of an AVP, the avp code parameter supports indexing logic. By default, the Oracle Communications Session Border Controller operates on all instances of the specified AVP. However, after configuring an avp-code, you can specify in square brackets, a specific instance of the AVP on which to operate on. The indexing is zero-based. For example,
diameter-manipulation-rule
name manip
avp-code 293[2]
Special characters that refer to non-discrete values are:
- Last occurrence—avp-code[^]
- All—avp-code [*]
The last (^) character is used to refer to the last occurring instance of that AVP. Any [^] refers to the first matching header that matches the specified conditional matching criteria. All [*] is the default behavior, and operates on all headers of the specified-type. For group manip action, the AVP index applies to the instance within that grouped AVP.