sendDTMF(options)
Sends DTMF tones to a dial-out participant — for example, to navigate an IVR menu after dialing out to a phone number.
Parameters
The
session_id of the dial-out participant to send tones to.The DTMF tones to send as a string (e.g.
'1234#'). Valid characters are 0–9, A–D, #, and *. Maximum 20 characters.DTMF method:
'sip-info', 'telephone-event', or 'auto'. Defaults to 'auto', which selects the best method based on the SIP endpoint’s capabilities.Duration in milliseconds per DTMF digit. Must be an integer between
50 and 2000. Defaults to 500.Return value
ReturnsPromise<void>.
Errors
The following errors may be thrown:sessionId and tones are mandatory parameters of type stringtones string must be upto 20 characters{character} is not valid DTMF tone— valid tones are0–9,A–D,#,*digitDurationMs must be a finite integer numberdigitDurationMs must be between 50ms and 2000ms, the default value is 500ms