Dialled Number

Dialled Number

The DialledNumber operation selects an exit according to the best-match prefix for the Dialled Number. This operation is identical to a Calling Party operation, routing on the Dialled Number instead of the Calling Party Number.

Note that the Dialled Number is the N2ACD service number for the first service that handles the call. In most cases the caller will have dialled this service number directly. However, it’s possible that the caller dialled a number that was forwarded or redirected to the service. In that case the number that the caller dialled is the Original Called Party, and the Dialled Number is the N2ACD service number. It’s also possible that one or more Service Number Handovers have been performed. Service Number Handovers do not change the Dialled Number.

The DialledNumber operation must have at least one exit. The DialledNumber operation is only useful when it has more than one exit, although this is not enforced by the operation definition.

Config Parameters

The DialledNumber operation config attributes are as follows.

Parameter Type Description
rules Array of
Object
[Required] The rules Array must contain zero or more Objects.

Config Rules

The attributes for each DialledNumber operation rules Object are as follows.

Parameter Type Description
prefix Telephony Digits [Required] The prefix which must be the best match for the Dialled Number in order to select the associated exit.
exit_idx Integer [Required] The zero-based index number of the exit to select when prefix is the best match for the Dialled Number.

Note that if the Dialled Number matches more than one prefix, the best-matching (longest) prefix will be used.

If the Dialled Number does not match any prefixes, the first exit (exit index 0) will be selected.

Example Operation

Here is an example DialledNumber operation in JSON representation.

    {
        "id": 5,
        "type": "DialledNumber",
        "config": {
            "rules": [
                { "prefix": "1300111", "exit_idx": 1 },
                { "prefix": "1300222", "exit_idx": 1 }
            ]
        },
        "exits": [ 4, 17 ]
    }

In this example, calls for which the Dialled Number starts with 1300111 or 1300222 will be routed via exit index 1 to the operation with ID 17. All other calls will be routed via the default exit index 0 to the operation with ID 4.

Exits

The first exit is always the “Default” exit.

Exit Index Name Description
0 Exit #1 (Default) [Required] All DialledNumber operations must have at least one exit.
1 Exit #2 + Additional exits may be present.