support for gateways sending TLS with SRTP but not dtls (#66)

This commit is contained in:
Dave Horton authored and GitHub committed 2022-12-01 09:49:25 -05:00
1 parent 5b88065925
commit c34da3cfa8
3 files changed
+8 -2

No files matched your search

+4
View File
@@ -41,6 +41,9 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, teams = false) {
};
}
const SdpDoesNotWantDTLS = (sdp) => {
return /m=audio.*\s+RTP\/SAVP/.test(sdp);
};
const SdpWantsSrtp = (sdp) => {
return /m=audio.*SAVP/.test(sdp);
};
@@ -178,6 +181,7 @@ const parseConnectionIp = (sdp) => {
module.exports = {
isWSS,
SdpWantsSrtp,
SdpDoesNotWantDTLS,
getAppserver,
makeRtpEngineOpts,
makeAccountCallCountKey,