mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-28 10:24:12 +00:00
allow startrecording without siprec url for cloud (#530)
* allow startrecording without siprecm url for cloud * update dependencies
This commit is contained in:
1 parent
bc26651cdb
commit
f5fa3bdffb
3 files changed
+30
-15
No files matched your search
@@ -354,7 +354,7 @@ function validateUpdateCall(opts) {
|
||||
if (opts.dtmf && !opts.dtmf.digit) {
|
||||
throw new DbErrorBadRequest('invalid dtmf');
|
||||
}
|
||||
if ('startCallRecording' === opts.record?.action && !opts.record.siprecServerURL) {
|
||||
if (opts.record?.action && !opts.record.siprecServerURL && (!opts.record.type || opts.record.type !== 'cloud')) {
|
||||
throw new DbErrorBadRequest('record requires siprecServerURL property when starting recording');
|
||||
}
|
||||
if (opts.tag && (typeof opts.tag !== 'object' || Array.isArray(opts.tag) || opts.tag === null)) {
|
||||
|
||||
Reference in new issue
Block a user