mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 09:08:02 +00:00
add sip decline testcase
This commit is contained in:
@@ -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.
|
// 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)) {
|
!this.dlg && !this.isFinalStatus() && this.direction === CallDirection.Outbound)) {
|
||||||
//let span;
|
//let span;
|
||||||
@@ -1801,7 +1801,7 @@ class CallSession extends Emitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isFinalStatus() {
|
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) {
|
async executeStatusCallback(callStatus, sipStatus) {
|
||||||
|
|||||||
Reference in New Issue
Block a user