5 Writing Policy Conditions

The policy wizard supports a large number of conditions that can be used for constructing policy rules. To help you find the conditions you want, the conditions are organized into different categories, which are summarized in

The conditions that are included within each of these categories are described in the sections that follow. Within each category, conditions are listed in alphabetical order. The parameters that can be modified within each condition are also detailed.

Policy Condition Categories

Variable Name
Description
Mobility
Conditions that are based on information associated with wireless networks that include mobile subscribers. See Mobility Conditions.
Network Devices
Conditions related to the specific network device for which the policy rule is being evaluated. This includes conditions based on the network device type, as well as those that refer to specific unique identifiers for network devices. See Network Device Conditions .
Policy SDP Properties
Conditions related to SDP properties that are used to check the codec type (offer/answer) for the device (remote/local). See Policy SDP Properties Conditions .
Request
Conditions that are based on information that is explicitly contained within or related to the protocol message (request) that triggered the policy rule execution. See Request Conditions .
Time of Day
Conditions related to the time at which the policy rules are being executed. See Time of Day Conditions .

Mobility Conditions

Mobility conditions are based on information associated with networks that include mobile subscribers (such as a wireless network).

where the mobile session supports sponsored connectivity

Syntax

where the mobile session support sponsored connectivity

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the mobile session supports sponsored connectivity.
support
One of the following:
  • does not support
  • supports (default)

Description

Triggers a policy that evaluates whether or not the mobile session supports sponsored data connectivity. This condition supports sponsored data connectivity for both Gx and Rx requests.

Example 5-1 Example

The following condition evaluates as true of the mobile session supports sponsored data connectivity:
where the mobile session supports sponsored connectivity

where the Cell Identifier matches one of specified CI value(s)

Syntax

where the Cell Identifier matches-op match-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the cell identifier matches one of the specified CI values.
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
match-list
A comma-separated list of values, where each value is a wildcard match pattern that uses the * (asterisk) character to match zero or more characters and the ? (question mark) character to match exactly one character.

Description

Triggers a policy that is only evaluated for one or more specific Cell Identifier values (based on matching wildcard patterns). A valid Cell Identifier is an integer between 0 and 65535.

where the IP address of the Serving Gateway matches one of specified value(s)(es)

Syntax

where the IP address of the Serving Gateway matches-op match-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the IP address of the serving gateway matches one of the specified values.
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
match-list
A comma-separated list of values, where each value is a wildcard match pattern that uses the * (asterisk) character to match zero or more characters and the ? (question mark) character to match exactly one character.

Description

Triggers a policy that is only evaluated for one or more specific Serving Gateway addresses (based on matching wildcard patterns).

where the IP-CAN type specified

Syntax

where the IP-CAN type ip-can-type

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the IP-CAN type is specified.
ip-can-type
One or more of the following:
  • THREEGPP_GPRS
  • THREEGPP_EPS
  • NON_THREEGPP EPS
  • THREEGPP2
  • WIMAX
  • DOCSIS
  • XDSL
  • WIRELINE_ACCESS

Description

Triggers a policy that is only evaluated for a protocol message with a specific IP-CAN type.

where network initiated requests are supported

Syntax

where network initiated requests are support

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where network initiated requests are supported.
support
One of the following:
  • not supported
  • supported (default)

Description

Triggers a policy that is only evaluated when network initiated requests are or are not supported.

where the E-UTRAN Cell Identifier matches one of specified ECI value(s)

Syntax

where the E-UTRAN Cell Identifier matches-op match-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the E-UTRAN cell identifier matches one of the specified ECI values.
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
match-list
A comma-separated list of values, where each value is a wildcard match pattern that uses the * (asterisk) character to match zero or more characters and the ? (question mark) character to match exactly one character.

Description

Triggers a policy that is only evaluated for one or more specific E-UTRAN Cell Identifier values (based on matching wildcard patterns).

where the subscribed PRA area matches one of PRA area(s)

Syntax

