mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 11:13:50 +00:00
Move to the $text array and add dashes between words on the $text named array values.
This commit is contained in:
@@ -1,106 +1,106 @@
|
||||
<?php
|
||||
|
||||
//v_calls_active
|
||||
$content_calls_active['title']['en-us'] = 'Active Calls';
|
||||
$content_calls_active['title']['pt-pt'] = 'Chamadas Activas';
|
||||
//v_calls_active
|
||||
$text['title']['en-us'] = 'Active Calls';
|
||||
$text['title']['pt-pt'] = 'Chamadas Activas';
|
||||
|
||||
$content_calls_active['description']['en-us'] = 'Use this to monitor and interact with the active calls.';
|
||||
$content_calls_active['description']['pt-pt'] = 'Utilize este menu para monitorizar e interagir com as chamadas ativas.';
|
||||
$text['description']['en-us'] = 'Use this to monitor and interact with the active calls.';
|
||||
$text['description']['pt-pt'] = 'Utilize este menu para monitorizar e interagir com as chamadas ativas.';
|
||||
|
||||
//v_calls_active_extensions
|
||||
$content_calls_active['title2']['en-us'] = 'Active Extensions';
|
||||
$content_calls_active['title2']['pt-pt'] = 'Extensões Activas';
|
||||
//v_calls_active_extensions
|
||||
$text['title-2']['en-us'] = 'Active Extensions';
|
||||
$text['title-2']['pt-pt'] = 'Extensões Activas';
|
||||
|
||||
$content_calls_active['label-status']['en-us'] = 'Status';
|
||||
$content_calls_active['label-status']['pt-pt'] = 'Estado';
|
||||
$text['label-status']['en-us'] = 'Status';
|
||||
$text['label-status']['pt-pt'] = 'Estado';
|
||||
|
||||
$content_calls_active['label-transfer']['en-us'] = 'Transfer To';
|
||||
$content_calls_active['label-transfer']['pt-pt'] = 'Transferir para';
|
||||
$text['label-transfer']['en-us'] = 'Transfer To';
|
||||
$text['label-transfer']['pt-pt'] = 'Transferir para';
|
||||
|
||||
$content_calls_active['description2']['en-us'] = 'Use this to view all extensions and monitor and interact with active calls.';
|
||||
$content_calls_active['description2']['pt-pt'] = 'Utilize este menu para ver todas as extensões, monitorizar e interagir com as chamadas ativas.';
|
||||
$text['description-2']['en-us'] = 'Use this to view all extensions and monitor and interact with active calls.';
|
||||
$text['description-2']['pt-pt'] = 'Utilize este menu para ver todas as extensões, monitorizar e interagir com as chamadas ativas.';
|
||||
|
||||
$content_calls_active['check-available-status']['en-us'] = 'Available';
|
||||
$content_calls_active['check-available-status']['pt-pt'] = 'Disponível';
|
||||
$text['check-available-status']['en-us'] = 'Available';
|
||||
$text['check-available-status']['pt-pt'] = 'Disponível';
|
||||
|
||||
$content_calls_active['check-available-ondemand-status']['en-us'] = 'Available (On Demand)';
|
||||
$content_calls_active['check-available-ondemand-status']['pt-pt'] = 'Disponível (A pedido)';
|
||||
$text['check-available-on-demand-status']['en-us'] = 'Available (On Demand)';
|
||||
$text['check-available-on-demand-status']['pt-pt'] = 'Disponível (A pedido)';
|
||||
|
||||
$content_calls_active['check-loggedout-status']['en-us'] = 'Logged Out';
|
||||
$content_calls_active['check-loggedout-status']['pt-pt'] = 'Desligado';
|
||||
$text['check-loggedout-status']['en-us'] = 'Logged Out';
|
||||
$text['check-loggedout-status']['pt-pt'] = 'Desligado';
|
||||
|
||||
$content_calls_active['check-onbreak-status']['en-us'] = 'On Break';
|
||||
$content_calls_active['check-onbreak-status']['pt-pt'] = 'Em Pausa';
|
||||
$text['check-onbreak-status']['en-us'] = 'On Break';
|
||||
$text['check-onbreak-status']['pt-pt'] = 'Em Pausa';
|
||||
|
||||
$content_calls_active['check-do-not-disturb-status']['en-us'] = 'Do Not Disturb';
|
||||
$content_calls_active['check-do-not-disturb-status']['pt-pt'] = 'Não Perturbar';
|
||||
$text['check-do-not-disturb-status']['en-us'] = 'Do Not Disturb';
|
||||
$text['check-do-not-disturb-status']['pt-pt'] = 'Não Perturbar';
|
||||
|
||||
//v_calls_active_assigned_extensions_inc
|
||||
$content_calls_active['label-time']['en-us'] = 'Time';
|
||||
$content_calls_active['label-time']['pt-pt'] = 'Tempo';
|
||||
//v_calls_active_assigned_extensions_inc
|
||||
$text['label-time']['en-us'] = 'Time';
|
||||
$text['label-time']['pt-pt'] = 'Tempo';
|
||||
|
||||
$content_calls_active['label-cid-name']['en-us'] = 'CID Name';
|
||||
$content_calls_active['label-cid-name']['pt-pt'] = 'Nome CID';
|
||||
$text['label-cid-name']['en-us'] = 'CID Name';
|
||||
$text['label-cid-name']['pt-pt'] = 'Nome CID';
|
||||
|
||||
$content_calls_active['label-cid-number']['en-us'] = 'CID Number';
|
||||
$content_calls_active['label-cid-number']['pt-pt'] = 'Numero CID';
|
||||
$text['label-cid-number']['en-us'] = 'CID Number';
|
||||
$text['label-cid-number']['pt-pt'] = 'Numero CID';
|
||||
|
||||
$content_calls_active['label-destination']['en-us'] = 'Dest';
|
||||
$content_calls_active['label-destination']['pt-pt'] = 'Destino';
|
||||
$text['label-destination']['en-us'] = 'Dest';
|
||||
$text['label-destination']['pt-pt'] = 'Destino';
|
||||
|
||||
$content_calls_active['label-app']['en-us'] = 'Application';
|
||||
$content_calls_active['label-app']['pt-pt'] = 'Aplicação';
|
||||
$text['label-app']['en-us'] = 'Application';
|
||||
$text['label-app']['pt-pt'] = 'Aplicação';
|
||||
|
||||
$content_calls_active['label-secure']['en-us'] = 'Secure';
|
||||
$content_calls_active['label-secure']['pt-pt'] = 'Seguro';
|
||||
$text['label-secure']['en-us'] = 'Secure';
|
||||
$text['label-secure']['pt-pt'] = 'Seguro';
|
||||
|
||||
$content_calls_active['label-name']['en-us'] = 'Name';
|
||||
$content_calls_active['label-name']['pt-pt'] = 'Nome';
|
||||
$text['label-name']['en-us'] = 'Name';
|
||||
$text['label-name']['pt-pt'] = 'Nome';
|
||||
|
||||
$content_calls_active['label-opt']['en-us'] = 'Options';
|
||||
$content_calls_active['label-opt']['pt-pt'] = 'Opções';
|
||||
$text['label-opt']['en-us'] = 'Options';
|
||||
$text['label-opt']['pt-pt'] = 'Opções';
|
||||
|
||||
$content_calls_active['label-transf']['en-us'] = 'Transfer';
|
||||
$content_calls_active['label-transf']['pt-pt'] = 'Transferir';
|
||||
$text['label-transfer']['en-us'] = 'Transfer';
|
||||
$text['label-transfer']['pt-pt'] = 'Transferir';
|
||||
|
||||
$content_calls_active['label-park']['en-us'] = 'park';
|
||||
$content_calls_active['label-park']['pt-pt'] = 'parquear';
|
||||
$text['label-park']['en-us'] = 'park';
|
||||
$text['label-park']['pt-pt'] = 'parquear';
|
||||
|
||||
$content_calls_active['confirm-hangup']['en-us'] = 'Do you really want to hangup this call?';
|
||||
$content_calls_active['confirm-hangup']['pt-pt'] = 'Quer realmente terminar esta chamada?';
|
||||
$text['confirm-hangup']['en-us'] = 'Do you really want to hangup this call?';
|
||||
$text['confirm-hangup']['pt-pt'] = 'Quer realmente terminar esta chamada?';
|
||||
|
||||
$content_calls_active['label-hangup']['en-us'] = 'hangup';
|
||||
$content_calls_active['label-hangup']['pt-pt'] = 'terminar';
|
||||
$text['label-hangup']['en-us'] = 'hangup';
|
||||
$text['label-hangup']['pt-pt'] = 'terminar';
|
||||
|
||||
$content_calls_active['label-stop']['en-us'] = 'stop record';
|
||||
$content_calls_active['label-stop']['pt-pt'] = 'parar de gravar';
|
||||
$text['label-stop']['en-us'] = 'stop record';
|
||||
$text['label-stop']['pt-pt'] = 'parar de gravar';
|
||||
|
||||
$content_calls_active['label-start']['en-us'] = 'start record';
|
||||
$content_calls_active['label-start']['pt-pt'] = 'iniciar a gravação';
|
||||
$text['label-start']['en-us'] = 'start record';
|
||||
$text['label-start']['pt-pt'] = 'iniciar a gravação';
|
||||
|
||||
//v_calls_active_extensions_inc
|
||||
$content_calls_active['confirm-socket']['en-us'] = 'Connection to Event Socket failed.';
|
||||
$content_calls_active['confirm-socket']['pt-pt'] = 'Conexão com socket falhou.';
|
||||
//v_calls_active_extensions_inc
|
||||
$text['confirm-socket']['en-us'] = 'Connection to Event Socket failed.';
|
||||
$text['confirm-socket']['pt-pt'] = 'Conexão com socket falhou.';
|
||||
|
||||
$content_calls_active['label-message']['en-us'] = 'Message';
|
||||
$content_calls_active['label-message']['pt-pt'] = 'Mensagem';
|
||||
$text['label-message']['en-us'] = 'Message';
|
||||
$text['label-message']['pt-pt'] = 'Mensagem';
|
||||
|
||||
$content_calls_active['label-ext']['en-us'] = 'Ext';
|
||||
$content_calls_active['label-ext']['pt-pt'] = 'Extensão';
|
||||
$text['label-ext']['en-us'] = 'Ext';
|
||||
$text['label-ext']['pt-pt'] = 'Extensão';
|
||||
|
||||
$content_calls_active['label-parkext']['en-us'] = 'Park';
|
||||
$content_calls_active['label-parkext']['pt-pt'] = 'Parquear Extensão';
|
||||
$text['label-park-extension']['en-us'] = 'Park';
|
||||
$text['label-park-extension']['pt-pt'] = 'Parquear Extensão';
|
||||
|
||||
$content_calls_active['label-profile']['en-us'] = 'Profile';
|
||||
$content_calls_active['label-profile']['pt-pt'] = 'Perfil';
|
||||
$text['label-profile']['en-us'] = 'Profile';
|
||||
$text['label-profile']['pt-pt'] = 'Perfil';
|
||||
|
||||
$content_calls_active['label-created']['en-us'] = 'Created';
|
||||
$content_calls_active['label-created']['pt-pt'] = 'Criado';
|
||||
$text['label-created']['en-us'] = 'Created';
|
||||
$text['label-created']['pt-pt'] = 'Criado';
|
||||
|
||||
$content_calls_active['label-num']['en-us'] = 'Number';
|
||||
$content_calls_active['label-num']['pt-pt'] = 'Numero';
|
||||
$text['label-number']['en-us'] = 'Number';
|
||||
$text['label-number']['pt-pt'] = 'Numero';
|
||||
|
||||
$content_calls_active['label-codec']['en-us'] = 'Read / Write Codec';
|
||||
$content_calls_active['label-codec']['pt-pt'] = 'Codec de Leitura / Escrita ';
|
||||
$text['label-codec']['en-us'] = 'Read / Write Codec';
|
||||
$text['label-codec']['pt-pt'] = 'Codec de Leitura / Escrita ';
|
||||
|
||||
?>
|
||||
@@ -35,8 +35,9 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_calls_active as $key => $value) {
|
||||
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
$conference_name = trim($_REQUEST["c"]);
|
||||
@@ -115,8 +116,8 @@ echo "<div align='center'>";
|
||||
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left'><b>".$content_calls_active['title']."</b><br>\n";
|
||||
echo " ".$content_calls_active['description']."\n";
|
||||
echo " <td align='left'><b>".$text['title']."</b><br>\n";
|
||||
echo " ".$text['description']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td align='right'>\n";
|
||||
|
||||
@@ -167,4 +168,4 @@ echo "-->\n";
|
||||
echo "</script>\n";
|
||||
|
||||
require_once "includes/footer.php";
|
||||
?>
|
||||
?>
|
||||
@@ -29,10 +29,11 @@ require_once "includes/checkauth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('extensions_active_assigned_view')) {
|
||||
|
||||
foreach($content_calls_active as $key => $value) {
|
||||
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
|
||||
//http get and set variables
|
||||
if (strlen($_GET['url']) > 0) {
|
||||
$url = $_GET['url'];
|
||||
@@ -49,18 +50,18 @@ if (permission_exists('extensions_active_assigned_view')) {
|
||||
//hide the user_status when it is set to false
|
||||
}
|
||||
else {
|
||||
echo "<th>".$content_calls_active['label-status']."</th>\n";
|
||||
echo "<th>".$text['label-status']."</th>\n";
|
||||
}
|
||||
echo "<th>".$content_calls_active['label-time']."</th>\n";
|
||||
echo "<th>".$text['label-time']."</th>\n";
|
||||
//echo "<th>Direction</th>\n";
|
||||
//echo "<th>Profile</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cid-name']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cid-number']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-destination']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-name']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
echo "<th>".$text['label-cid-name']."</th>\n";
|
||||
echo "<th>".$text['label-cid-number']."</th>\n";
|
||||
echo "<th>".$text['label-destination']."</th>\n";
|
||||
echo "<th>".$text['label-app']."</th>\n";
|
||||
echo "<th>".$text['label-secure']."</th>\n";
|
||||
echo "<th>".$text['label-name']."</th>\n";
|
||||
echo "<th>".$text['label-opt']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
foreach ($_SESSION['extension_array'] as $row) {
|
||||
$domain_uuid = $row['domain_uuid'];
|
||||
@@ -161,20 +162,20 @@ if (permission_exists('extensions_active_assigned_view')) {
|
||||
echo "</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
|
||||
//transfer
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$content_calls_active['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$text['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$text['label-transfer']."</a> \n";
|
||||
//park
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$text['label-park']."</a> \n";
|
||||
//hangup
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$text['label-hangup']."</a> \n";
|
||||
//record start/stop
|
||||
$tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav";
|
||||
if (file_exists($tmp_file)) {
|
||||
//stop
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$text['label-stop']."</a> \n";
|
||||
}
|
||||
else {
|
||||
//start
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$content_calls_active['label-start']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$text['label-start']."</a> \n";
|
||||
}
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
|
||||
@@ -35,8 +35,9 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_calls_active as $key => $value) {
|
||||
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//http get and set variables
|
||||
@@ -206,7 +207,7 @@ echo "<div align='center'>";
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' colspan='2' nowrap='nowrap'>\n";
|
||||
echo " <b>".$content_calls_active['title2']."</b><br>\n";
|
||||
echo " <b>".$text['title-2']."</b><br>\n";
|
||||
echo " </td>\n";
|
||||
|
||||
//get the user status when the page loads
|
||||
@@ -233,40 +234,40 @@ else {
|
||||
echo " <td class='' valign='bottom' align='right' style='width:200px' nowrap='nowrap'>\n";
|
||||
//status list
|
||||
echo " ";
|
||||
echo " <strong>".$content_calls_active['label-status']."</strong> \n";
|
||||
echo " <strong>".$text['label-status']."</strong> \n";
|
||||
$cmd = "'v_calls_exec.php?action=user_status&data='+this.value+'";
|
||||
$cmd .= "&cmd=callcenter_config+agent+set+status+".$_SESSION['username']."@".$_SESSION['domain_name']."+'+this.value";
|
||||
echo " <select id='agent_status' name='agent_status' class='formfld' style='width:125px' nowrap='nowrap' onchange=\"send_cmd($cmd);\">\n";
|
||||
echo " <option value=' '></option>\n";
|
||||
if ($user_status == "Available") {
|
||||
echo " <option value='Available' selected='selected'>".$content_calls_active['check-available-status']."</option>\n";
|
||||
echo " <option value='Available' selected='selected'>".$text['check-available-status']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='Available'>".$content_calls_active['check-available-status']."</option>\n";
|
||||
echo " <option value='Available'>".$text['check-available-status']."</option>\n";
|
||||
}
|
||||
if ($user_status == "Available (On Demand)") {
|
||||
echo " <option value='Available_On_Demand' selected='selected'>".$content_calls_active['check-available-ondemand-status']."</option>\n";
|
||||
echo " <option value='Available_On_Demand' selected='selected'>".$text['check-available-on-demand-status']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='Available_On_Demand'>".$content_calls_active['check-available-ondemand-status']."</option>\n";
|
||||
echo " <option value='Available_On_Demand'>".$text['check-available-on-demand-status']."</option>\n";
|
||||
}
|
||||
if ($user_status == "Logged Out") {
|
||||
echo " <option value='Logged_Out' selected='selected'>".$content_calls_active['check-loggedout-status']."</option>\n";
|
||||
echo " <option value='Logged_Out' selected='selected'>".$text['check-loggedout-status']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='Logged_Out'>".$content_calls_active['check-loggedout-status']."</option>\n";
|
||||
echo " <option value='Logged_Out'>".$text['check-loggedout-status']."</option>\n";
|
||||
}
|
||||
if ($user_status == "On Break") {
|
||||
echo " <option value='On_Break' selected='selected'>".$content_calls_active['check-onbreak-status']."</option>\n";
|
||||
echo " <option value='On_Break' selected='selected'>".$text['check-onbreak-status']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='On_Break'>".$content_calls_active['check-onbreak-status']."</option>\n";
|
||||
echo " <option value='On_Break'>".$text['check-onbreak-status']."</option>\n";
|
||||
}
|
||||
if ($user_status == "Do Not Disturb") {
|
||||
echo " <option value='Do_Not_Disturb' selected='selected'>".$content_calls_active['check-do-not-disturb-status']."</option>\n";
|
||||
echo " <option value='Do_Not_Disturb' selected='selected'>".$text['check-do-not-disturb-status']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='Do_Not_Disturb'>".$content_calls_active['check-do-not-disturb-status']."</option>\n";
|
||||
echo " <option value='Do_Not_Disturb'>".$text['check-do-not-disturb-status']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
@@ -274,13 +275,13 @@ else {
|
||||
|
||||
echo " <td align='right' nowrap='nowrap'>\n";
|
||||
echo " ";
|
||||
echo " <strong>".$content_calls_active['label-transfer']."</strong>\n";
|
||||
echo " <strong>".$text['label-transfer']."</strong>\n";
|
||||
echo " <input type=\"text\" id=\"form_value\" name=\"form_value\" class='formfld' style='width:125px'/>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' colspan='99'>\n";
|
||||
echo " ".$content_calls_active['description2']."\n";
|
||||
echo " ".$text['description-2']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
@@ -340,4 +341,4 @@ echo "-->\n";
|
||||
echo "</script>\n";
|
||||
|
||||
require_once "includes/footer.php";
|
||||
?>
|
||||
?>
|
||||
@@ -35,8 +35,9 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_calls_active as $key => $value) {
|
||||
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set debug to true or false
|
||||
@@ -99,11 +100,11 @@ else {
|
||||
|
||||
//get information over event socket
|
||||
if (!$fp) {
|
||||
$msg = "<div align='center'>".$content_calls_active['confirm-socket']."<br /></div>";
|
||||
$msg = "<div align='center'>".$text['confirm-socket']."<br /></div>";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='40%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th align='left'>".$content_calls_active['label-message']."</th>\n";
|
||||
echo "<th align='left'>".$text['label-message']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1'><strong>$msg</strong></td>\n";
|
||||
@@ -330,27 +331,27 @@ else {
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th width='50px;'>".$content_calls_active['label-ext']."</th>\n";
|
||||
echo "<th width='50px;'>".$text['label-ext']."</th>\n";
|
||||
if ($_SESSION['user_status_display'] == "false") {
|
||||
//hide the user_status when it is set to false
|
||||
}
|
||||
else {
|
||||
echo "<th>".$content_calls_active['label-status']."</th>\n";
|
||||
echo "<th>".$text['label-status']."</th>\n";
|
||||
}
|
||||
echo "<th>".$content_calls_active['label-time']."</th>\n";
|
||||
echo "<th>".$text['label-time']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if (strlen(($_GET['rows'])) == 0) {
|
||||
echo "<th>".$content_calls_active['label-cid-name']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cid-number']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-destination']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
echo "<th>".$text['label-cid-name']."</th>\n";
|
||||
echo "<th>".$text['label-cid-number']."</th>\n";
|
||||
echo "<th>".$text['label-destination']."</th>\n";
|
||||
echo "<th>".$text['label-app']."</th>\n";
|
||||
echo "<th>".$text['label-secure']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "<th>".$content_calls_active['label-name']."</th>\n";
|
||||
echo "<th>".$text['label-name']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if (strlen(($_GET['rows'])) == 0) {
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
echo "<th>".$text['label-opt']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "</tr>\n";
|
||||
@@ -462,20 +463,20 @@ else {
|
||||
if ($found_extension) {
|
||||
echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
|
||||
//transfer
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$text['label-transfer']."</a> \n";
|
||||
//park
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$text['label-park']."</a> \n";
|
||||
//hangup
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$text['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$text['label-hangup']."</a> \n";
|
||||
//record start/stop
|
||||
$tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav";
|
||||
if (file_exists($tmp_file)) {
|
||||
//stop
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$text['label-stop']."</a> \n";
|
||||
}
|
||||
else {
|
||||
//start
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$content_calls_active['label-start']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$text['label-start']."</a> \n";
|
||||
}
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
@@ -498,27 +499,27 @@ else {
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th>".$content_calls_active['label-ext']."</th>\n";
|
||||
echo "<th>".$text['label-ext']."</th>\n";
|
||||
if ($_SESSION['user_status_display'] == "false") {
|
||||
//hide the user_status when it is set to false
|
||||
}
|
||||
else {
|
||||
echo "<th>".$content_calls_active['label-status']."</th>\n";
|
||||
echo "<th>".$text['label-status']."</th>\n";
|
||||
}
|
||||
echo "<th>".$content_calls_active['label-time']."</th>\n";
|
||||
echo "<th>".$text['label-time']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if ($_GET['rows'] == 0) {
|
||||
echo "<th>".$content_calls_active['label-cid-name']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cid-number']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-destination']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
echo "<th>".$text['label-cid-name']."</th>\n";
|
||||
echo "<th>".$text['label-cid-number']."</th>\n";
|
||||
echo "<th>".$text['label-destination']."</th>\n";
|
||||
echo "<th>".$text['label-app']."</th>\n";
|
||||
echo "<th>".$text['label-secure']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "<th>".$content_calls_active['label-name']."</th>\n";
|
||||
echo "<th>".$text['label-name']."</th>\n";
|
||||
if (if_group("admin") || if_group("superadmin")) {
|
||||
if ($_GET['rows'] == 0) {
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
echo "<th>".$text['label-opt']."</th>\n";
|
||||
}
|
||||
}
|
||||
echo "</tr>\n";
|
||||
@@ -533,10 +534,10 @@ else {
|
||||
//valet park
|
||||
echo "<table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-parkext']."</th>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-time']."</th>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-cid-name']."</th>\n";
|
||||
echo "<th valign='top'>".$content_calls_active['label-cid-number']."</th>\n";
|
||||
echo "<th valign='top'>".$text['label-park-ext']."</th>\n";
|
||||
echo "<th valign='top'>".$text['label-time']."</th>\n";
|
||||
echo "<th valign='top'>".$text['label-cid-name']."</th>\n";
|
||||
echo "<th valign='top'>".$text['label-cid-number']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
foreach ($valet_array as $row) {
|
||||
if (strlen($row['extension']) > 0) {
|
||||
|
||||
@@ -35,8 +35,9 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_calls_active as $key => $value) {
|
||||
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set the command
|
||||
@@ -45,11 +46,11 @@ else {
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
//if the connnection is available then run it and return the results
|
||||
if (!$fp) {
|
||||
$msg = "<div align='center'>".$content_calls_active['confirm-socket']."<br /></div>";
|
||||
$msg = "<div align='center'>".$text['confirm-socket']."<br /></div>";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='40%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th align='left'>".$content_calls_active['label-message']."</th>\n";
|
||||
echo "<th align='left'>".$text['label-message']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1'><strong>$msg</strong></td>\n";
|
||||
@@ -79,25 +80,25 @@ else {
|
||||
//echo "<th>ID</th>\n";
|
||||
//echo "<th>UUID</th>\n";
|
||||
//echo "<th>Dir</th>\n";
|
||||
echo "<th>".$content_calls_active['label-profile']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-created']."</th>\n";
|
||||
echo "<th>".$text['label-profile']."</th>\n";
|
||||
echo "<th>".$text['label-created']."</th>\n";
|
||||
//echo "<th>Created Epoch</th>\n";
|
||||
//echo "<th>Name</th>\n";
|
||||
echo "<th>".$content_calls_active['label-num']."</th>\n";
|
||||
echo "<th>".$text['label-number']."</th>\n";
|
||||
//echo "<th>State</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cid-name']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-cid-number']."</th>\n";
|
||||
echo "<th>".$text['label-cid-name']."</th>\n";
|
||||
echo "<th>".$text['label-cid-number']."</th>\n";
|
||||
//echo "<th>IP Addr</th>\n";
|
||||
echo "<th>".$content_calls_active['label-destination']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-app']."</th>\n";
|
||||
echo "<th>".$text['label-destination']."</th>\n";
|
||||
echo "<th>".$text['label-app']."</th>\n";
|
||||
//echo "<th>Dialplan</th>\n";
|
||||
//echo "<th>Context</th>\n";
|
||||
echo "<th>".$content_calls_active['label-codec']."</th>\n";
|
||||
echo "<th>".$text['label-codec']."</th>\n";
|
||||
//echo "<th>Read Rate</th>\n";
|
||||
//echo "<th>Write Codec</th>\n";
|
||||
//echo "<th>Write Rate</th>\n";
|
||||
echo "<th>".$content_calls_active['label-secure']."</th>\n";
|
||||
echo "<th>".$content_calls_active['label-opt']."</th>\n";
|
||||
echo "<th>".$text['label-secure']."</th>\n";
|
||||
echo "<th>".$text['label-opt']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
foreach ($result_array as $row) {
|
||||
@@ -105,7 +106,7 @@ else {
|
||||
foreach ($row as $key => $value) {
|
||||
$$key = $value;
|
||||
}
|
||||
|
||||
|
||||
//get the sip profile
|
||||
$name_array = explode("/", $name);
|
||||
$sip_profile = $name_array[1];
|
||||
@@ -148,22 +149,22 @@ else {
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$secure </td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align:center;'>\n";
|
||||
//transfer
|
||||
echo " <a href='javascript:void(0);' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$content_calls_active['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$text['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$text['label-transfer']."</a> \n";
|
||||
//park
|
||||
echo " <a href='javascript:void(0);' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$text['label-park']."</a> \n";
|
||||
//hangup
|
||||
echo " <a href='javascript:void(0);' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' onclick=\"confirm_response = confirm('".$text['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$text['label-hangup']."</a> \n";
|
||||
//record start/stop
|
||||
$tmp_dir = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d");
|
||||
mkdir($tmp_dir, 0777, true);
|
||||
$tmp_file = $tmp_dir."/".$uuid.".wav";
|
||||
if (file_exists($tmp_file)) {
|
||||
//stop
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_calls_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_calls_&name='+escape('$cid_num'));\">".$text['label-stop']."</a> \n";
|
||||
}
|
||||
else {
|
||||
//start
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_calls_');\">".$content_calls_active['label-start']."</a> \n";
|
||||
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_calls_');\">".$text['label-start']."</a> \n";
|
||||
}
|
||||
echo " ";
|
||||
echo "</td>\n";
|
||||
@@ -174,4 +175,4 @@ else {
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user