mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-11-08 12:34:14 +00:00
support for gateways sending TLS with SRTP but not dtls (#66)
This commit is contained in:
1 parent
5b88065925
commit
c34da3cfa8
3 files changed
+8
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user