Default scripts

Location path

Path in the build directory

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

Overview

Applied if a script code reference exists in the domain, but no script with that code exists either in the domain itself or in any of its root domains up to the master.

For example, voicemail and parking services are available through featurecode entities that set fixed script codes. By default these services use base scripts.

Base scripts are not available for modification via the API. For a service to use a script specifically configured by the domain administrator, it must be saved with a code corresponding to the default script code. Thus 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 ivrscript and svcscript entities. A hidden script file can be created by the following algorithm:

  1. In the script editor web application create a script and save it to the domain.

  2. Extract the script body from the domain via API requests.

  3. Save the scriptdata field value to a file with UTF-8 encoding.

  4. Name the file and place it in the CI process build directory.

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

  • variables – list of used script variables.

  • scriptVersion – file format version.

Default script structure

Location Purpose

/ivr

Default IVR scripts.

/ivr/queue.scr

Waiting in the queue.

/ivr/parking_put.scr

Placing a call in parking.

/ivr/parking_wait.scr

Playback while waiting in parking.

/ivr/parking_get.scr

Taking a call from parking.

/ivr/voicemail.scr

Listening to voicemail.

/ivr/voicemail_send.scr

Sending voicemail to a box.

/ivr/fax_to_email.scr

Receiving a fax and sending to email.

/ivr/ivr_email_to_fax.scr

Sending an attachment specified in an email by fax.

/svc

Default service scripts.

/svc/svc_email_to_fax.scr

Receiving an email and launching ivr_email_to_fax to send the attachment by fax.

See also