Commit Graph

22 Commits

Author SHA1 Message Date
c0f0ea8158 Fix browser phone client name to be alphanumeric only
- Removed underscores and hyphens from client name generation
- Using preg_replace to strip all non-alphanumeric characters
- Twilio requires client names to contain only alphanumeric characters

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-13 10:15:39 -07:00
140a585085 Fix browser phone permission issues for phone agents
- Fixed error message display when browser phone initialization fails (now shows actual error instead of "undefined")
- Fixed ajax_get_phone_numbers to use wp_send_json_error instead of wp_die for proper error handling
- Added error handling for phone numbers loading in browser phone interface
- Updated phone_agent role to ensure all necessary capabilities are added to existing roles
- Added automatic capability updates for existing phone_agent roles on plugin load

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-13 10:14:20 -07:00
7beb0aa4f3 Fix voicemail and queue announcement issues
- Fixed phone agents getting 'Unauthorized' error when accessing voicemails by checking for twp_access_voicemails capability
- Fixed missing ElevenLabs parameter in queue TwiML generation that prevented announcement messages
- Fixed IVR voicemail messages not being saved correctly - now properly assigns message field based on action type
- Added proper permission checks for both ajax_get_voicemail and ajax_get_voicemail_audio functions

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-13 10:04:20 -07:00
7a539df27a Fix voicemail access and ElevenLabs voice loading issues
- Changed create_voicemail_twiml() from private to public method to fix fatal error when accessing voicemail from IVR
- Added auto-loading of ElevenLabs voices when switching to TTS option for new workflow steps
- Voices now load automatically when user selects "Use Text-to-Speech" radio button

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-13 09:47:10 -07:00
a5f6ab8b64 testing progress 2025-08-12 14:46:30 -07:00
f6429110e5 testing progress 2025-08-12 10:36:32 -07:00
1633eb46df testing progress 2025-08-12 10:04:31 -07:00
2d6767033b testing progress 2025-08-12 09:54:32 -07:00
e18e046431 testing progress 2025-08-12 09:12:54 -07:00
75fae0fbdb testing progress 2025-08-12 07:26:19 -07:00
003015a4b1 testing progress 2025-08-12 07:22:45 -07:00
39eb3b96b5 testing progress 2025-08-12 07:21:20 -07:00
2d8420c7a2 testing progress 2025-08-12 07:18:25 -07:00
b3ca14a151 testing progress 2025-08-12 07:11:13 -07:00
86a57b3285 testing progress 2025-08-12 07:10:12 -07:00
51dd3077d2 testing progress 2025-08-12 07:05:47 -07:00
304b5de40b progress made 2025-08-11 20:31:48 -07:00
805af2f199 Fix Number display 2025-08-07 16:46:51 -07:00
3b499e2074 code push 2025-08-07 15:24:29 -07:00
b5e091d845 twilio project revision 2025-08-06 16:04:03 -07:00
c6edbbeba7 code revision 2025-08-06 15:25:47 -07:00
fc220beeac Initial commit 2025-08-06 14:34:35 +00:00