fix conference end is not sent when moderator leave conference (#825)

* fix conference end is not sent when moderator leave conference

* wip

* fix review comment
This commit is contained in:
Hoan Luu Huu
2024-07-30 18:32:07 +07:00
committed by GitHub
parent 4b4807e4cf
commit cc33ac1d51
2 changed files with 6 additions and 2 deletions

View File

@@ -2067,6 +2067,9 @@ Duration=${duration} `
this.logger.error('CallSession:replaceEndpoint cannot be called without stable dlg');
return;
}
// When this call kicked out from conference, session need to replace endpoint
// but this.ms might be undefined/null at this case.
this.ms = this.ms || this.getMS();
this.ep = await this.ms.createEndpoint({remoteSdp: this.dlg.remote.sdp});
this._configMsEndpoint();