From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
• 5.19
sendDtmf
Sends a specified number sequence using dual tone multifrequency (DTMF) signaling to the call receiver.
Request
Syntax
sendDtmf(dtmf: string, interactionId?: string): Promise<OperationResult<null>> |
Parameters
Parameter | Parameter Values | Data Type | Optional/Required | Description |
dtmf | String | Required | The DTMF number sequence (i.e., a string of numbers) | |
interactionId | String | Optional | The ID of the interaction for which this action will apply to. If not specified, the active interaction will be used. |
Example Request
sendDtmfButton.onclick = () => {
const dtmf = dtmfInput.value
const itemId = activeInteractionIdInput.value
adApi.sendDtmf(dtmf, itemId)
}
Return Value
null