From 86627e3b2f55a4d99f0cfd4b4298d064b827889c Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 22 Jun 2022 15:55:52 -0400 Subject: [PATCH] add support for maniupulating recording via REST API --- lib/session/call-session.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 2c73359e..e3b28da7 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -868,6 +868,9 @@ class CallSession extends Emitter { const res = await this._lccSipRequest(opts, callSid); return {status: res.status, reason: res.reason}; } + else if (opts.record) { + await this.notifyRecordOptions(opts.record); + } // whisper may be the only thing we are asked to do, or it may that // we are doing a whisper after having muted, paused reccording etc..