Table of Contents
sendDTMF()
call.sendDTMF() sends DTMF tones during a call. It can only be used to send tones while already in a call - not to place a call.
Tone duration is 300 ms, with 100 ms pause between each tone.
Arguments
call.sendDTMF(sequence)
- sequence - string containing DTMF tone sequence. Valid characters are 0-9, A-D, #, and *. Pause: p or , can be used to insert a delay of 2 seconds into the sequence.
Returns
Nothing.
Events
None.
Example
call.sendDTMF("12p34") sends DTMF tones for 1 and 2, pauses 2 seconds, then sends tones for 3 and 4.
Inband, Outband
The Chrome browser can send DTMF tones inband, as audio tones in the media stream.
Other browsers are not capable of that, but need to send DTMF tones outband, as SIP INFO messages.
call.sendDTMF() will send DTMF tones inband in Chrome and outband on other browsers.
To send DTMF tones both inband and outband on Chrome set wrtc.adv.dtmfInfo=true