sendDTMF
Sends DTMF digits on the active call.
Description
vcc.sendDTMF(digits: string, delayMs?: number)
Parameters
digits
The DTMF digits to send (0-9, *, and #). ${name} is replaced with the variable of the call, other characters are skipped.
delayMs
The pause between two digits in milliseconds.
Return values
true if all digits were sent, false if there was no valid digit or the call ended meanwhile
Example
// Send single DTMF digit '5' with 300 ms pause
var success = vcc.sendDTMF('5', 300);
// Send variable value as DTMF
var customerCode = vcc.getVariable('customer_code');
if (customerCode) {
vcc.sendDTMF(customerCode, 200);
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.