Default Scenarios

Location path

Path in the assembly catalog

/era_dc/priv/default_scripts/<SCRIPT_TYPE>/<SCRIPT_CODE>.scr

Overview

Applies if a reference to a script code is present in a domain, but a script with that code does not exist in the domain itself or in any of its root domains up to the master.

For example, voicemail and parking services are available via susces featurecode, which set fixed script codes. By default, these services use basic scripts.

Basic scenarios are not available for modification through the API. In order for the service to use a script specifically configured by the domain administrator, it must be saved with a code that matches the default script code. This way the created script will be applied instead of the default script for all domains in the child tree.

The format is identical to the JSON value of the scriptdata field of entities ivrscript, svcscript. Creation of a hidden script file can be performed according to the following algorithm:

  1. In the script editor web application, a script is created and saved to the domain.

  2. The body of the script is pulled from the domain via API requests .

  3. The value of the scriptdata field is saved to a file with encoding UTF-8.

  4. The file is named, placed in the assembly directory of the process CI.

Format:
{
  "objects": array<object>,
  "variables": array<object>,
  "scriptVersion": 170105
}
  • objects – list of scenario components with filled fields.

  • variables – a list of the script variables used.

  • scriptVersion – file format version.

Default scenario structure

Placement Assignment

/ivr

Default IVR Scripts.

/ivr/queue.scr

Waiting in line.

/ivr/parking_put.scr

Placement of a bell in the parking lot.

/ivr/parking_wait.scr

Playback while waiting in a parking lot.

/ivr/parking_get.scr

Taking a call from the parking lot.

/ivr/voicemail.scr

Listening to voicemail.

/ivr/voicemail_send.scr

Sending voicemail to the box.

/ivr/fax_to_email.scr

Receiving a fax and sending it to email.

/ivr/ivr_email_to_fax.scr

Sending the attachment specified in the letter by fax.

/svc

Default Service Scripts.

/svc/svc_email_to_fax.scr

Receive an email and run ivr_email_to_fax to fax the attachment.

See also