add sip decline testcase

This commit is contained in:
Quan HL
2023-07-27 12:21:33 +07:00
parent 99ad9de68e
commit 968fa52eac

View File

@@ -1793,7 +1793,7 @@ class CallSession extends Emitter {
this.updateCallStatus(Object.assign({}, this.callInfo.toJSON()), this.serviceUrl)
.catch((err) => this.logger.error(err, 'redis error'));
if (this.wakeupResolver && !this.dlg && this.isFinalStatus()) {
if (this.wakeupResolver && this.isFinalStatus()) {
// Someone is waiting for call to be final
this.wakeupResolver({reason: 'session ended'});
this.wakeupResolver = null;