testing progress

This commit is contained in:
2025-08-12 07:26:19 -07:00
parent 003015a4b1
commit 75fae0fbdb
2 changed files with 4 additions and 3 deletions

View File

@@ -3804,7 +3804,7 @@ class TWP_Admin {
ORDER BY c.position ASC
", $user_id));
wp_send_json_success(['waiting_calls' => $waiting_calls]);
wp_send_json_success($waiting_calls);
}
/**
@@ -5699,7 +5699,7 @@ class TWP_Admin {
nonce: '<?php echo wp_create_nonce('twp_ajax_nonce'); ?>'
}, function(response) {
if (response.success && response.data) {
var waitingCalls = response.data.waiting_calls || [];
var waitingCalls = response.data || [];
// Update each queue
<?php foreach ($user_queues as $queue): ?>

View File

@@ -288,7 +288,8 @@ class TWP_Agent_Manager {
// Create TwiML to redirect call to browser client
$twiml = new \Twilio\TwiML\VoiceResponse();
$twiml->say('Connecting you to an agent.', ['voice' => 'alice']);
$dial = $twiml->dial('', ['timeout' => 30]);
$dial = $twiml->dial();
$dial->setAttribute('timeout', 30);
$dial->client($client_name);
// Update the existing call to redirect to browser