where the subscribed PRA area matches-op pra-areas

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the subscribed PRA area matches one of PRA area(s).
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
pra-areas
A single area or multiple specific PRA areas selected from the defined PRA areas, manually input, or Default.
  • CMP defined PRA lists

    Select one or more defined PRA lists

  • Manual Input

    Enter the identifier for the PRA in hexadecimal format or a custom PRA from a subscriber profile in the format {User.CustomField}.

    The manual input format for multiple PRAs is:
    PRA
    identifier1 [;PRA element list1],PRA identifier2 [; PRA element
    list2],…

    The format of PRA identifier and PRA Element List is according to section 8.108 of TS 29.274[9]. It is specified in Hexadecimal format. If only has a PRA identifier then the PRA area is a predefined PRA area. If both PRA identifier and PRA Element List exists then it is a UE-dedicated PRA Area. The manual input is typically used to input a temporally PRA area. The manual input can also be used to get a PRA area from Custom field of subscriber. For example, {User.Custom4}. If the operator wants to manually input a PRA area they need to get the Hexadecimal value for each. Different vendors/operators should interact or exchange PRA info using the Hexadecimal representation as defined in section 8.108 of TS 29.274[9].

    The manual input format for a single PRA is:
    PRA identifier [, PRA element list]
  • Default

    The PRA to which the user equipment is already subscribed, if any.

    The Default option specifies using the default PRA area. The default PRA is the PRA area subscribed or provisioned by the PCRF for the UE during IP-CAN session life cycle. It is either a UE- dedicated or predefined PRA area. It can be a PRA area that is retrieved from the subscriber profile (normally UE-dedicated) or a PRA area defined in the CMP (normally predefined). When used , this Default option means to check whether the UE has subscribed to a PRA area but does not care what the PRA area is.

Description

Triggers a policy that is only evaluated for one or more specific PRA values. If default area is selected as the definition for the parameter pra-areas, the policy is only evaluated if the user equipment is already subscribed to a PRA.

where the UE is inside/outside/inactive for any one of PRA Area

Syntax

where the UE is location subscribed PRA area PRA areas

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the UE is insids/outside/active subscribed PRA area for any one of the PRA area.
location
One of the following:
  • inside
  • outside
  • inactive
pra-areas
A single area or multiple specific PRA areas selected from the defined PRA areas, manually input, or Default.
  • CMP defined PRA lists

    Select one or more defined PRA lists

  • Manual Input

    Enter the identifier for the PRA in hexadecimal format or a custom PRA from a subscriber profile in the format {User.CustomField}.

    The manual input format for multiple PRAs is:
    PRA
    identifier1 [;PRA element list1],PRA identifier2 [; PRA element
    list2],…

    The format of PRA identifier and PRA Element List is according to section 8.108 of TS 29.274[9]. It is specified in Hexadecimal format. If only has a PRA identifier then the PRA area is a predefined PRA area. If both PRA identifier and PRA Element List exists then it is a UE-dedicated PRA Area. The manual input is typically used to input a temporally PRA area. The manual input can also be used to get a PRA area from Custom field of subscriber. For example, {User.Custom4}. If the operator wants to manually input a PRA area they need to get the Hexadecimal value for each. Different vendors/operators should interact or exchange PRA info using the Hexadecimal representation as defined in section 8.108 of TS 29.274[9].

    The manual input format for a single PRA is:
    PRA identifier [, PRA element list]
  • Default

    The PRA to which the user equipment is already subscribed, if any.

    The Default option specifies using the default PRA area. The default PRA is the PRA area subscribed or provisioned by the PCRF for the UE during IP-CAN session life cycle. It is either a UE- dedicated or predefined PRA area. It can be a PRA area that is retrieved from the subscriber profile (normally UE-dedicated) or a PRA area defined in the CMP (normally predefined). When used , this Default option means to check whether the UE has subscribed to a PRA area but does not care what the PRA area is.

Description

Triggers a policy that is only evaluated when the user equipment is or is not inside the subscribed PRA.

where the APN matches one of specified APN value(s)

Syntax

where the APN matches-op match-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the APN matches one of the specified APN value(s).
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
match-list
A comma-separated list of values, where each value is a wildcard match pattern that uses the * (asterisk) character to match zero or more characters and the ? (question mark) character to match exactly one character.

Description

Triggers a policy that is only evaluated for one or more specific access point name (APN) values (based on matching wildcard patterns). A valid APN value is any domain name; for example: network.operator.com.

Network Device Conditions

Network Device conditions are related to the specific network device for which the policy rule is being evaluated. This includes conditions based on the network device type, as well as those that refer to specific unique identifiers for network devices.

where the device type is specified type

Syntax

where the device type operator-binary device-type

Parameters

operator-binary
One of the following:
  • is (default)
  • is not
device-type
One or more of the following:
  • PDSN
  • GGSN
  • HomeAgent
  • HSGW
  • PGW
  • SGW
  • DPI

