Skip to content

Some DTMF Questions #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aboba opened this issue Feb 9, 2015 · 2 comments
Closed

Some DTMF Questions #178

aboba opened this issue Feb 9, 2015 · 2 comments

Comments

@aboba
Copy link
Contributor

aboba commented Feb 9, 2015

From Shijun Sun:

  1. What happens if a DTMFSender object sender is constructed from an RTCRtpSender object sendObject and methods such as insertDTMF() are called, but sendObject.send() was not previously called to set up the DTMF codec?

var sendObject = new RTCRtpSender(audioTrack, dtlsTransport);
var sender = new RTCDtmfSender(sendObject);
if (sender.canInsertDTMF) {
var duration = 500;
sender.insertDTMF("1234", duration);
} else
log("DTMF function not available");

In the above example (assuming the DTMF function is available) does sender.insertDTMF() throw an InvalidState exception?

  1. In the single sender example above, what happens to the audioTrack when DTMF is being sent? Presumably the audioTrack is not encoded, correct? Then once the DTMF tones are played out, audioTrack is encoded and sent over the wire within RTP packets again?
@aboba
Copy link
Contributor Author

aboba commented Feb 13, 2015

The proposed resolution is to add the following text to Section 10.3.2:

insertDTMF
Insert DTMF tones. Since DTMF tones cannot be sent without configuring the DTMF codec, if insertDTMF() is called prior to sender.send(), throw an InvalidStateError exception.

@aboba aboba removed the 1.1 label Feb 20, 2015
@aboba
Copy link
Contributor Author

aboba commented Mar 11, 2015

A slight revision:
insertDTMF
Insert DTMF tones. Since DTMF tones cannot be sent without configuring the DTMF codec, if insertDTMF() is called prior to sender.send(parameters), or if sender.send(parameters) was called but parameters did not include the DTMF codec, throw an InvalidStateError exception.

robin-raymond pushed a commit that referenced this issue Mar 25, 2015
- Revised the text relating to RTCDtlsTransport.start(), as noted in: Issue #168
- Clarified pruning of local candidates within the RTCIceGatherer, as noted in: Issue #174
- Clarified handling of incoming connectivity checks by the RTCIceGatherer, as noted in: Issue #170
- Added Section 9.3.2.1, defining DTMF capabilities and settings, as noted in: Issue #177
- Clarified pre-requisites for insertDTMF(), based on: Issue #178
- Added Section 8.3.2 and updated Section 9.5.1 to clarify aspects of RTCP sending and receiving, based on: Issue #180
@aboba aboba closed this as completed Apr 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants