diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 3ef7d9eaa0..08d547bed2 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -588,6 +588,23 @@ $object = new token; $token = $object->create($_SERVER['PHP_SELF']); +//get the recordings + $sql = "select recording_name, recording_filename from v_recordings "; + $sql .= "where domain_uuid = :domain_uuid "; + $sql .= "order by recording_name asc "; + $parameters['domain_uuid'] = $_SESSION['domain_uuid']; + $database = new database; + $recordings = $database->select($sql, $parameters, 'all'); + unset($sql, $parameters); + +//get the phrases + $sql = "select * from v_phrases "; + $sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) "; + $parameters['domain_uuid'] = $domain_uuid; + $database = new database; + $phrases = $database->select($sql, $parameters, 'all'); + unset($sql, $parameters); + //show the header if ($action == "add") { $document['title'] = $text['title-call_center_queue_add']; @@ -1163,8 +1180,97 @@ echo " ".$text['label-caller_announce_sound']."\n"; echo "\n"; echo "\n"; - echo " \n"; - echo "
\n"; + + $destination_id = "queue_announce_sound"; + $script = "\n"; + $script .= "\n"; + echo $script; + + echo "\n"; + echo ""; + + unset($destination_id); + + echo "
\n"; echo $text['description-caller_announce_sound']."\n"; echo "\n"; echo "\n";