From da4b8c190df170e215606e197c58cf815296e0b6 Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Tue, 30 Dec 2025 11:35:40 +0000 Subject: [PATCH] allow startrecording without siprecm url for cloud --- lib/routes/api/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/api/accounts.js b/lib/routes/api/accounts.js index 0683b43..48ddcd6 100644 --- a/lib/routes/api/accounts.js +++ b/lib/routes/api/accounts.js @@ -344,7 +344,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)) {