[webrtc-pc] Failed to execute 'insertDTMF' on 'RTCDTMFSender': The 'canInsertDTMF' attribute is false: this sender cannot send DTMF.

jiaguolin has just created a new issue for https://github.com/w3c/webrtc-pc:

== Failed to execute 'insertDTMF' on 'RTCDTMFSender': The 'canInsertDTMF' attribute is false: this sender cannot send DTMF. ==
```        
           let peerconnection = this.session.connection;
            var dtmfSender = peerconnection.getSenders()[0].dtmf;
            if (dtmfSender) {
                var duration = 500;
                dtmfSender.insertDTMF('1234', 400, 50);
            } else {
               log.error("DTMF function not available");
            }
```

I'm use jssip.but jssip send DTMF is sip info 

My server does not handle DTMF for sip INFO, but I will use the above method to relax DTMF and I will get an error.

`Failed to execute 'insertDTMF' on 'RTCDTMFSender': The 'canInsertDTMF' attribute is false: this sender cannot send DTMF.`



Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1958 using your GitHub account

Received on Friday, 10 August 2018 07:43:45 UTC