Fix/audio issue kick conference (#878)

* rest call session does not handle for RE-INVITE

* fixed audio is bad after kicked from conference

* fix review comment
This commit is contained in:
Hoan Luu Huu
2024-08-23 20:28:39 +07:00
committed by GitHub
parent eccef54b04
commit 4d077e990f

View File

@@ -2074,6 +2074,9 @@ Duration=${duration} `
// When this call kicked out from conference, session need to replace endpoint // When this call kicked out from conference, session need to replace endpoint
// but this.ms might be undefined/null at this case. // but this.ms might be undefined/null at this case.
this.ms = this.ms || this.getMS(); this.ms = this.ms || this.getMS();
// Destroy previous ep if it's still running.
if (this.ep?.connected) this.ep.destroy();
this.ep = await this.ms.createEndpoint({remoteSdp: this.dlg.remote.sdp}); this.ep = await this.ms.createEndpoint({remoteSdp: this.dlg.remote.sdp});
this._configMsEndpoint(); this._configMsEndpoint();