diff --git a/lib/utils.js b/lib/utils.js index 38fd0bb..cc97b10 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -15,11 +15,12 @@ const validateCallUpdate = (opts) => { mute_status, whisper, conf_hold_status, - sip_request + sip_request, + dub } = opts; assert.ok(call_hook || child_call_hook || call_status || - listen_status || mute_status || whisper || + listen_status || mute_status || whisper || dub || conf_hold_status || sip_request, `calls.update: invalid request ${JSON.stringify(opts)}`); if (call_status) assert.ok(['completed', 'no-answer'].includes(call_status),