From ca7635a7a5ea93b468c3da8a8f5893b24ef28af9 Mon Sep 17 00:00:00 2001 From: Rhea Danzey Date: Tue, 14 Nov 2023 11:11:13 -0600 Subject: [PATCH] Re-add mistakenly removed call-status-checks settings Signed-off-by: Rhea Danzey --- jibri/rootfs/defaults/jibri.conf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/jibri/rootfs/defaults/jibri.conf b/jibri/rootfs/defaults/jibri.conf index 5881d01bb9..59d2aeac89 100644 --- a/jibri/rootfs/defaults/jibri.conf +++ b/jibri/rootfs/defaults/jibri.conf @@ -150,4 +150,31 @@ jibri { port = {{ $STATSD_PORT }} } {{ end -}} + + call-status-checks { + {{ if .Env.NO_MEDIA_TIMEOUT -}} + // If all clients have their audio and video muted and if Jibri does not + // detect any data stream (audio or video) comming in, it will stop + // recording after NO_MEDIA_TIMEOUT expires. + no-media-timeout = {{ .Env.NO_MEDIA_TIMEOUT }} + {{ end -}} + + {{ if .Env.ALL_MUTED_TIMEOUT -}} + // If all clients have their audio and video muted, Jibri consideres this + // as an empty call and stops the recording after ALL_MUTED_TIMEOUT expires. + all-muted-timeout = {{ .Env.ALL_MUTED_TIMEOUT }} + {{ end -}} + + {{ if .Env.DEFAULT_CALL_EMPTY_TIMEOUT -}} + // When detecting if a call is empty, Jibri takes into consideration for how + // long the call has been empty already. If it has been empty for more than + // DEFAULT_CALL_EMPTY_TIMEOUT, it will consider it empty and stop the recording. + default-call-empty-timeout = {{ .Env.DEFAULT_CALL_EMPTY_TIMEOUT }} + {{ end -}} + + {{ if .Env.ICE_CONNECTION_TIMEOUT -}} + // If ICE hasn't completed, or stays in a state other than "connected" for this amount of time, Jibri will stop. + ice-connection-timeout = {{ .Env.ICE_CONNECTION_TIMEOUT }} + {{ end -}} + } }