Multi-instance AVP Manipulation
Because some AVPs can appear multiple times within a message, the avp-code and avp-path parameters support indexing. You can use optionally specify an index number in square brackets after the AVP code to indicate the specific instance of the AVP that the Oracle Communications Session Border Controller should operate on. The indexing is zero-based.
For example, use 293[0] to specify the first instance of AVP 293.
If you do not include an index number, for avp-code, the SBC operates on all instances of the specified AVP. For avp-path, the SBC operates on the final instance of the specified AVP.
You can use the following special characters to refer to non-discrete index values:
- ^: Refers to the last occurring instance of the AVP. The SBC looks for the AVP that matches the specified conditional matching criteria, if any, starting from the bottom of the list.
This is the default behavior for avp-path.
For example, to specify the latest instance of AVP 293, use 293[^].
- *: Operates on all instances of the specified AVP.
This is the default behavior for avp-code.
For example, to specify all instances of AVP 293, use 293[*].
For the group manip action, the AVP index applies to the instance within that grouped AVP.