W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > August 2018

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

From: jiaguolin via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 Aug 2018 07:43:44 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-349409314-1533887023-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:04 UTC