further fix for conf_hold_status

This commit is contained in:
Dave Horton
2021-09-20 15:26:18 -04:00
parent 42f9380229
commit 1bd8a4d214
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ function validate(name, data) {
const validateCallUpdate = (opts) => {
const {call_hook, child_call_hook, call_status, listen_status, mute_status, whisper, conf_hold_status} = opts;
assert.ok(call_hook || child_call_hook || call_status || listen_status || mute_status || whisper,
assert.ok(call_hook || child_call_hook || call_status || listen_status || mute_status || whisper || conf_hold_status,
`calls.update: invalid request ${JSON.stringify(opts)}`);
if (call_status) assert.ok(['completed', 'no-answer'].includes(call_status),
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@jambonz/node-client",
"version": "0.2.2",
"version": "0.2.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@jambonz/node-client",
"version": "0.2.2",
"version": "0.2.8",
"license": "MIT",
"dependencies": {
"bent": "^7.3.12",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@jambonz/node-client",
"version": "0.2.7",
"version": "0.2.8",
"description": "",
"main": "lib/index.js",
"scripts": {