Skip to content

Commit

Permalink
add timeLimit to REST:Dial & test
Browse files Browse the repository at this point in the history
also added timeLimit to the dial verb test
  • Loading branch information
sammachin committed Dec 30, 2024
1 parent 900d517 commit ea7e723
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@
"amd": "#amd",
"dual_streams": "boolean",
"sipRequestWithinDialogHook": "string",
"referHook": "object|string"
"referHook": "object|string",
"timeLimit": "number"
},
"required": [
"call_hook",
Expand Down
4 changes: 3 additions & 1 deletion test/jambonz-verb-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ test("validate correct verbs", async (t) => {
"callerName": "Tom",
"answerOnBridge": true,
"dtmfCapture": ["*2", "*3"],
"timeLimit": 10,
"dtmfHook": {
"url": "/dtmf",
"method": "GET"
Expand Down Expand Up @@ -518,7 +519,8 @@ test("validate correct verbs", async (t) => {
"actionHook": "/answeringMachineDetection",

},
"dual_streams": true
"dual_streams": true,
"timeLimit" : 10
}
];
try {
Expand Down

0 comments on commit ea7e723

Please sign in to comment.