feat: start mumble client

This commit is contained in:
2026-04-13 14:34:51 +02:00
parent 0ead61c06e
commit 0da5a9b9a6
2 changed files with 5 additions and 2 deletions

View File

@@ -11,8 +11,8 @@ OP_OK = 'OK'.encode()
OP_ERROR = 'ERROR'.encode()
def exec_mumble(deaf: bool):
subprocess.run(['mumble', 'rpc', 'deaf' if deaf else 'undeaf'])
subprocess.run(['mumble', 'rpc', 'mute' if deaf else 'unmute'])
subprocess.run(['xvfb-run', 'mumble', 'rpc', 'deaf' if deaf else 'undeaf'])
subprocess.run(['xvfb-run', 'mumble', 'rpc', 'mute' if deaf else 'unmute'])
def deaf_mumble():
exec_mumble(True)

View File

@@ -5,6 +5,7 @@ from threading import Thread
import socket
import yaml
import time
import subprocess
from call_manager import CallManager, NO_CALL, INCOMING_CALL, OUTGOING_CALL, OP_CALL, OP_HANG, OP_PING, OP_OK, OP_ERROR
@@ -73,6 +74,8 @@ def check_status(station):
s.close()
time.sleep(CHECK_STATUS_INTERVAL)
# Start mumble client
subprocess.run(['xvfb-run', 'mumble', 'mumble://uli@miki'])
# Start thread to wait for incoming hang petitions.
thread_listen = Thread(target=listen, args=(callManager,))