mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-09 21:14:37 +00:00
dont' reInvite an anchored call
This commit is contained in:
1 parent
961c2589ac
commit
d3f031b841
1 file changed
+8
-2
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user