Recording Proxy Improvements: - Enhanced error handling to prevent JSON responses instead of audio - Added comprehensive logging for Twilio API calls - Added fallback URL construction from recording SID if URL missing - Improved error responses with proper HTTP headers Outbound Call Phone Number Detection: - Enhanced logic to find customer numbers in complex call structures - Added search through related calls to find customer phone numbers - Comprehensive logging for debugging outbound call number assignment - Handles cases where 'to' field might be empty or contain client identifiers These changes should resolve: 1. Recording playback returning JSON instead of audio files 2. Missing customer phone numbers in outbound call recordings 3. Better error reporting and debugging capabilities 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
356 KiB
356 KiB