From 0c0d3f1fc59ac82d2746f651d6395e57a1594260 Mon Sep 17 00:00:00 2001 From: emrah Date: Fri, 1 Mar 2024 18:11:57 +0300 Subject: [PATCH] scripts, feat: recording-stop.sh --- .../recording-stop.sh | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 scripts/jitsi-component-selector/recording-stop.sh diff --git a/scripts/jitsi-component-selector/recording-stop.sh b/scripts/jitsi-component-selector/recording-stop.sh new file mode 100644 index 0000000..ac991bd --- /dev/null +++ b/scripts/jitsi-component-selector/recording-stop.sh @@ -0,0 +1,52 @@ +#!/usr/bin/bash +set -e + +# ----------------------------------------------------------------------------- +# Packages: +# apt-get install curl +# +# Usage: +# export SELECTOR_HOST="http://172.17.17.1:8015" +# export JITSI_HOST="https://jitsi.mydomain.corp" +# export JITSI_ROOM="myroom" +# export PRIVATE_KEY_FILE="/some-path/asap-signal.key" +# +# bash recording-stop.sh +# ------------------------------------------------------------------------------ +[[ -z "$PRIVATE_KEY_FILE" ]] && \ + PRIVATE_KEY_FILE="../../files/asap/asap.key" || \ + true + +SESSION_ID="$1" + +JSON=$(cat <