The Play command plays an audio file (local or downloaded from URL) when an API extension call is in progress.
<Play> command example usage:
It is widely used in IVR-s playing pre-recorded sounds. It's also used when a client's call is transferred and the company plays music to the client till the phone is picked up by the support staff.
string value, e.g. hello.wav
Wav or MP3 file to play. When the relative path is provided, it will be relative to ContentStorage/Static directory in
Ozeki Phone System XE install directory. It can be a HTTP URL as well where it's downloaded from and cached (based on the webserver settings). This parameter
can be provided between the command nodes.
bool value (true or false)
If set to true then it repeats the audio file. It's default value is false.
OzML simple example:
Plays repeatedly hello.wav from ContentStorage/Static directory in Ozeki Phone System XE install directory.
If the Play command is set to repeat mode then it will never step to the next command.
If you play the file from an URL link, the 1st attempt will be slow since Ozeki Phone System XE needs to download it to local before playing. After it's downloaded every other attempt will be smooth and fast.