add testcase

This commit is contained in:
Quan HL
2023-07-27 06:53:37 +07:00
parent b88a9d4d4d
commit c6af3c6a8b
2 changed files with 12 additions and 2 deletions

View File

@@ -1792,7 +1792,7 @@ class CallSession extends Emitter {
//this.logger.debug(`updating redis with ${JSON.stringify(this.callInfo)}`);
this.updateCallStatus(Object.assign({}, this.callInfo.toJSON()), this.serviceUrl)
.catch((err) => this.logger.error(err, 'redis error'));
if (this.wakeupResolver && !this.dlg && this.isCurrentCallHigherThan(CallStatus.Failed)) {
// Someone is waiting for call to be final
this.wakeupResolver({reason: 'session ended'});