MediaDialog
Class finesse.restservices.MediaDialog
Extends finesse.restservices.DialogBase
Represents a non-voice media dialog and also exposes the methods to perform actions on the media dialog. For example, accepting, starting, pausing, resuming, transferring, closing, and so on.
For additional parameters and methods, see RestBase Common Parameters.
Methods
setTaskState(action, handlers, target)
Sets the state on a media dialog based on the action given.
Parameters
Name |
Type |
Description |
Required |
---|---|---|---|
action |
String |
The action is invoked when the media dialog is set. |
Yes |
handlers |
Object |
An object containing the handlers for the request. For more information on handlers, see Request Handlers. |
Yes |
target |
String |
The script selector or dialed number to which the dialog is being transferred. Pass the target as null if the task is not related to transfer. |
Yes |
transfer(target, handlers)
Transfers a media dialog to the specified target.
Name |
Type |
Description |
Required |
---|---|---|---|
target |
String |
The script selector or dialed number to which the dialog is being transferred. |
Yes |
handlers |
Object |
An object containing the handlers for the request. For more information on handlers, see Request Handlers. |
Yes |
transferWithWrapup(wrapUpreason, handlers, target)
Transfers a media dialog to the specified target with the wrap-up reason selected by agents.
Name |
Type |
Description |
Required |
---|---|---|---|
wrapUpreason |
String |
The wrap-up reason selected by agents. |
Yes |
handlers |
Object |
An object containing the handlers for the request. For more information on handlers, see Request Handlers. |
Yes |
target |
String |
The script selector or dialed number to which the dialog is being transferred. Pass the target as null if the task is not related to transfer. |
Yes |
closeWithWrapUp(wrapUpreason, handlers, target)
Close a media dialog with the wrap-up reason selected by agents.
Name |
Type |
Description |
Required |
---|---|---|---|
wrapUpreason |
String |
The wrap-up reason selected by agents. |
Yes |
handlers |
Object |
An object containing the handlers for the request. For more information on handlers, see Request Handlers. |
Yes |
target |
String |
The script selector or dialed number to which the dialog is being transferred. Pass the target as null if the task is not related to transfer. |
Yes |