testing progress
This commit is contained in:
@@ -3804,7 +3804,7 @@ class TWP_Admin {
|
|||||||
ORDER BY c.position ASC
|
ORDER BY c.position ASC
|
||||||
", $user_id));
|
", $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'); ?>'
|
nonce: '<?php echo wp_create_nonce('twp_ajax_nonce'); ?>'
|
||||||
}, function(response) {
|
}, function(response) {
|
||||||
if (response.success && response.data) {
|
if (response.success && response.data) {
|
||||||
var waitingCalls = response.data.waiting_calls || [];
|
var waitingCalls = response.data || [];
|
||||||
|
|
||||||
// Update each queue
|
// Update each queue
|
||||||
<?php foreach ($user_queues as $queue): ?>
|
<?php foreach ($user_queues as $queue): ?>
|
||||||
|
@@ -288,7 +288,8 @@ class TWP_Agent_Manager {
|
|||||||
// Create TwiML to redirect call to browser client
|
// Create TwiML to redirect call to browser client
|
||||||
$twiml = new \Twilio\TwiML\VoiceResponse();
|
$twiml = new \Twilio\TwiML\VoiceResponse();
|
||||||
$twiml->say('Connecting you to an agent.', ['voice' => 'alice']);
|
$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);
|
$dial->client($client_name);
|
||||||
|
|
||||||
// Update the existing call to redirect to browser
|
// Update the existing call to redirect to browser
|
||||||
|
Reference in New Issue
Block a user