Bug Fixes: - Extra button now plays sound completely (was stopping immediately) - Added check_hook_status parameter to play_sound_file() - Button sounds play with check_hook_status=False (always complete) - Greeting sounds play with check_hook_status=True (stop if hung up) Behavior Changes: - Extra button ONLY works when phone is on-hook (not in use) - Prevents button from interfering with active calls - Clear console message when button pressed during call - Sound plays completely without hook status interruption Technical Details: - Modified play_sound_file() to accept check_hook_status parameter - Changed while loop condition from "and" to conditional break - Added on-hook check in play_extra_button_sound() - Greeting playback still stops if handset hung up mid-message This ensures: ✓ Button sounds always play completely ✓ Button only works when phone not in use ✓ Greeting playback can still be interrupted by hanging up ✓ No audio conflicts between button and phone calls 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
51 KiB
51 KiB