You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,14 +83,17 @@ Please see the following resources for more information on MediaStreamConstraint
83
83
84
84
### DTMF
85
85
86
-
- Description: send a set of VoIP-network-friendly DTMF tones. The tone amplitude and duration can not be controlled
86
+
- Description: send DTMF tones via the browser's native `RTCDTMFSender` (RFC 4733). Tones are forwarded as telephone-event RTP packets by the Bandwidth gateway.
87
87
- Params:
88
-
- tone: the digits to send, as a string, chosen from the set of valid DTMF characters [0-9,*,#,\,]
89
-
- streamId (optional): the stream to 'play' the tone on
88
+
- tone: the digits to send, as a string, chosen from the set of valid DTMF characters [0-9,*,#,A-D,\,]
89
+
- streamId (optional): the stream to send the tone on; defaults to all published streams
90
+
- duration (optional): tone duration in milliseconds, between 40 and 6000 (default: 100)
91
+
- interToneGap (optional): gap between tones in milliseconds, minimum 30 (default: 70)
90
92
91
93
```javascript
92
94
bandwidthRtc.sendDtmf("3");
93
95
bandwidthRtc.sendDtmf("313,3211*#");
96
+
bandwidthRtc.sendDtmf("5", undefined, 200, 100); // 200ms tone, 100ms gap
0 commit comments