mirror of
https://github.com/jambonz/jambonz-node.git
synced 2026-10-25 12:44:19 +00:00
add support for verifying jambonz signature
This commit is contained in:
1 parent
93b29f51d8
commit
64fd092ae5
4 files changed
+30
-8
No files matched your search
+2
-2
@@ -74,9 +74,9 @@ function validate(name, data) {
|
||||
* Validate the payload for an updateCall request
|
||||
*/
|
||||
const validateCallUpdate = (opts) => {
|
||||
const {call_hook, call_status, listen_status, mute_status, whisper} = opts;
|
||||
const {call_hook, child_call_hook, call_status, listen_status, mute_status, whisper} = opts;
|
||||
|
||||
assert.ok(call_hook || call_status || listen_status || mute_status || whisper,
|
||||
assert.ok(call_hook || child_call_hook || call_status || listen_status || mute_status || whisper,
|
||||
`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