Merge pull request #12 from jambonz/feat/advanced_queue

feat: enqueue dequeue priority and callSid
This commit is contained in:
Dave Horton
2023-05-28 21:55:35 -04:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -89,7 +89,8 @@
"name": "string",
"actionHook": "object|string",
"timeout": "number",
"beep": "boolean"
"beep": "boolean",
"callSid": "string"
},
"required": [
"name"
@@ -101,6 +102,7 @@
"name": "string",
"actionHook": "object|string",
"waitHook": "object|string",
"priority": "number",
"_": "object"
},
"required": [

View File

@@ -40,7 +40,8 @@ test("validate correct verbs", async (t) => {
"verb": "dequeue",
"name": "support",
"beep": true,
"timeout": 60
"timeout": 60,
"callSid": "call_sid1234"
},
{
"verb": "dial",
@@ -95,7 +96,8 @@ test("validate correct verbs", async (t) => {
"verb": "enqueue",
"name": "support",
"actionHook": "/queue-action",
"waitHook": "/queue-wait"
"waitHook": "/queue-wait",
"priority": 50
},
{
"verb": "gather",