mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-03-22 03:08:13 +00:00
allow startrecording without siprec url for cloud (#530)
* allow startrecording without siprecm url for cloud * update dependencies
This commit is contained in:
@@ -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