docs: add Starface Modulcreator guide and webhook test script
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Test-Script für Starface Busylight Webhook-Integration
|
||||
# Simuliert Anruf-Events für alle konfigurierten Durchwahlen
|
||||
|
||||
BUSYLIGHT="http://100.95.224.14:8081"
|
||||
|
||||
echo "=== Busylight Starface Webhook Test ==="
|
||||
echo ""
|
||||
|
||||
# API Info prüfen
|
||||
echo "1. Busylight API erreichbar?"
|
||||
curl -s "$BUSYLIGHT/" | head -3
|
||||
echo ""
|
||||
|
||||
# Durchwahl zum Testen (anpassen!)
|
||||
DW="${1:-222}"
|
||||
echo "2. Test mit Durchwahl: $DW"
|
||||
echo ""
|
||||
|
||||
echo " → Sende callstart..."
|
||||
RESULT=$(curl -s "$BUSYLIGHT/$DW/callstart")
|
||||
echo " ← $RESULT"
|
||||
echo ""
|
||||
|
||||
echo " Warte 5 Sekunden (Türschild sollte jetzt ROT sein)..."
|
||||
sleep 5
|
||||
|
||||
echo " → Sende callend..."
|
||||
RESULT=$(curl -s "$BUSYLIGHT/$DW/callend")
|
||||
echo " ← $RESULT"
|
||||
echo ""
|
||||
|
||||
echo "3. Fertig! Türschild sollte jetzt zurück auf Zeiterfassungs-Status sein."
|
||||
echo ""
|
||||
echo "Verwendung: $0 [durchwahl]"
|
||||
echo "Beispiel: $0 210 (Test mit Durchwahl 210)"
|
||||
Reference in New Issue
Block a user