Compare commits

...

11 Commits

Author SHA1 Message Date
Quan HL
c85cb7e67e feat: enqueue dequeue priority and callSid 2023-05-29 07:09:00 +07:00
Dave Horton
8ccb13f962 0.0.22 2023-05-09 11:48:09 -04:00
Dave Horton
044ce2d4bb add synthesizer.options 2023-05-09 11:48:00 -04:00
Dave Horton
b483e04611 0.0.21 2023-05-08 09:47:01 -04:00
Dave Horton
c1032638b2 config: add support for resetting recognizer and/or synthesizer to application defaults 2023-05-08 09:46:45 -04:00
Dave Horton
72225385ae 0.0.20 2023-05-07 08:41:52 -04:00
Dave Horton
6ad9d2bce0 Merge pull request #11 from jambonz/feat/rest_dial_amd
rest:dial amd
2023-05-07 08:41:37 -04:00
Quan HL
045df8a9fe rest:dial amd 2023-05-07 19:40:28 +07:00
Dave Horton
f3ede17b80 0.0.19 2023-05-07 08:31:16 -04:00
Dave Horton
2551dbe18e Merge pull request #10 from jambonz/feat/remove_metadata
fix: remove metadata in rest:dial
2023-05-07 08:31:02 -04:00
Quan HL
f4a887a67a fix: remove metadata in rest:dial 2023-05-07 19:30:17 +07:00
4 changed files with 32 additions and 22 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@jambonz/verb-specifications",
"version": "0.0.18",
"version": "0.0.22",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@jambonz/verb-specifications",
"version": "0.0.18",
"version": "0.0.22",
"license": "MIT",
"dependencies": {
"debug": "^4.3.4",

View File

@@ -1,6 +1,6 @@
{
"name": "@jambonz/verb-specifications",
"version": "0.0.18",
"version": "0.0.22",
"description": "Jambonz Verb Specification Utilities",
"main": "index.js",
"scripts": {

View File

@@ -44,7 +44,8 @@
"record": "#recordOptions",
"listen": "#listenOptions",
"amd": "#amd",
"notifyEvents": "boolean"
"notifyEvents": "boolean",
"reset": "string|array"
},
"required": []
},
@@ -88,7 +89,8 @@
"name": "string",
"actionHook": "object|string",
"timeout": "number",
"beep": "boolean"
"beep": "boolean",
"callSid": "string"
},
"required": [
"name"
@@ -100,6 +102,7 @@
"name": "string",
"actionHook": "object|string",
"waitHook": "object|string",
"priority": "number",
"_": "object"
},
"required": [
@@ -395,7 +398,7 @@
"to": "#target",
"headers": "object",
"timeout": "number",
"metadata": "object"
"amd": "#amd"
},
"required": [
"call_hook",
@@ -479,7 +482,8 @@
"gender": {
"type": "string",
"enum": ["MALE", "FEMALE", "NEUTRAL"]
}
},
"options": "object"
},
"required": [
"vendor"

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",
@@ -261,21 +263,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",
},
metadata: {
customer: "acme",
referenceId: "deadbeef",
"tag": {
"customer": "acme",
"referenceId": "deadbeef",
},
"amd": {
"actionHook": "/answeringMachineDetection",
}
}
];