Management of IVR scripts execution (ivrscript_runtimes)

Overview

Manages active IVR script handlers.
An IVR script handler is an algorithm that interprets an instance of an IVR script.

Requests

HTTP verb Endpoint Description

GET

/rest/v1/uc/ivrscript_runtimes

Getting the list of running instances of IVR scripts

DELETE

/rest/v1/uc/ivrscript_runtimes/<id>

Stopping the IVR script instance


Getting the list of running instances of IVR scripts

Returns a list of all IVR script handlers executed by the system in the current domain at all available sites where it is served.

Request

Table 1. Request parameters
Name Type Description

filter

object

Filter by field values.

mask

str

A list of fields to output.

offset

int

Offset in the list of resources to be issued.

limit

int

The maximum number of resources in the list.

order

array<object|str>

The sort order of the resources in the list.

flat

bool

Conversion to flat form of composite fields.

Request example
GET /rest/v1/uc/ivrscript_runtimes HTTP/1.1

Response

Returns all detected active running IVR script handlers.

Table 2. Field Description:
Field Description

id

Scenario handler identifier

site

The site where the handler is executed.

node

Node within which the handler is executed.

domain

Script Domain.

type

Scenario Type.

code

The code of the running script. If the source script has transferred control to a nested script, the code of the nested script is returned.

name

The name of the running scenario. If the source script has transferred control to a nested script, the name of the nested script is returned.

starttime

Date and time of the handler start in RFC3339 format in UTC.

Response example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

[
  {
    "id": "244f84aa-0624-e639-8061-a80000000006",
    "site": "SITE1",
    "node": "site1_h6@192.168.0.12",
    "domain": "test.rootdomain.ru",
    "type": "ivr",
    "code": "player",
    "name": "TEST PLAY",
    "starttime": "2019-11-05T08:36:40Z"
  },
  {
    "id": "6b3ba923-0624-e8c9-6bee-b00000000008",
    "site": "SITE1",
    "node": "site1_h8@192.168.0.12",
    "domain": "test.rootdomain.ru",
    "type": "ivr",
    "code": "welcome",
    "name": "Main scenario",
    "starttime": "2019-11-05T11:31:34Z"
  }
]

Stopping the IVR script instance

Forcibly terminates the script handler.

If a post-processing branch corresponding to the External Stop' termination type is specified in the currently executing script, control is passed to it and the handler continues to execute. In this case, another API request will be needed to stop the handler completely `DELETE.

Request

Request example
DELETE /rest/v1/uc/ivrscript_runtimes/244f84aa-0624-e639-8061-a80000000006 HTTP/1.1

Response

Response example
HTTP/1.1 204 No Content

See also