Skip to content

Commit

Permalink
Merge pull request #20 from jambonz/feat/dub
Browse files Browse the repository at this point in the history
support update call for dub request
  • Loading branch information
davehorton authored Nov 14, 2024
2 parents e520302 + 71d47fe commit 02f84d0
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 02f84d0

Please sign in to comment.