Skip to content

Commit

Permalink
support update call for dub request
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Nov 14, 2024
1 parent e520302 commit 71d47fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 71d47fe

Please sign in to comment.