All Rule Templates are listed on the Rule Templates GUI with check boxes by each row. To automatically check all the Rule Templates, check the box by Rule Template Name.
A Rule Template is created by configuring Settings, Conditions, and Actions.
Settings
Conditions
One or more (up to 5) matching expressions (Conditions) can be defined in a Rule Template. The expressions are combined into one logical expression with ANDed, ORed or Complex Expression operators, so that the request or response matches the condition set if all of the expressions are true. If no matching expression is defined, the message unconditionally matches.
Conditions can be configured to cause Mediation to use fast database lookups of the rule data. See Fast Search.
Actions
Actions indicate what to do when the conditions match (such as modify the part of a message, forward a message, send a reply, insert or remove headers, or set attributes for further processing). Actions implement the mediation of a message.
When the message processing reaches a selected triggering point, the Conditions of the Rule Template are examined for the message. If the Conditions match, Mediation Actions are applied to the message. The Actions allow manipulation of some particular part of the message, adding or deleting information in the message, or forwarding the message to a specific destination, or triggering of Diameter Message Copy to send a copy of the message to a DAS.
The Actions to take when a Mediation operation is triggered and its Condition Set is matched are defined in the Rule Template. Actions belonging to the same Rule Template form an Action Set. See Rule Template elements for the Actions available in Rule Templates.
The Diameter Mediation Rule Templates [Insert] page opens. You can add a new Rule Templates and its values. See Adding a Rule Template. If the maximum number of Rule Templates (100) already exist in the system, the Rule Templates [Insert] page will not open, and an error message is displayed.
The Diameter > Mediation > Rule Templates [Import] page opens. You can import a Rule Template from a location outside the Diameter system, to which the Rule Template was previously exported from Mediation. See Importing a Rule Template. If the maximum number of Rule Templates (100) already exist in the system, the Rule Templates [Import] page will not open, and an error message is displayed.
The Diameter > Mediation > Rule Templates [Copy] page opens. You can change the information for the copied Rule Template to create a new Rule Template. See Copying a Rule Template. If the maximum number of Rule Templates (100) already exist in the system, the Rule Templates [Copy] page will not open, and an error message is displayed.
The Diameter > Mediation > Rule Templates [Edit] page opens. You can edit the selected Rule Template. See Changing a Rule Template.
The Diameter > Mediation > Rule Templates [Export] page opens. You can export one or more Rule Template(s) to a location outside of the Diameter system. See Exporting a Rule Template.
The Diameter > Mediation > Rule Templates [Set Help] page opens. You can create online help for the selected Rule Template. See Adding online help to a Rule Template.
The Fast Search option is used to cause Mediation to use fast database lookups. If Fast Search is not used, the values of each condition are checked one-by-one until the first match is found.
The Fast Search option appears as the first element for each condition that is defined in the Conditions section for a Rule Template. The Fast Search option is not editable; it serves only to indicate whether Fast Search will or will not be used for the condition:
All of the conditions with the Fast Search option enabled must precede any conditions without Fast Search enabled in the Rule Set list. If any conditions without Fast Search enabled precede conditions with Fast Search enabled, a database lookup could fall back to slow search because of the order of the conditions.
The Condition Set layout is the alphabetical order of displaying the conditions on the "Rule Templates" screen. The Condition evaluation order is the order in which the conditions are evaluated. For simple ANDed or ORed Condition Sets, the evaluation order matches with the alphabetical order of the layout. For the Complex Expressions, conditions are evaluated in the order they appear in the expression from left to right.