mirror of
https://github.com/jambonz/jambonz-node.git
synced 2026-10-29 14:44:26 +00:00
further fix for conf_hold_status
This commit is contained in:
1 parent
42f9380229
commit
1bd8a4d214
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user