mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
rest:dial support timeLimit (#1024)
* rest:dial support timeLimit * wip * wip * clear maxCallDuration timer
This commit is contained in:
@@ -2685,7 +2685,6 @@ Duration=${duration} `
|
|||||||
this.verbHookSpan = null;
|
this.verbHookSpan = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
async startMaxCallDurationTimer(timeLimit) {
|
async startMaxCallDurationTimer(timeLimit) {
|
||||||
if (!this._maxCallDurationTimer && timeLimit > 0) {
|
if (!this._maxCallDurationTimer && timeLimit > 0) {
|
||||||
@@ -2707,5 +2706,6 @@ Duration=${duration} `
|
|||||||
this._jambonzHangup('Max Call Duration');
|
this._jambonzHangup('Max Call Duration');
|
||||||
this._maxCallDurationTimer = null;
|
this._maxCallDurationTimer = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = CallSession;
|
module.exports = CallSession;
|
||||||
|
|||||||
15
package-lock.json
generated
15
package-lock.json
generated
@@ -17,7 +17,7 @@
|
|||||||
"@jambonz/realtimedb-helpers": "^0.8.8",
|
"@jambonz/realtimedb-helpers": "^0.8.8",
|
||||||
"@jambonz/speech-utils": "^0.1.20",
|
"@jambonz/speech-utils": "^0.1.20",
|
||||||
"@jambonz/stats-collector": "^0.1.10",
|
"@jambonz/stats-collector": "^0.1.10",
|
||||||
"@jambonz/time-series": "^0.2.9",
|
"@jambonz/time-series": "^0.2.13",
|
||||||
"@jambonz/verb-specifications": "^0.0.91",
|
"@jambonz/verb-specifications": "^0.0.91",
|
||||||
"@opentelemetry/api": "^1.8.0",
|
"@opentelemetry/api": "^1.8.0",
|
||||||
"@opentelemetry/exporter-jaeger": "^1.23.0",
|
"@opentelemetry/exporter-jaeger": "^1.23.0",
|
||||||
@@ -1568,9 +1568,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@jambonz/time-series": {
|
"node_modules/@jambonz/time-series": {
|
||||||
"version": "0.2.9",
|
"version": "0.2.13",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/time-series/-/time-series-0.2.9.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/time-series/-/time-series-0.2.13.tgz",
|
||||||
"integrity": "sha512-+/Oal0mjjV4iQ8q0ymtvVJP+GqgGpYUb2bc/FD/xDxOzKtl340l9yoM3oczREJg5IvEkpExz6NogJzUiCSeVnQ==",
|
"integrity": "sha512-Kj+l+YUnI27zZA4qoPRzjN7L82W7GuMXYq9ttDjXQ0ZBIdOLAzJjB6R3jJ3b+mvoNEQ6qG5MUtfoc6CpTFH5lw==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.3.1",
|
"debug": "^4.3.1",
|
||||||
"influx": "^5.9.3"
|
"influx": "^5.9.3"
|
||||||
@@ -10665,9 +10666,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jambonz/time-series": {
|
"@jambonz/time-series": {
|
||||||
"version": "0.2.9",
|
"version": "0.2.13",
|
||||||
"resolved": "https://registry.npmjs.org/@jambonz/time-series/-/time-series-0.2.9.tgz",
|
"resolved": "https://registry.npmjs.org/@jambonz/time-series/-/time-series-0.2.13.tgz",
|
||||||
"integrity": "sha512-+/Oal0mjjV4iQ8q0ymtvVJP+GqgGpYUb2bc/FD/xDxOzKtl340l9yoM3oczREJg5IvEkpExz6NogJzUiCSeVnQ==",
|
"integrity": "sha512-Kj+l+YUnI27zZA4qoPRzjN7L82W7GuMXYq9ttDjXQ0ZBIdOLAzJjB6R3jJ3b+mvoNEQ6qG5MUtfoc6CpTFH5lw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"debug": "^4.3.1",
|
"debug": "^4.3.1",
|
||||||
"influx": "^5.9.3"
|
"influx": "^5.9.3"
|
||||||
|
|||||||
Reference in New Issue
Block a user