# Credit Control Service Configuration Mode Commands

The Credit Control Service Configuration Mode is used to create and manage Credit Control Service.

IMPORTANT:

The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
diameter dictionary

This command configures the Diameter dictionary to be used for this Credit Control Service instance.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    diameter dictionary { custom1 | standard }default diameter dictionary

default

Configures the default setting.
dictionary { custom1 | standard }

Specifies the Diameter dictionary to be used.

custom1: Specifies the custom dictionary custom1.

standard: Specifies the standard dictionary.
Usage:

Use this command to configure the Diameter dictionary to be used for this Credit Control Service instance.
Example:
The following command configures the standard Diameter dictionary:

    diameter dictionary standard

diameter endpoint

This command configures the Diameter Credit Control Interface Endpoint.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    diameter endpoint endpoint_name{ default | no } diameter endpoint

default

Configures the default setting.
no

Removes the previous Diameter endpoint configuration.
endpoint_name

Specifies the Diameter endpoint name as an alpha and/or numeric string of 1 through 63 characters.
Usage:

Use this command to configure the Diameter Credit Control Interface Endpoint.
Example:
The following command configures the Diameter Credit Control Interface Endpoint named test135:

    diameter endpoint
    test135

end

Exits the current configuration mode and returns to the Exec mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    end

Usage:

Use this command to return to the Exec mode.
exit

Exits the current mode and returns to the parent configuration mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    exit

Usage:

Use this command to return to the parent configuration mode.
failure-handling

This command configures the Diameter failure handling behavior.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    failure-handling { initial-request | terminate-request | update-request } { diameter-result-code result_code [ to result_code ] | peer-unavailable | request-timeout } action { continue | retry-and-continue | retry-and-terminate | terminate }{ default | no } failure-handling { initial-request | terminate-request | update-request } { diameter-result-code result_code [ to result_code ] | peer-unavailable | request-timeout }

default

Configures the default setting.
no

Removes the previous failure handling configuration.
initial-request | terminate-request | update-request

initial-request: Specifies failure handling for Initial Request.

terminate-request: Specifies failure handling for Terminate Request.

update-request: Specifies failure handling for Update Request.
diameter-result-code | peer-unavailable | request-timeout

diameter-result-code result_code [ to result_code ]: Specifies Diameter result code(s) for failure handling.

result_code must be an integer from 3000 through 9999.

to result_code: Specifies the range of Diameter result codes.

peer-unavailable: Specifies failure handling for peer being unavailable.

request-timeout: Specifies failure handling for request timeouts.
action { continue | retry-and-continue | retry-and-terminate | terminate }

Specifies the failure handling action.

continue: Continue the session without credit control.

retry-and-continue: Retry and, even if credit control is not available, continue.

retry-and-terminate: Retry and then terminate.

terminate: Terminate the session.
Usage:

Use this command to configure the Diameter failure handling behavior.
Example:
The following command configures initial request failure handling behavior for Diameter result codes 3001 to 4001 with terminate action:

    failure-handling initial-request
    diameter-result-code 3001 to 4001 action terminate

request timeout

This command configures the timeout period for Diameter requests.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    request timeout timeout{ default | no } request timeout

default

Configures the default setting.
no

Removes the previous request timeout configuration.
timeout

Specifies the timeout period in seconds. The value must be an integer from 1 through 300.
Usage:

Use this command to configure the Diameter request timeout value, after which the request is deemed to have failed. This timeout is an overall timeout, and encompasses all retries with the server(s).
Example:
The following command configures the timeout period to 150 seconds:

    request timeout 150