mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
on rest outdial failure, if remote end closed gracefully don't wait for a reconnection
This commit is contained in:
@@ -796,7 +796,11 @@ 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.requestor.this.closedGracefully &&
|
||||
!this.callGone
|
||||
) {
|
||||
try {
|
||||
await this._awaitCommandsOrHangup();
|
||||
if (this.callGone) break;
|
||||
|
||||
Reference in New Issue
Block a user