Compare commits

..

25 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
Dave Horton
874abac5e3 0.0.18 2023-05-06 21:12:49 -04:00
Dave Horton
827ddcebf0 Merge pull request #9 from jambonz/feat/metadata
feat: add rest:dial metadata
2023-05-06 21:11:56 -04:00
Quan HL
98043693be feat: add rest:dial metadata 2023-05-07 06:39:35 +07:00
Dave Horton
436c8e1861 0.0.17 2023-04-28 07:39:08 -04:00
Dave Horton
21214eb2ce Merge pull request #8 from jambonz/feat/deepgram_endpointing
deepgram: endpointing support number
2023-04-28 07:38:15 -04:00
Quan HL
017b8cd0c3 deepgram: endpointing support number 2023-04-28 11:32:15 +07:00
Dave Horton
8ae7419b7a 0.0.16 2023-04-13 13:13:53 -04:00
Dave Horton
11c34aa6fc dont restrict deepgram tier 2023-04-13 13:13:43 -04:00
Dave Horton
5548a67412 0.0.15 2023-04-13 13:05:09 -04:00
Dave Horton
8f89bac676 dont restrict deepgram models 2023-04-13 13:05:05 -04:00
Dave Horton
146f691890 bump version 2023-04-11 20:18:12 -04:00
Dave Horton
283512e765 Merge pull request #6 from jambonz/feat/dial_caller_name
feat: update callerName to dial
2023-04-11 20:17:27 -04:00
Quan HL
d7219b990b feat: update callerName to rest 2023-04-12 06:38:16 +07:00
Quan HL
68b3c7de01 feat: update callerName to dial 2023-04-12 06:30:29 +07:00
5 changed files with 69 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2023 jambonz
Copyright (c) 2023 Drachtio Communications Services, LLC.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

4
package-lock.json generated
View File

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

View File

@@ -1,6 +1,6 @@
{
"name": "@jambonz/verb-specifications",
"version": "0.0.12",
"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": [
@@ -196,6 +199,7 @@
"actionHook": "object|string",
"answerOnBridge": "boolean",
"callerId": "string",
"callerName": "string",
"confirmHook": "object|string",
"referHook": "object|string",
"dialMusic": "string",
@@ -383,6 +387,7 @@
"call_hook": "object|string",
"call_status_hook": "object|string",
"from": "string",
"callerName": "string",
"fromHost": "string",
"speech_synthesis_vendor": "string",
"speech_synthesis_voice": "string",
@@ -392,7 +397,8 @@
"tag": "object",
"to": "#target",
"headers": "object",
"timeout": "number"
"timeout": "number",
"amd": "#amd"
},
"required": [
"call_hook",
@@ -476,7 +482,8 @@
"gender": {
"type": "string",
"enum": ["MALE", "FEMALE", "NEUTRAL"]
}
},
"options": "object"
},
"required": [
"vendor"
@@ -601,26 +608,8 @@
"deepgramOptions": {
"properties": {
"apiKey": "string",
"tier": {
"type": "string",
"enum": [
"enhanced",
"base"
]
},
"model": {
"type": "string",
"enum": [
"general",
"meeting",
"phonecall",
"voicemail",
"finance",
"conversationalai",
"video",
"custom"
]
},
"tier": "string",
"model": "string",
"customModel": "string",
"version": "string",
"punctuate": "boolean",
@@ -643,7 +632,7 @@
"search": "array",
"replace": "array",
"keywords": "array",
"endpointing": "boolean",
"endpointing": "boolean | number",
"vadTurnoff": "number",
"tag": "string"
}

View File

@@ -40,12 +40,14 @@ test("validate correct verbs", async (t) => {
"verb": "dequeue",
"name": "support",
"beep": true,
"timeout": 60
"timeout": 60,
"callSid": "call_sid1234"
},
{
"verb": "dial",
"actionHook": "/outdial",
"callerId": "+16173331212",
"callerName": "Tom",
"answerOnBridge": true,
"dtmfCapture": ["*2", "*3"],
"dtmfHook": {
@@ -94,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",
@@ -109,7 +112,10 @@ test("validate correct verbs", async (t) => {
"vendor": "google",
"language": "en-US",
"hints": ["sales", "support"],
"hintsBoost": 10
"hintsBoost": 10,
"deepgramOptions": {
"endpointing": 500
}
},
"say": {
"text": "To speak to Sales press 1 or say Sales. To speak to customer support press 2 or say Support",
@@ -119,6 +125,25 @@ test("validate correct verbs", async (t) => {
}
}
},
{
"verb": "gather",
"actionHook": "http://example.com/collect",
"input": ["digits", "speech"],
"bargein": true,
"dtmfBargein": true,
"finishOnKey": "#",
"numDigits": 5,
"timeout": 8,
"recognizer": {
"vendor": "google",
"language": "en-US",
"hints": ["sales", "support"],
"hintsBoost": 10,
"deepgramOptions": {
"endpointing": true
}
},
},
{
"verb": "hangup",
"headers": {
@@ -235,6 +260,29 @@ test("validate correct verbs", async (t) => {
"language" : "en-US",
"interim": true
}
},
{
"verb": "rest:dial",
"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",
},
"tag": {
"customer": "acme",
"referenceId": "deadbeef",
},
"amd": {
"actionHook": "/answeringMachineDetection",
}
}
];
try {