clawdnode-gateway/watch-calls.sh

11 lines
265 B
Bash
Executable File

#!/bin/bash
LAST_CALL=""
while true; do
CALL=$(grep -o "INCOMING.*CallID.*" /tmp/clawdnode-gateway.log 2>/dev/null | tail -1)
if [ -n "$CALL" ] && [ "$CALL" != "$LAST_CALL" ]; then
echo "🚨 $CALL"
LAST_CALL="$CALL"
fi
sleep 1
done