Hi all,
We are attempting to send DTMF via RTP using the SessionDescriptionHandler.sendDTMF() function. But, it's throwing an error that it's not available:
logger-factory.js:85 DOMException: Failed to execute 'insertDTMF' on 'RTCDTMFSender': The 'canInsertDTMF' attribute is false: this sender cannot send DTMF.
Looking at the INVITE, there is no rtpmap:101 feature being advertised, so I tried to append it on UserAgentOptions.sessionDescriptionHandlerFactoryOptions:
userAgentOptions.sessionDescriptionHandlerFactoryOptions = {
modifiers: [(description) => {
description.sdp += "\na=rtpmap:101 telephone-event/8000";
return Promise.resolve(description);
}]
};
But, that makes no difference on the INVITE message. In fact, when you modify anything on sessionDescriptionHandlerFactoryOptions it appears to be completely ignored.
Any ideas?