further fix for conf_hold_status

This commit is contained in:
Dave Horton committed 2021-09-20 15:26:18 -04:00
1 parent 42f9380229
commit 1bd8a4d214
3 files changed
+4 -4

No files matched your search

+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),