Description

Triggers a policy based on the device type for which it is evaluated.

where the User Equipment IMEISV matches one of specified IMEISV value(s)

Syntax

where the User Equipment IMEISV matches-op match-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the User Equipment IMEISV matches one of specified IMEISV value(s).
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
matches-op
One of the following:
  • matches one of (default)
  • does not match any of

Description

Triggers a policy that is only evaluated for one or more specific IMEISV values (based on matching wildcard patterns). A valid IMEISV value has 16 decimal digits. If the IMEISV value matches with IMEISV value present in event, enfsession and then session then the condition returns true, otherwise false.

Policy SDP Properties Conditions

Session Description Protocol (SDP) properties conditions identify any specific SDP attributes and evaluate their value. This includes setting proper bandwidth values on related PCC rules. The following conditions are available.

where the local codec data is an offer

Syntax

where the sdp_capabilities codec data is an codec-type

Parameters

sdp_capabilities
Specifies where to search for the SDP property:
  • Local—The capabilities of the device for the subscriber.
  • Remote—The capabilities of the device for the remote party.
  • Common—The capabilities that the local and remote devices have in common.
codec-type
Specifies the Codec type. The options are:
  • offer (default)
  • answer

Description

Checks the Codec type (offer or answer) for a subscribers device (remote, local or both).

where the local specified SDP property exists

Syntax

where the sdp_capabilities SDP property accessibility

Parameters

sdp_capabilities
Specifies where to search for the SDP property:
  • Local—The capabilities of the device for the subscriber.
  • Remote—The capabilities of the device for the remote party.
  • Common—The capabilities that the local and remote devices have in common.
SDP property
A comma-delimited list of SDP properties. Specify the SDP properties using one of the following methods:
  • Generic descriptor

    sdp.[option]

    Where:
    option
    Is any name (for example, i) or any keyword (for example, a=ptime)
    Examples using an SDP generic descriptor:
    • where the common sdp.[a] exists
    • where the remote sdp.[a=ptime] exists
    • where the common sdp.[gd] exists
  • Media descriptor

    sdp.[m.option]

    Where:
    option
    • fmt
    • port
    • numberofports
    • media
    • proto
    Examples using an SDP media descriptor:
    • where the local sdp.[m] exists
  • rtpmap

    sdp.[codec-name(codec-name).rtpmap.OPTION]

    Where:
    codec-name
    Specifies a codec name.
    option
    • payloadtype
    • clockrate
    • encodingparameters
  • fmtp

    sdp.[codec-name(codec-name).fmtp.OPTIONS]

    Where:
    codec-name
    Specifies a codec name.
    option
    • fmt
    • profile-level-id
    • mode-set
    • packetization-mode
    • Any other parameter to be conveyed
    Examples using fmtp:
    • where the common sdp.[codec-name(AMR-WB).fmtp.fmt] exists
accessibility
One of the following:
  • exists (default)
  • does not exist

Description

Checks for the existence or non-existence of any SDP property.

where the local specified SDP property is numerically equal to value

Syntax

where the sdp_capabilities sdp_capabilities is numerically operator value

Parameters

sdp_capabilities
Specifies where to search for the SDP property:
  • Local—The capabilities of the device for the subscriber.
  • Remote—The capabilities of the device for the remote party.
  • Common—The capabilities that the local and remote devices have in common.
SDP property
A comma-delimited list of SDP properties. Specify the SDP properties using one of the following methods:
  • Generic descriptor

    Syntax: sdp.[option]

    Where:
    option
    Is any name (for example, i) or any keyword (for example, a=ptime)
    Examples using an SDP generic descriptor:
    • where the common sdp.[a=ptime] is numerically equal to 20
    • where the common sdp.[f=hello] is numerically equal to 20
  • Media descriptor

    Syntax: sdp.[m.option]

    Where:
    option
    • fmt
    • port
    • numberofports
    • media
    • proto
    Example using an SDP media descriptor:
    • where the local sdp.[m.numberofports] is numerically equal to 2
  • rtpmap

    Syntax: sdp.[codec-name(codec-name).rtpmap.OPTION]

    Where:
    codec-name
    Specifies a codec name.
    option
    • payloadtype
    • clockrate
    • encodingparameters
    Examples using rtpmap:
    • where the local sdp.[codec-name(AMR-WB).rtpmap.clockrate] is numerically less than or equal to 16000
  • fmtp

    Syntax: sdp.[codec-name(codec-name).fmtp.OPTIONS]

    Where:
    codec-name
    Specifies a codec name.
    option
    • fmt
    • profile-level-id
    • mode-set
    • packetization-mode
    • Any other parameter to be conveyed
    Example using fmtp:
    • where the local sdp.[codec-name(AMR-WB).fmtp.mode-set] is numerically less than or equal to 4
