Compare commits

...

21 Commits

Author SHA1 Message Date
Dave Horton
067a49bd2c 0.0.28 2023-08-15 18:17:33 -04:00
Dave Horton
4967efa745 Merge pull request #19 from jambonz/feat/moh_01
add onHoldHook to dial verb
2023-08-15 18:16:39 -04:00
Quan HL
61669e5574 add onHoldHook to dial verb 2023-08-16 05:01:34 +07:00
Dave Horton
e25ef7349e 0.0.27 2023-08-15 08:47:07 -04:00
Dave Horton
26f5609996 Merge pull request #18 from jambonz/fix/multi_speech_same_vendor
feat add label to synthesizer
2023-08-15 08:45:58 -04:00
Quan HL
1a1436b612 add label to recognizer 2023-08-15 09:14:33 +07:00
Quan HL
ba9a9f9b60 feat add label to synthesizer 2023-08-15 07:07:47 +07:00
Dave Horton
93c368e894 Merge pull request #17 from jambonz/feat/moh
feat: add onhold music to dial verb
2023-08-10 07:49:26 -04:00
Quan HL
185e4df06e obholdMusic for config verb 2023-08-10 13:56:10 +07:00
Quan HL
c22e8c9cf0 feat: add onhold music to dial verb 2023-07-25 17:56:28 +07:00
Dave Horton
1c3d86c807 0.0.26 2023-07-20 07:35:08 -04:00
Dave Horton
7e986acc17 Merge pull request #15 from jambonz/feat/siprec_custom_headers
feat confige record allow SIP custom headers
2023-07-20 07:34:29 -04:00
Quan HL
d5c535c02c feat confige record allow SIP custom headers 2023-07-20 15:12:10 +07:00
Dave Horton
6e819279d1 0.0.25 2023-06-19 06:45:03 +01:00
Dave Horton
24e73a4dc6 Merge pull request #13 from jambonz/feat/multi_srs
config with multiple siprecServerURL
2023-06-19 06:44:28 +01:00
Quan HL
cfd367f185 config with multiple siprecServerURL 2023-06-19 07:26:53 +07:00
Dave Horton
f472de9638 0.0.24 2023-06-02 12:53:12 -04:00
Dave Horton
45a2a039cd transcribe: recognizer is not required, but transcriptionHook is 2023-06-02 12:53:00 -04:00
Dave Horton
4a345633a3 0.0.23 2023-05-28 21:55:58 -04:00
Dave Horton
f14ff2e319 Merge pull request #12 from jambonz/feat/advanced_queue
feat: enqueue dequeue priority and callSid
2023-05-28 21:55:35 -04:00
Quan HL
c85cb7e67e feat: enqueue dequeue priority and callSid 2023-05-29 07:09:00 +07:00
4 changed files with 44 additions and 12 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@@ -45,7 +45,8 @@
"listen": "#listenOptions",
"amd": "#amd",
"notifyEvents": "boolean",
"reset": "string|array"
"reset": "string|array",
"onHoldMusic": "string"
},
"required": []
},
@@ -89,7 +90,8 @@
"name": "string",
"actionHook": "object|string",
"timeout": "number",
"beep": "boolean"
"beep": "boolean",
"callSid": "string"
},
"required": [
"name"
@@ -101,6 +103,7 @@
"name": "string",
"actionHook": "object|string",
"waitHook": "object|string",
"priority": "number",
"_": "object"
},
"required": [
@@ -195,6 +198,7 @@
"properties": {
"id": "string",
"actionHook": "object|string",
"onHoldHook": "object|string",
"answerOnBridge": "boolean",
"callerId": "string",
"callerName": "string",
@@ -362,7 +366,8 @@
"enum": ["startCallRecording", "stopCallRecording", "pauseCallRecording", "resumeCallRecording"]
},
"recordingID": "string",
"siprecServerURL": "string"
"siprecServerURL": "string|array",
"headers": "object"
},
"required": [
"action"
@@ -421,7 +426,7 @@
"earlyMedia": "boolean"
},
"required": [
"recognizer"
"transcriptionHook"
]
},
"target": {
@@ -471,6 +476,7 @@
"synthesizer": {
"properties": {
"vendor": "string",
"label": "string",
"language": "string",
"voice": "string",
"engine": {
@@ -490,6 +496,7 @@
"recognizer": {
"properties": {
"vendor": "string",
"label": "string",
"language": "string",
"vad": "#vad",
"hints": "array",

View File

@@ -24,27 +24,50 @@ test("validate correct verbs", async (t) => {
"verb": "config",
"synthesizer": {
"voice": "Jenny",
"vendor": "google"
"vendor": "google",
"label": "label1"
},
"recognizer": {
"vendor": "google",
"language": "de-DE"
"language": "de-DE",
"label": "label1"
},
"bargeIn": {
"enable": true,
"input" : ["speech"],
"actionHook": "/userInput"
},
"onHoldMusic": "http://server.com/hold"
},
{
"verb": "config",
"record": {
"action": "startCallRecording",
"siprecServerURL": ["sip:srs@recording.example.com","sip:srs@recording.example.com"],
"headers" : {
"X-Header1": "Value1",
"X-Header2": "Value2"
}
}
},
{
"verb": "config",
"record": {
"action": "startCallRecording",
"siprecServerURL": "sip:srs@recording.example.com"
}
},
{
"verb": "dequeue",
"name": "support",
"beep": true,
"timeout": 60
"timeout": 60,
"callSid": "call_sid1234"
},
{
"verb": "dial",
"actionHook": "/outdial",
"onHoldHook": "/onHoldHook",
"callerId": "+16173331212",
"callerName": "Tom",
"answerOnBridge": true,
@@ -95,7 +118,8 @@ test("validate correct verbs", async (t) => {
"verb": "enqueue",
"name": "support",
"actionHook": "/queue-action",
"waitHook": "/queue-wait"
"waitHook": "/queue-wait",
"priority": 50
},
{
"verb": "gather",
@@ -119,7 +143,8 @@ test("validate correct verbs", async (t) => {
"text": "To speak to Sales press 1 or say Sales. To speak to customer support press 2 or say Support",
"synthesizer": {
"vendor": "google",
"language": "en-US"
"language": "en-US",
"label": "label1"
}
}
},