mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-30 07:14:32 +00:00
refactor
This commit is contained in:
1 parent
3142dbf58e
commit
e05abc37f7
1 file changed
+2
-7
@@ -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