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>
This commit is contained in:
2025-08-13 09:47:10 -07:00
parent a5f6ab8b64
commit 7a539df27a
2 changed files with 10 additions and 1 deletions

View File

@@ -697,7 +697,7 @@ class TWP_Workflow {
/**
* Create voicemail TwiML
*/
private static function create_voicemail_twiml($step, $elevenlabs) {
public static function create_voicemail_twiml($step, $elevenlabs) {
$twiml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><Response></Response>');
// Debug logging