rest:dial amd

This commit is contained in:
Quan HL
2023-05-07 19:40:28 +07:00
parent f3ede17b80
commit 045df8a9fe
2 changed files with 19 additions and 14 deletions
+2 -1
View File
@@ -394,7 +394,8 @@
"tag": "object",
"to": "#target",
"headers": "object",
"timeout": "number"
"timeout": "number",
"amd": "#amd"
},
"required": [
"call_hook",
+17 -13
View File
@@ -261,21 +261,25 @@ test("validate correct verbs", async (t) => {
},
{
"verb": "rest:dial",
account_sid: "1291964182631236912836123912",
call_hook: {
url: "http://127.0.0.1:3100/",
method: "POST",
username: "username",
password: "password",
"account_sid": "1291964182631236912836123912",
"call_hook": {
"url": "http://127.0.0.1:3100/",
"method": "POST",
"username": "username",
"password": "password",
},
from: "15583084810",
to: {
type: "phone",
number: "15583084809",
"from": "15583084810",
"to": {
"type": "phone",
"number": "15583084809",
},
tag: {
customer: "acme",
referenceId: "deadbeef",
"tag": {
"customer": "acme",
"referenceId": "deadbeef",
},
"amd": {
"actionHook": "/answeringMachineDetection",
}
}
];