diff --git a/lib/call-session.js b/lib/call-session.js index 7c8328c..32f678b 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -144,11 +144,6 @@ class CallSession extends Emitter { return this._mediaReleased; } - get calleeIsUsingSrtp() { - const tp = this.rtpEngineOpts?.uac?.mediaOpts['transport-protocol']; - return tp && -1 !== tp.indexOf('SAVP'); - } - subscribeForDTMF(dlg) { if (!this._subscribedForDTMF) { this._subscribedForDTMF = true; @@ -835,7 +830,7 @@ Duration=${payload.duration} ` /* if this is a re-invite from the FS to change media anchoring, avoid sending the reinvite out */ let sdp; - if (isReleasingMedia && !this.calleeIsUsingSrtp) { + if (isReleasingMedia) { this.logger.info(`got a reinvite from FS to ${reason}`); sdp = dlg.other.remote.sdp; if (!answerMedia.flags.includes('port latching')) answerMedia.flags.push('port latching');