mirror of
https://github.com/jambonz/jambonz-node.git
synced 2026-10-30 07:04:26 +00:00
allow 200 response to client.calls.update
This commit is contained in:
1 parent
b88e697d61
commit
847c3a4571
4 files changed
+6
-5
No files matched your search
+3
-2
@@ -85,8 +85,9 @@ const validateCallUpdate = (opts) => {
|
||||
sip_request
|
||||
} = opts;
|
||||
|
||||
assert.ok(call_hook || child_call_hook || call_status || listen_status || mute_status || whisper || conf_hold_status,
|
||||
`calls.update: invalid request ${JSON.stringify(opts)}`);
|
||||
assert.ok(call_hook || child_call_hook || call_status ||
|
||||
listen_status || mute_status || whisper ||
|
||||
conf_hold_status || sip_request, `calls.update: invalid request ${JSON.stringify(opts)}`);
|
||||
|
||||
if (call_status) assert.ok(['completed', 'no-answer'].includes(call_status),
|
||||
`invalid call_status: ${call_status}, must be 'completed' or 'no-answer'`);
|
||||
|
||||
Reference in new issue
Block a user