ICallPlayPrompt(String, String, PlayPromptOptions, ActionBoolean) Method
Plays prompt sequence of the files and notify when playback will finished.
if
files is empty, the parameter
finished is ignored. If playback is active - it will be cancelled and its
finished delegate will be called with "false".
script should use this method only when executed in
Active mode.
Namespace: CallFlowAssembly: 3CX.CallFlow (in 3CX.CallFlow.dll) Version: 20.0.1
void PlayPrompt(
string promptset,
string[] files,
PlayPromptOptions options,
Action<bool> finished
)
Parameters
- promptset String
- null - default poromptset, or specific prompt set (Folder property of the required promptset)
- files String
- sequnce of the files. Files can be specified using "PromptID" from the specified promptset, number prepended with '#' or as a filename.
number started single '#' is pronounced as "decimal integer". with '##' pronounced as a "phone number".
- options PlayPromptOptions
- Controls dtmf handling. look on PlayPromptOptions for details
- finished ActionBoolean
- Called when prompt has finished. true - playback finished, false - playback was cancelled