mirror of
https://github.com/Jeuners/Logpy-AgentOne.git
synced 2026-09-09 15:02:33 +02:00
fix: FS_PORT konfigurierbar statt hardcoded, DECK_STAPEL-Quoting, Test-Audios
pipe/server.py rief fs_cli mit fest verdrahtetem Port 8099 auf (Wert vom Ursprungsrechner) statt den Wert aus der Config zu lesen - auf einer Maschine mit abweichendem Event-Socket-Port (hier 8022) zeigte der Leitstand "Telefon: unklar", obwohl der Trunk laengst registriert war. Neue FS_PORT-Variable in pipe/config.py (Default 8021, wie starten.sh es ueber die .env erwartet). DECK_STAPEL in .env.example war unquotiert - das Leerzeichen in "In Bearbeitung" bricht das `source .env` in telefon/freeswitch/einrichten.sh (bash interpretiert es als zweites Kommando). Wert jetzt in Anführungszeichen. test/erzeuge_beispiele.sh erzeugt die im README/MITGABE referenzierten Test-Anrufe (rezept/termin/notfall) lokal per macOS "say" - vorher liefen die Beispielbefehle aus einem frischen Klon ins Leere, weil test/*.wav bewusst gitignoriert ist. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PuP3zfgYqhnrwyEne2ejG7
This commit is contained in:
parent
da50567d54
commit
a089ffe4d6
4 changed files with 38 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ def _trunk() -> tuple[str, str]:
|
|||
return "aus", "FreeSWITCH läuft nicht"
|
||||
try:
|
||||
roh = subprocess.run(
|
||||
["fs_cli", "-P", "8099", "-x", "sofia status gateway plusnet"],
|
||||
["fs_cli", "-P", config.FS_PORT, "-x", "sofia status gateway plusnet"],
|
||||
capture_output=True, text=True, timeout=8).stdout
|
||||
for zeile in roh.splitlines():
|
||||
if zeile.startswith("Status"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue