bugfix #121: Dial verb not ending when call no answer timeout exceeded

This commit is contained in:
Dave Horton
2022-06-24 10:50:29 -04:00
parent 9aa0df256d
commit 7d57c85153

View File

@@ -404,6 +404,11 @@ class TaskDial extends Task {
this.logger.info(`Dial:_attemptCall: ring no answer timer ${this.timeout}s exceeded`); this.logger.info(`Dial:_attemptCall: ring no answer timer ${this.timeout}s exceeded`);
this.timerRing = null; this.timerRing = null;
this._killOutdials(); this._killOutdials();
this.result = {
dialCallStatus: CallStatus.NoAnswer,
dialSipStatus: 487
};
this.kill(cs);
}, this.timeout * 1000); }, this.timeout * 1000);
this.span.setAttributes({'dial.target': JSON.stringify(this.target)}); this.span.setAttributes({'dial.target': JSON.stringify(this.target)});