diff --git a/lib/session/call-session.js b/lib/session/call-session.js index c441bcaf..b26579bf 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -2727,8 +2727,14 @@ Duration=${duration} ` tidyUp(); } else { - this.logger.debug('CallSession:propagateAnswer - call already answered - re-anchor media with a reinvite'); - await this.dlg.modify(this.ep.local.sdp); + if (this.currentTask?.name === TaskName.Dial) { + if (this.currentTask?.canReleaseMedia) { + this.logger.debug('CallSession:propagateAnswer - call already answered - re-anchor media with a reinvite'); + await this.dlg.modify(this.ep.local.sdp); + } else { + this.logger.debug('CallSession:propagateAnswer - call already answered and anchored'); + } + } } }