mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-01-25 02:07:56 +00:00
refactor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user