Skip to content

Commit

Permalink
jigasi: skip SIP configuration when configured as a transcriber
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Mar 19, 2024
1 parent ca1d670 commit 0953ca0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jigasi/rootfs/defaults/sip-communicator.properties
@@ -1,3 +1,4 @@
{{ $ENABLE_TRANSCRIPTIONS := .Env.ENABLE_TRANSCRIPTIONS | default "0" | toBool -}}
{{ $JIGASI_BREWERY_MUC := .Env.JIGASI_BREWERY_MUC | default "jigasibrewery" -}}
{{ $JIGASI_XMPP_USER := .Env.JIGASI_XMPP_USER | default "jigasi" -}}
{{ $XMPP_AUTH_DOMAIN := .Env.XMPP_AUTH_DOMAIN | default "auth.meet.jitsi" -}}
Expand All @@ -24,6 +25,7 @@ net.java.sip.communicator.packetlogging.PACKET_LOGGING_ENABLED=false
# Control REST Shutdown
org.jitsi.jigasi.ENABLE_REST_SHUTDOWN={{ $SHUTDOWN_REST_ENABLED }}

{{ if not $ENABLE_TRANSCRIPTIONS -}}
# SIP account
net.java.sip.communicator.impl.protocol.sip.acc1=acc1
{{ if .Env.JIGASI_SIP_SERVER }}
Expand Down Expand Up @@ -77,6 +79,7 @@ net.java.sip.communicator.impl.protocol.sip.acc1.Encodings.telephone-event/8000=
net.java.sip.communicator.impl.protocol.sip.acc1.Encodings.ulpfec/90000=0
net.java.sip.communicator.impl.protocol.sip.acc1.OVERRIDE_ENCODINGS=true
net.java.sip.communicator.impl.protocol.sip.acc1.DOMAIN_BASE={{ $XMPP_DOMAIN }}
{{ end -}}

# XMPP account used for control

Expand Down Expand Up @@ -156,7 +159,7 @@ org.jitsi.jigasi.xmpp.acc.ALLOW_NON_SECURE=true
# remote certificates always.
net.java.sip.communicator.service.gui.ALWAYS_TRUST_MODE_ENABLED=true

{{ if .Env.ENABLE_TRANSCRIPTIONS | default "0" | toBool }}
{{ if $ENABLE_TRANSCRIPTIONS -}}
# Transcription config
org.jitsi.jigasi.ENABLE_TRANSCRIPTION=true
org.jitsi.jigasi.transcription.ENABLE_TRANSLATION=true
Expand All @@ -170,7 +173,7 @@ org.jitsi.jigasi.transcription.SAVE_TXT=true
org.jitsi.jigasi.transcription.SEND_TXT={{ .Env.JIGASI_TRANSCRIBER_SEND_TXT | default "false"}}
org.jitsi.jigasi.transcription.RECORD_AUDIO={{ .Env.JIGASI_TRANSCRIBER_RECORD_AUDIO | default "false"}}
org.jitsi.jigasi.transcription.RECORD_AUDIO_FORMAT=wav
{{end}}
{{ end -}}

{{ if .Env.JIGASI_SIP_DEFAULT_ROOM }}
org.jitsi.jigasi.DEFAULT_JVB_ROOM_NAME={{ .Env.JIGASI_SIP_DEFAULT_ROOM }}
Expand Down

0 comments on commit 0953ca0

Please sign in to comment.