Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
mflorell wrote:I'm sure it could be done with some programming changes(having manual dialed, non-conferenced agent calls show up in the Real-Time Report), but those changes might take a while, and it would require a lot of testing to make sure nothing else breaks because of it. It would also probably require a separate set of dialplan entries since a new AGI will probably be required to get the right database entries in place for the Real-Time Report.
<?php
echo "<script>
document.addEventListener('DOMContentLoaded', (event) => {
const formulario = document.getElementById('vicidial_form');
const onHookAgent = " . json_encode($on_hook_agent) . ";
formulario.addEventListener('keydown', (event) => {
if (event.key === 'Enter') {
event.preventDefault(); // Prevenir el comportamiento por defecto de la tecla ENTER
NeWManuaLDiaLCalL('FAST','','','','','YES','YES');
// Ejecutar NoneInSessionCalL solo si onHookAgent es 'Y'
if (onHookAgent === 'Y') {
NoneInSessionCalL();
}
console.log(onHookAgent);
return false; // Retornar false para prevenir cualquier comportamiento por defecto adicional
}
});
});
</script>";
?>
Users browsing this forum: No registered users and 59 guests