:
Module data
Permite conectarse al agente, desde la vista detalla del agente, por HTTP. Por ejemplo, si tenemos, un gateway de voz o un PBX, y falla algún módulo, nos podrías conectar a él directamente desde la consola.
Es una modificación de la extensión, VNC, pero para conectarse por HTTP.
<?php
// Egilea : Aitor Arregi
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
function http_view() {
$idAgent = (int)get_parameter('id_agente', 0);
$ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent);
echo "<iframe src='http://$ipAgent' width='100%' height='650'>";
echo "</iframe>";
}
extensions_add_opemode_tab_agent('http_view',__('HTTP'),'images/http_view.png','http_view');
?>
Files:
(Visited 416 times, 1 visits today)