operator
One of the following:
  • greater than or equal to
  • greater than
  • less than or equal to
  • less than
  • equal to
  • not equal to
For this condition the default is equal to.
value
String.

Description

Compares a numerical SDP property value against a specified number.

where the local specified SDP property matches one of value(s)

Syntax

where the sdp_capabilities SDP property matches-op value-list

Parameters

sdp_capabilities
Specifies where to search for the SDP property:
  • Local—The capabilities of the device for the subscriber.
  • Remote—The capabilities of the device for the remote party.
  • Common—The capabilities that the local and remote devices have in common.
SDP property
A comma-delimited list of SDP properties. Specify the SDP properties using one of the following methods:
  • Generic descriptor

    Syntax: sdp.[option]

    Where:
    option
    Is any name (for example, i) or any keyword (for example, a=ptime)
    Examples using an SDP generic descriptor:
    • where the local sdp.[i] matches one of *recvonly*
    • where the common sdp.[a=ptime] matches one of 20
    • where the common sdp.[a] matches one of ptime: 20
    • where the common sdp.[u] matches one of http://www.oracle.com:8080/hr/one.htm
    • where the common sdp.[u=http://www.oracle.com] matches one of 8080/hr/one.htm
    • where the common sdp.[u=http] matches one of //www.oracle.com:8080/hr/one.htm
    • where the remote sdp.[xy] matches one of z
    • where the remote sdp.[xy=z] matches one of 80
  • Media descriptor

    Syntax: sdp.[m.option]

    Where:
    option
    • fmt
    • port
    • numberofports
    • media
    • proto
    Examples using an SDP media descriptor:
    • where the common sdp.[m.fmt] matches one of 102
    • where the common sdp.[m.port] does not match any of 41000,41002
    • where the remote sdp.[m.media] matches one of audio,video
    • where the local sdp.[m.proto] matches one of RTP/AVP
  • rtpmap

    Syntax: sdp.[codec-name(codec-name).rtpmap.OPTION]

    Where:
    codec-name
    Specifies a codec name.
    option
    • payloadtype
    • clockrate
    • encodingparameters
    Examples using rtpmap:
    • where the common sdp.[ codec-name(AMR-WB).rtpmap] matches one of 104 AMR-WB/160000
    • where the common sdp.[ codec-name(AMR-WB).rtpmap.encodingparameters] matches one of 2
    • where the common sdp.[ codec-name(AMR-WB).rtpmap.payloadtype] matches one of 104,102
  • fmtp

    Syntax: sdp.[codec-name(codec-name).fmtp.OPTIONS]

    Where:
    codec-name
    Specifies a codec name.
    option
    • fmt
    • profile-level-id
    • mode-set
    • packetization-mode
    • Any other parameter to be conveyed
    Examples using fmtp:
    • where the common sdp.[codec-name(AMR-WB).fmtp.fmt] matches one of 104,102
    • where the common sdp.[codec-name(AMR-WB).fmtp.mode-set] matches one of 2,4
    • where the commonsdp.[codec-name(H264).fmtp.profile-level-id] matches one of42e00c
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
value-list
A comma-delimited list of values to compare against.

Description

Checks the Codec type (offer or answer) for a subscribers device (remote, local or both) for specific values.

Request Conditions

Request conditions are based on information that is explicitly contained within, or related to, the protocol message (request) that triggered the policy rule execution.

where the requested QCI is specified QCI

Mode

Cable, Wireless

Syntax

where the requested QCI is create list with specified QCI

Parameters

The following screen capture displays the sample policy condition:

The screen capture displays the sample policy condition, where the requested QCI is one of the specified.

specified QCI
One or more of the following:
  • 1 (Conversational speech)
  • 2 (Conversational)
  • 3 (Streaming speech)
  • 4 (Streaming)
  • 5 (Interactive with priority 1 signalling)
  • 6 (Interactive with priority 1)
  • 7 (Interactive with priority 2)
  • 8 (Interactive with priority 3)
  • 9 (Background)
  • 65 (Mission critical push-to-talk voice)
  • 66 (Push-to-talk voice)
  • 69 (Mission critical push-to-talk signalling)
  • 70 (Mission critical data)

Description

Selects protocol messages based on the QoS class identifier (QCI).

where the request supports feature name

Syntax

where the request supports feature value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request supports feature name.
supports
One of the following:
  • supports (default)
  • does not support
value-list
A comma-delimited list of values to compare against.

Description

Determines whether the request supports a specified feature.

where the session is an enforcement session

Syntax

where the session is session-type

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the session is an enforcement session.
session-type
One of the following:
  • an enforcement session (default)
  • an application session
  • a credit control session
  • a radius authorization session

Description

Distinguishes between protocol messages that are operating on different sessions.

where the request AVP name exists

Syntax

where the request AVP avp accessibility

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request AVP name exists.

avp
AVP in one of the following formats:
name:vendorID
or a full path
[avp_name1]:vendorID.[avp_name2]:vendorID
for the members of the grouped AVPs
accessibility
One of the following:
  • exists (default)
  • does not exist

Description

Checks for the presence or absence of the third-party AVP in an incoming Diameter message.

Note:

The condition supports both loaded base Diameter AVPs and third-party AVPs.

where the request AVP namevalue matches one of value(s)

Syntax

where the request AVP avp matches-op value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request AVP name value matches one of value(s).
avp
AVP in one of the following formats:
name:vendorID
or a full path
[avp_name1]:vendorID.[avp_name2]:vendorID
for the members of the grouped AVPs
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
value-list
A comma-delimited list of values to compare against.

Description

Compares the specified AVP value with the values or variables from the specified list. The condition is where the request AVP name value matches one of the values. The values can be evaluated for equality as well as inequality. To evaluate an AVP value for inequality, the variable matches one of must be changed to does not match any of.

Note:

The condition supports both loaded base Diameter AVPs and third-party AVPs.

where the request AVP name value is numerically equal to value

Syntax

where the request AVP avp value is numerically operator value

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request AVP name value is numerically equal to value.

avp
AVP in one of the following formats:
name:vendorID
or a full path
[avp_name1]:vendorID.[avp_name2]:vendorID
for the members of the grouped AVPs
operator
One of the following:
  • greater than or equal to
  • greater than
  • less than or equal to
  • less than
  • equal to
  • not equal to
The default for this condition is equal to.
value
String.

Description

Compares a numerical AVP value against a specified number or policy context number variable value.

Note:

The condition supports both loaded base Diameter AVPs and third-party AVPs.

where the request AVP name value is contained in Match Lists select lists

Syntax

where the request AVP avp value operator-binary contained in Match Lists match-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request AVP name value is contained in Match List(s) select list(s).
avp
AVP in one of the following formats:
name:vendorID
or a full path
[avp_name1]:vendorID.[avp_name2]:vendorID
for the members of the grouped AVPs
operator-binary
One of the following:
  • is (default)
  • is not
match-list
A comma-separated list of values, where each value is a wildcard match pattern that uses the * (asterisk) character to match zero or more characters and the ? (question mark) character to match exactly one character.

Description

Compares the specified AVP value with the values or variables from the specified match list. The condition is where the request AVP name value matches one of the values. The values can be evaluated for equality as well as inequality. To evaluate an AVP value for inequality, the condition matches one of must be changed to does not match any of.

Note:

The condition supports both loaded base Diameter AVPs and third-party AVPs.

where the request AVP name value contains one of value(s)

Syntax

where the request AVP avp value containment value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request AVP name value contains one of value(s).
avp
AVP in the format:
name:vendorID
or a full path
[avp_name1]:vendorID.[avp_name2]:vendorID
for the members of the grouped AVPs
containment
One of the following:
  • contains one of (default)
  • does not contain any of
value-list
A comma-delimited list of values to compare against.

Description

Performs a lookup of the sub-strings in the AVP value. It is possible to check multiple sub-string entries at on time. If the operation type is changed, you can check the opposite scenario, which would not include any of the provided sub-strings.

Note:

The condition supports both loaded base Diameter AVPs and third-party AVPs.

where the request AVP Media-Component-Description exists

Syntax

where the request AVP Media-Component-Description accessibility

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request AVP Media-Component-Description exists.
accessibility
One of the following:
  • exists (default)
  • does not exist

Description

Determines whether the AVP Media-Component-Description is accessible.

where at least one flow has media type that matches specified type(s)

Syntax

where at least one flow has media type that matches media-type

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where at least one flow has media type that matches specified type(s).
media-type
One or more of the following, used to determine the type of media:
  • Audio
  • Video
  • Data
  • Application
  • Control
  • Text
  • Message
  • Other

Description

Triggers a policy based on whether at least one flow matches one or more of the specified media types.

Example 5-2 Example

where at least one flow has media type that matches Video,Application

where the AF-Application-ID matches one of specified value(s)

Syntax

where the AF-Application-ID matches one of value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the where the AF-Application-ID matches one of specified value(s).
value-list
A comma-delimited list of values to compare against.

Description

Selects protocol messages based on the Diameter AF Application Identifier field. A valid AF Application identifier is any string describing the application, for example VoIP or streaming.

Example 5-3 Example

where the AF-Application-ID matches one of ptt-application-id
apply PTT to all flows in the request
continue processing message

where the corresponding enforcement session supports feature name

Syntax

where the corresponding enforcement session action feature value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the where the corresponding enforcement session supports feature name.
action
Select one of the following :
  • supports (default)
  • does not support
value-list
A comma-delimited list of values to compare against.
This list can contain one or more supported feature. To use a wildcard match pattern, select Evaluate as Expression. Wildcard match patterns use the following characters:
  • * (asterisk) character to match zero or more characters
  • ? (question mark) character to match exactly one character

Description

Evaluates the feature name in the enforcement session that correlates to the corresponding application (Rx) request.

Example 5-4 Example

where the corresponding enforcement session supports feature GroupComService.

where the flow media type is one of specified type(s)

Syntax

where the flow(s) media type is one of media-type

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the flow media type is one of the specified types.
media-type
One or more of the following, used to determine the type of media:
  • Audio
  • Video
  • Data
  • Application
  • Control
  • Text
  • Message
  • Other

Description

Selects protocol messages based on the media type of the flow or flows.

where the flow usage is one of specified usage(s)

Syntax

where the flow usage is flow-usage-type

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the flow usage is one of the specified usage(s).
flow-usage-type
One or more of the following:
  • No Information
  • RTCP
  • AF Signaling

Description

Selects protocol messages based on the flow usage.

where the request is creating a new flow

Syntax

where the request is change-type

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request is creating a new flow.
change-type
One or more of the following:
  • creating a new flow (default)
  • modifying an existing flow
  • provisioning a default flow
  • terminating an existing flow

Description

Distinguishes between protocol messages based on the type of operation being performed on the flow.

where the Service-URN is one of specified value(s)

Syntax

where the Service-URN is one of value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the where the Service-URN is one of specified value(s).
value-list
A comma-delimited list of values to compare against.

Description

Selects Rx protocol messages based on the value of the Service-URN field.

where the specific action is one of specified action(s)

Syntax

where the specific action is one of action

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the where the specific action is one of specified action(s).
action
One or more of the following actions:
  • SERVICE_INFORMATION_REQUEST
  • CHARGING_CORRELATION_EXCHANGE
  • INDICATION_OF_LOSS_OF_BEARER
  • INDICATION_OF_RECOVERY_OF_BEARER
  • INDICATION_OF_RELEASE_OF_BEARER
  • INDICATION_OF_ESTABLISHMENT_OF_BEARER
  • INDICATION_OF_IP_CAN_CHANGE
  • INDICATION_OF_OUT_OF_CREDIT
  • INDICATION_OF_SUCCESSFUL_RESOURCES_ALLOCATION
  • INDICATION_OF_FAILED_RESOURCES_ALLOCATION
  • USAGE_REPORT
  • ACCESS_NETWORK_INFO_REPORT
  • INDICATION_OF_RECOVERY_FROM_LIMITED_PCC_DEPLOYMENT
  • INDICATION_OF_ACCESS_NETWORK_INFO_REPORTING_FAILURE

Description

This condition lets you take action based on the value of the Specific-Action AVP field within an Rx RAA message.

where the rule report contains one of specified rule name(s) and the rule status is active

Syntax

where the rule report contains one of value-list and the rule status is field

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the rule report contains one of the specified rule name and the rule status is active.
value-list
A comma-delimited list of values to compare against.
field
One of the following:
  • active (default)
  • inactive
  • temporarily_inactive

Description

Selects protocol messages based on whether a rule name and a status was received in a rule report.

where the request MPS Identifier matches one of value(s)

Syntax

where the MPS Identifier matches-op value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the request MPS Identifier matches one of the value (s).
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
value-list
A comma-delimited list of values to compare against.

Description

Determines whether the MPS Identifier matches a specified value(s).

where the requested media component description reservation priority is one of specified

Syntax

where the requested media component description reservation priority is one of priority

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the requested media component description reservation priority is one of specified.
priority
One or more of the following:
  • DEFAULT
  • PRIORITY_ONE
  • PRIORITY_TWO
  • PRIORITY_THREE
  • PRIORITY_FOUR
  • PRIORITY_FIVE
  • PRIORITY_SIX
  • PRIORITY_SEVEN
  • PRIORITY_EIGHT
  • PRIORITY_NINE
  • PRIORITY_TEN
  • PRIORITY_ELEVEN
  • PRIORITY_TWELVE
  • PRIORITY_THIRTEEN
  • PRIORITY_FOURTEEN
  • PRIORITY_FIFTEEN

Description

Selects Rx protocol messages based on the requested media component description reservation priority.

where the requested session reservation priority is one of specified

Syntax

where the requested session reservation priority is one of priority

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the requested session reservation priority is one of specified..
priority
One or more of the following:
  • DEFAULT
  • PRIORITY_ONE
  • PRIORITY_TWO
  • PRIORITY_THREE
  • PRIORITY_FOUR
  • PRIORITY_FIVE
  • PRIORITY_SIX
  • PRIORITY_SEVEN
  • PRIORITY_EIGHT
  • PRIORITY_NINE
  • PRIORITY_TEN
  • PRIORITY_ELEVEN
  • PRIORITY_TWELVE
  • PRIORITY_THIRTEEN
  • PRIORITY_FOURTEEN
  • PRIORITY_FIFTEEN

Description

Selects Rx protocol messages based on the requested session reservation priority.

where the flow media type matches one of user defined media type(s)

Syntax

where the flow media type matches-op value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the flow media type matches one of the user defined media type(s).
matches-op
One of the following:
  • matches one of (default)
  • does not match any of
value-list
A comma-delimited list of values to compare against.

Description

Selects one or more protocol messages that match one or more user-defined media types.

where the Sponsor-Identity matches one of specified Sponsor Identity(s)

Syntax

where the Sponsor-Identity matches one of value-list

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the sponsor-identity matches one of specified sponsor identity(s).
value-list
A comma-delimited list of values to compare against.

Description

Selects protocol messages based on whether the Sponsored-Identity AVP matches a list of sponsors. This condition supports sponsored data connectivity.

Example 5-5 Example

The following condition is true if the Sponsored-Identity AVP matches either ESPN or FIFA:
where the Sponsor-Identity matches one of ESPN,FIFA

where the AF-Application-ID is available

Syntax

where the AF-Application-ID operator-binary available

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where the AF-Application ID is available.
operator-binary
One of the following:
  • is (default)
  • is not

Description

Checks for the presence or absence of the AF Application Identifier field. A valid AF Application identifier is any string describing the application, for example VoIP or streaming.

where the requested APN aggregate maximum bitrate upstream is greater than # bps

Syntax

where the requested APN aggregate maximum bitrate flow-direction is operator bandwidth

The following screen capture displays the sample policy condition:The screen capture displays the sample policy condition, where the requested upstream APN aggregate maximum bitrate is greater than # bps.

Parameters

flow-direction
One of the following:
  • upstream
  • downstream
  • upstream or downstream (default)
operator
One of the following:
  • greater than or equal to
  • greater than
  • less than or equal to
  • less than
  • equal to
  • not equal to
The default for this condition is greater than.

bandwidth

A numeric value that specifies the bandwidth. The unit of bandwidth is compatible with the Cedit Control Request (CCR) meesage.

Description

Selects protocol messages based on the maximum bitrate being requested for an access point name (APN) in a specific direction relative to a numeric value.

Time of Day Conditions

Time-of-Day conditions are related to the time at which the policy rules are being executed.

Configuring Local Time

To Configure the local time:
  1. From the navigation menu, under PCRF, then under Services, click Core Service.

    The Core Service screen appears.

  2. Click Edit to edit the core service configurations.
  3. In Advance Settings, click Create.

    The Create page appears.

  4. Enter DB.User.DefaultLocalTimeMode in the Key field.
  5. Enter True in the Value field.
  6. Click Save.

If no configuration is provided, the SYSTEM_LOCAL_TIME is considered as default local time.

where the current time is between start time and end time using configured local time

Syntax

where the current time operator-binary between time-of-day and time-of-day using time-zone

The following screen capture shows a sample policy condition:

This screen capture shows a sample policy condition, where the current time is between start time and end time using configured local time.

Parameters

operator-binary
One of the following:
  • is (default)
  • is not
time-of-day
A time, in the format of hh:mm, where hh is a number in the range from 0 to 23.
time-zone
One of the following:
  • CONFIGURED LOCAL TIME (default)—Calculate the time from the location configured for this MPE device
  • SYSTEM LOCAL TIME—Calculate the time from the location of this MPE device
  • USER LOCAL TIME—Calculate the time from the location configured for the user equipment's location

Description

Triggers a policy based on time. If the present time is between start time and end time then the condition returns true, otherwise false. If start time is greater than end time then the condition is evaluated, where the end time is considered as the next day.

where the current time is within the specified time period(s)

Syntax

where the current time operator-binary within the time-period time periods

Parameters

The following screen capture shows a sample policy condition

This screen caputre displays the sample policy condition, where the current time is within the specified time periods.
operator-binary
One of the following:
  • is (default)
  • is not
time-period
Names of one or more time periods that are defined in the cnPCRF GUI.
You can configure Time Periods using GUI by Navigating PCRFConfigurationTime Periods.

Description

Triggers a policy based on the time period. This condition gets time slots of all the time periods, and compares current time with these time slots. If the current time falls within the range of time slots configured in these time periods then the condition returns true, otherwise false.

where today is a week day using configured local time

Syntax

where today is a week day using time-zone

Parameters

The following screen capture shows a sample policy condition:

This screen capture shows a sample policy condition where today is a week day using configured local time.
time-zone
One of the following:
  • CONFIGURED LOCAL TIME (default)—Calculate the time from the location configured for this MPE device
  • SYSTEM LOCAL TIME—Calculate the time from the location of this MPE device
  • USER LOCAL TIME—Calculate the time from the location configured for the user equipment's location

Description

Triggers a policy based on the day of the week. If today is week day using the system time then the condition returns true, otherwise false.

where today is a weekend day using configured local time

Syntax

where today is a weekend day using time-zone

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where today is a weekend day using configured local time.

time-zone
One of the following:
  • CONFIGURED LOCAL TIME (default)—Calculate the time from the location configured for this MPE device
  • SYSTEM LOCAL TIME—Calculate the time from the location of this MPE device
  • USER LOCAL TIME—Calculate the time from the location configured for the user equipment's location

Description

Triggers a policy based on the day of the week. If today is weekend according to configured time then the condition returns true, otherwise false.

where today is day using configured local time

Syntax

where today operator-binary day-of-week using time-zone

Parameters

The following screen capture shows a sample policy condition:

The screen capture shows a sample policy condition, where today is day using configured local time.
operator-binary
One of the following:
  • is (default)
  • is not
day-of-week
One of the following:
  • Sunday
  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
time-zone
One of the following:
  • CONFIGURED LOCAL TIME (default)—Calculate the time from the location configured for this MPE device
  • SYSTEM LOCAL TIME—Calculate the time from the location of this MPE device
  • USER LOCAL TIME—Calculate the time from the location configured for the user equipment's location

Description

Triggers a policy based on the day of the week. If today is day within specified days then the condition returns true, otherwise false.

where today is the specified number(s) th day(s) of Any Month in natural order using configured local time

Syntax

where today operator-binary the value-list th days of month in order using time-zone

Parameters

The following screen capture shows a sample policy condition:

The screen capture displays a sample policy condition, where today is the specified number(s) th day(s) of Any Month in natural order using configured local time.

operator-binary
One of the following:
  • is (default)
  • is not
value-list
A comma-delimited list of values to compare against.
month
One or more of the following:
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
order
Specifies the order to evaluate the value list. The options are:
  • natural order
  • reverse order
time-zone
One of the following:
  • CONFIGURED LOCAL TIME (default)—Calculate the time from the location configured for this MPE device
  • SYSTEM LOCAL TIME—Calculate the time from the location of this MPE device
  • USER LOCAL TIME—Calculate the time from the location configured for the user equipment's location

Description

Triggers a policy based on a day in a month. If current date matches specified number th day of specified months in natural/reverse order as per the configured time then the condition returns true, otherwise false.

Example 5-6 Example

The following conditions, if evaluated as true, will trigger a policy:

    where today is the 1,2,3,4 th days of March,April,May in natural order using USER LOCAL TIME