From Bright Pattern Documentation
• 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