add sip decline testcase

This commit is contained in:
Quan HL
2023-07-27 11:54:14 +07:00
parent cf8d47cb94
commit 99ad9de68e

View File

@@ -796,7 +796,7 @@ class CallSession extends Emitter {
}
}
if (0 === this.tasks.length && ((this.requestor instanceof WsRequestor && !this.callGone)||
if (0 === this.tasks.length && ((this.requestor instanceof WsRequestor && !this.callGone) ||
// Tasks are all done, but outgoing dialog is not establish yet, waiting for cancel/handup the call.
!this.dlg && !this.isFinalStatus() && this.direction === CallDirection.Outbound)) {
//let span;
@@ -1801,7 +1801,7 @@ class CallSession extends Emitter {
}
isFinalStatus() {
return [CallStatus.Failed, CallStatus.Busy, CallStatus.NoAnswer, CallStatus.Completed].includes(this.callStatus)
return [CallStatus.Failed, CallStatus.Busy, CallStatus.NoAnswer, CallStatus.Completed].includes(this.callStatus);
}
async executeStatusCallback(callStatus, sipStatus) {