reanchor media for A leg

This commit is contained in:
Quan HL
2024-02-20 15:25:00 +07:00
parent ec1408fa0c
commit 673ab8a730

View File

@@ -1086,6 +1086,9 @@ class CallSession extends Emitter {
sessionTracker.add(cs.callSid, cs);
}
if (tasks) {
if (!this.ep) {
await this.reAnchorMedia();
}
const t = normalizeJambones(this.logger, tasks).map((tdata) => makeTask(this.logger, tdata));
this.logger.info({tasks: listTaskNames(t)}, 'CallSession:_lccCallHook new task list');
this.replaceApplication(t);