This commit is contained in:
Sam Machin
2026-01-14 16:11:08 +00:00
parent 3142dbf58e
commit e05abc37f7

View File

@@ -2727,13 +2727,8 @@ Duration=${duration} `
tidyUp();
}
else {
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');
}
if (this.currentTask?.name === TaskName.Dial && !this.currentTask.canReleaseMedia) {
this.logger.debug('CallSession:propagateAnswer - call already answered and anchored');
} else {
this.logger.debug('CallSession:propagateAnswer - call already answered - re-anchor media with a reinvite');
await this.dlg.modify(this.ep.local.sdp);