add timeLimit to REST:Dial & test (#78)

also added timeLimit to the dial verb test
This commit is contained in:
Sam Machin
2024-12-30 19:23:32 +00:00
committed by GitHub
parent 900d517b8a
commit 4b79b1408b
2 changed files with 5 additions and 2 deletions

View File

@@ -519,7 +519,8 @@
"amd": "#amd",
"dual_streams": "boolean",
"sipRequestWithinDialogHook": "string",
"referHook": "object|string"
"referHook": "object|string",
"timeLimit": "number"
},
"required": [
"call_hook",

View File

@@ -139,6 +139,7 @@ test("validate correct verbs", async (t) => {
"callerName": "Tom",
"answerOnBridge": true,
"dtmfCapture": ["*2", "*3"],
"timeLimit": 10,
"dtmfHook": {
"url": "/dtmf",
"method": "GET"
@@ -518,7 +519,8 @@ test("validate correct verbs", async (t) => {
"actionHook": "/answeringMachineDetection",
},
"dual_streams": true
"dual_streams": true,
"timeLimit" : 10
}
];
try {