Default scripts
Location path
| Path in the build directory |
|---|
|
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:
-
In the script editor web application create a script and save it to the domain.
-
Extract the script body from the domain via API requests.
-
Save the scriptdata field value to a file with UTF-8 encoding.
-
Name the file and place it in the CI process build directory.
{
"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 |
|---|---|
|
Default IVR scripts. |
|
Waiting in the queue. |
|
Placing a call in parking. |
|
Playback while waiting in parking. |
|
Taking a call from parking. |
|
Listening to voicemail. |
|
Sending voicemail to a box. |
|
Receiving a fax and sending to email. |
|
Sending an attachment specified in an email by fax. |
|
Default service scripts. |
|
Receiving an email and launching |
See also
-
Entity featurecode
-
Entity ivrscript
-
Entity svcscript
-
Entity setting