rest:dial support timeLimit (#1024)

* rest:dial support timeLimit

* wip

* wip

* clear maxCallDuration timer
This commit is contained in:
Quan HL
2025-02-26 20:39:40 +07:00
parent db3f7937e9
commit 4dd3a4a4e7
2 changed files with 9 additions and 8 deletions

View File

@@ -2685,7 +2685,6 @@ Duration=${duration} `
this.verbHookSpan = null;
}
}
}
async startMaxCallDurationTimer(timeLimit) {
if (!this._maxCallDurationTimer && timeLimit > 0) {
@@ -2706,6 +2705,7 @@ Duration=${duration} `
}
this._jambonzHangup('Max Call Duration');
this._maxCallDurationTimer = null;
}
}
module.exports = CallSession;