LANG_www builds for 2.0.4.1rc4 release
git-svn-id: svn://192.168.202.10@942 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of seconds for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls on hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of seconds for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name on login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusStatus").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentStatusCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Dial Next Number";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Dial Alt Phone Number: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">MAIN PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTPhoneE')\"><font class=\"preview_text\">ALT PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ADDRESS3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">FINISH LEAD</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CALLBACK DATE/TIME</td><td><font class=\"log_title\">NUMBER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST CALL DATE/TIME</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CALLBACK DATE/TIME</td><td><font class=\"log_title\">NUMBER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST CALL DATE/TIME</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + CIDcheck + " Waiting for Ring... " + MD_ring_secondS + " seconds";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + CIDcheck + " Waiting for Ring... " + MD_ring_secondS + " seconds";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("No more leads in the hopper for campaign:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTPhoneE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + MDnextCID + " Waiting for Ring...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + MDnextCID + " Waiting for Ring...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"./images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Hangup Customer\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentStatusCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentStatusSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="./images/vdc_tab_vicidial.gif" ALT="VICIDIAL" WIDTH=115 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="./images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> session ID: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> session ID: <span id=sessionIDspan></span> <span id=AgentStatusCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="./images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
|
||||
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
|
||||
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -2837,7 +2837,7 @@ echo "</head>\n";
|
||||
<span style="position:absolute;left:0px;top:46px;z-index:20;" id="ActiveLinesPanel">
|
||||
<table border=0 BGCOLOR="#CDE0C2" width=640>
|
||||
<tr><td colspan=3>
|
||||
<a href="#" onclick="pause();return false;">PAUSE</a> | <a href="#" onclick="start();return false;">INICIAR</a> Atualizar a taxa: <span id="refresh_rate">1000 ms</span> <a href="#" onclick="faster();return false;">Mais rápido</a> | <a href="#" onclick="slower();return false;">Mais devagar</a></p>
|
||||
<a href="#" onclick="pause();return false;">PAUSAR</a> | <a href="#" onclick="start();return false;">INICIAR</a> Atualizar a taxa: <span id="refresh_rate">1000 ms</span> <a href="#" onclick="faster();return false;">Mais rápido</a> | <a href="#" onclick="slower();return false;">Mais devagar</a></p>
|
||||
<div id="status"><em>Inicializando..</em></div>
|
||||
</td></tr>
|
||||
<tr><td>Extensões Ativas <BR>
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1302,7 +1302,7 @@ if ($stage == "end")
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSEALL',serverid='$queuemetrics_log_id';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSARALL',serverid='$queuemetrics_log_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
@@ -1364,7 +1364,7 @@ if ($stage == "end")
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSEALL',serverid='$queuemetrics_log_id';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSARALL',serverid='$queuemetrics_log_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -2038,7 +2038,7 @@ else
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
# $stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSE',serverid='1';";
|
||||
# $stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSAR',serverid='1';";
|
||||
# if ($DB) {echo "$stmt\n";}
|
||||
#
|
||||
# $rslt=mysql_query($stmt, $linkB);
|
||||
@@ -2345,7 +2345,7 @@ if ( ($ACTION == 'VDADpause') || ($ACTION == 'VDADready') )
|
||||
if ($enable_queuemetrics_logging > 0)
|
||||
{
|
||||
if (ereg('READY',$stage)) {$QMstatus='UNPAUSEALL';}
|
||||
if (ereg('PAUSE',$stage)) {$QMstatus='PAUSEALL';}
|
||||
if (ereg('PAUSAR',$stage)) {$QMstatus='PAUSARALL';}
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
@@ -2485,7 +2485,7 @@ if ($ACTION == 'PausaCodeSubmit')
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSEREASON',serverid='$queuemetrics_log_id',data1='$status';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSARREASON',serverid='$queuemetrics_log_id',data1='$status';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of segundos for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show callsligadohold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of segundos for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign nameligadologin pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1271,11 +1275,11 @@ else
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
print "<!-- queue_log AGENTLOGIN entry added: $VD_login|$affected_rows -->\n";
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtimE',call_id='NONE',queue='NONE',agent='Agent/$VD_login',verb='PAUSEALL',serverid='$queuemetrics_log_id';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtimE',call_id='NONE',queue='NONE',agent='Agent/$VD_login',verb='PAUSARALL',serverid='$queuemetrics_log_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
print "<!-- queue_log PAUSE entry added: $VD_login|$affected_rows -->\n";
|
||||
print "<!-- queue_log PAUSAR entry added: $VD_login|$affected_rows -->\n";
|
||||
|
||||
mysql_close($linkB);
|
||||
mysql_select_db("$VARDB_database", $link);
|
||||
@@ -1308,11 +1312,11 @@ else
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
print "<!-- queue_log AGENTLOGIN entry added: $VD_login|$affected_rows -->\n";
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtimE',call_id='NONE',queue='NONE',agent='Agent/$VD_login',verb='PAUSEALL',serverid='$queuemetrics_log_id';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtimE',call_id='NONE',queue='NONE',agent='Agent/$VD_login',verb='PAUSARALL',serverid='$queuemetrics_log_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
print "<!-- queue_log PAUSE entry added: $VD_login|$affected_rows -->\n";
|
||||
print "<!-- queue_log PAUSAR entry added: $VD_login|$affected_rows -->\n";
|
||||
|
||||
mysql_close($linkB);
|
||||
mysql_select_db("$VARDB_database", $link);
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusStatus").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentStatusCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Discar proximo número";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Discar telefone alternativo: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">TELEFONE PRINCIPAL</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTTelefoneE')\"><font class=\"preview_text\">TELEFONE ALTERNATIVO</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ENDERECO3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">FINALIZAR CONTATO</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CHAMADABACK DATE/TIME</td><td><font class=\"log_title\">NUMERO</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST DATA/HORA DA CHAMADA</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CHAMADABACK DATE/TIME</td><td><font class=\"log_title\">NUMERO</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST DATA/HORA DA CHAMADA</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Ligando: " + status_display_number + " UID: " + CIDcheck + " Aguardando Atender... " + MD_ring_secondS + " segundos";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Ligando: " + status_display_number + " UID: " + CIDcheck + " Aguardando Atender... " + MD_ring_secondS + " segundos";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("Não existem mais registros na fila de discagem dessa campanha:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_ptbr.gif\" border=0 alt=\"Discar proximo número\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTTelefoneE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Ligando: " + status_display_number + " UID: " + MDnextCID + " Aguardando Atender...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Ligando: " + status_display_number + " UID: " + MDnextCID + " Aguardando Atender...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer_ptbr.gif\" border=0 alt=\"Desligar Cliente\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4757,7 +4791,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
PausaCode_HTML = '';
|
||||
document.vicidial_form.PausaCodeSelection.value = '';
|
||||
var VD_pause_codes_ct_half = parseInt(VD_pause_codes_ct / 2);
|
||||
PausaCode_HTML = "<table cellpadding=5 cellspacing=5 width=500><tr><td colspan=2><B> PAUSE CODE</B></td></tr><tr><td bgcolor=\"#99FF99\" height=300 width=240 valign=top><font class=\"log_text\"><span id=PausaCodeSelectA>";
|
||||
PausaCode_HTML = "<table cellpadding=5 cellspacing=5 width=500><tr><td colspan=2><B> PAUSAR CODE</B></td></tr><tr><td bgcolor=\"#99FF99\" height=300 width=240 valign=top><font class=\"log_text\"><span id=PausaCodeSelectA>";
|
||||
var loop_ct = 0;
|
||||
while (loop_ct < VD_pause_codes_ct)
|
||||
{
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentStatusCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentStatusSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIDISCAR" WIDTH=115 HEIGHT=30 Border=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> ID da sessão: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> ID da sessão: <span id=sessionIDspan></span> <span id=AgentStatusCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_ptbr.gif" NAME=livecall ALT="Chamadas Ativas" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
|
||||
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
|
||||
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of Sekunden for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls an hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of Sekunden for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name an login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusStatus").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentStatusCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Nächste Nummer wählen";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Wähle alternative Telefonnummer: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">TELEFONNUMMER</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTTelefonE')\"><font class=\"preview_text\">ALTERNATIVE TELEFONNUMMER</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ADRESSE3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">ADRESSE BEENDEN</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> ANRUFBACK DATE/TIME</td><td><font class=\"log_title\">NUMMER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST ANRUF DATUM\/ZEIT</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> ANRUFBACK DATE/TIME</td><td><font class=\"log_title\">NUMMER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST ANRUF DATUM\/ZEIT</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Telefonierend: " + status_display_number + " UID: " + CIDcheck + " Warte auf Freizeichen... " + MD_ring_secondS + " Sekunden";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Telefonierend: " + status_display_number + " UID: " + CIDcheck + " Warte auf Freizeichen... " + MD_ring_secondS + " Sekunden";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("Es sind keine Adressen im Hopper vorhanden:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Nächste Nummer wählen\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTTelefonE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Telefonierend: " + status_display_number + " UID: " + MDnextCID + " Warte auf Freizeichen...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Telefonierend: " + status_display_number + " UID: " + MDnextCID + " Warte auf Freizeichen...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Kunden auflegen\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentStatusCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentStatusSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIWÄHLEN" WIDTH=115 HEIGHT=30 RAND=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 RAND=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> Session ID: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> Session ID: <span id=sessionIDspan></span> <span id=AgentStatusCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Anruf" WIDTH=109 HEIGHT=30 RAND=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
|
||||
Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
|
||||
Ihr Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Κατάσταση: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Κατάσταση: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of δευτερόλεπτα for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls στο hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of δευτερόλεπτα for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name στο login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentΚατάστασηΚατάσταση").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentΚατάστασηCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentΚατάστασηDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Κλήση επόμενου αριθμού";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Κλήση εναλκού αριθμού: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">ΚΥΡΙΟ ΤΗΛΕΦΩΝΟ</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTΤηλE')\"><font class=\"preview_text\">ΕΝΑΛΛΑΚΤΙΚΟ ΤΗΛΕΦΩΝΟ</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">3ΔΙΕΥΘΥΝΣΗ</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">ΤΕΛΕΙΩΣΤΕ</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> ΚΛΗΣΗBACK DATE/TIME</td><td><font class=\"log_title\">ΑΡΙΘΜΟΣ</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">ΚΑΤΑΣΤΑΣΗ</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> ΚΛΗΣΗBACK DATE/TIME</td><td><font class=\"log_title\">ΑΡΙΘΜΟΣ</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> ΚΑΤΑΣΤΑΣΗ</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Σε Κλήση: " + status_display_number + " UID: " + CIDcheck + " Αναμονή για κουδούνισμα... " + MD_ring_secondS + " δευτερόλεπτα";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Σε Κλήση: " + status_display_number + " UID: " + CIDcheck + " Αναμονή για κουδούνισμα... " + MD_ring_secondS + " δευτερόλεπτα";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("Δεν υπάρχουν άλλοι οδηγοί στον hopper για την εκστρατεία:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_el.gif\" border=0 alt=\"Κλήση επόμενου αριθμού\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTΤηλE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Σε Κλήση: " + status_display_number + " UID: " + MDnextCID + " Αναμονή για κουδούνισμα...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Σε Κλήση: " + status_display_number + " UID: " + MDnextCID + " Αναμονή για κουδούνισμα...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer_el.gif\" border=0 alt=\"Κλείσιμο Πελάτη\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentΚατάστασηCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentΚατάστασηSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIΚΛΗΣΗ" WIDTH=115 HEIGHT=30 Border=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> ID εργασίας: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> ID εργασίας: <span id=sessionIDspan></span> <span id=AgentΚατάστασηCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_el.gif" NAME=livecall ALT="Ενεργή κλήση" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentΚατάστασηSpan"><font class="body_text">
|
||||
Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></span> <BR>Calls Dialing: <span id="AgentΚατάστασηCalls"></span>
|
||||
Your Κατάσταση: <span id="AgentΚατάστασηΚατάσταση"></span> <BR>Calls Dialing: <span id="AgentΚατάστασηDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of seconds for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls on hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of seconds for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name on login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusStatus").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentStatusCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Dial Next Number";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Dial Alt Phone Number: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">MAIN PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTPhoneE')\"><font class=\"preview_text\">ALT PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ADDRESS3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">FINISH LEAD</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CALLBACK DATE/TIME</td><td><font class=\"log_title\">NUMBER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST CALL DATE/TIME</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CALLBACK DATE/TIME</td><td><font class=\"log_title\">NUMBER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST CALL DATE/TIME</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + CIDcheck + " Waiting for Ring... " + MD_ring_secondS + " seconds";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + CIDcheck + " Waiting for Ring... " + MD_ring_secondS + " seconds";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("No more leads in the hopper for campaign:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTPhoneE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + MDnextCID + " Waiting for Ring...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + MDnextCID + " Waiting for Ring...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Hangup Customer\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentStatusCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentStatusSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIDIAL" WIDTH=115 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> session ID: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> session ID: <span id=sessionIDspan></span> <span id=AgentStatusCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
|
||||
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
|
||||
Your Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Estado: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Estado: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of segundos for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls en hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of segundos for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name en login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentEstadoEstado").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentEstadoCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentEstadoDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Marcar el Siguiente Número";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Marcar Número de teléfono Alt: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">TELÉFONO PRINCIPAL</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTTeléfonoE')\"><font class=\"preview_text\">TELÉFONO ALT</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">DIRECCIÓN3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">ACABAR LEAD</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> LLAMADABACK DATE/TIME</td><td><font class=\"log_title\">NÚMERO</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">ESTADO</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST FECHA/HORA DE LA LLAMADA</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> LLAMADABACK DATE/TIME</td><td><font class=\"log_title\">NÚMERO</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> ESTADO</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST FECHA/HORA DE LA LLAMADA</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Llamando: " + status_display_number + " UID: " + CIDcheck + " Espeerar al Ring... " + MD_ring_secondS + " segundos";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Llamando: " + status_display_number + " UID: " + CIDcheck + " Espeerar al Ring... " + MD_ring_secondS + " segundos";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("No más Leads en el hopper de la campaña:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_es.gif\" border=0 alt=\"Marcar el Siguiente Número\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTTeléfonoE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Llamando: " + status_display_number + " UID: " + MDnextCID + " Espeerar al Ring...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Llamando: " + status_display_number + " UID: " + MDnextCID + " Espeerar al Ring...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer_es.gif\" border=0 alt=\"Colgar al Cliente\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentEstadoCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentEstadoSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIDIAL" WIDTH=115 HEIGHT=30 Border=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script_es.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> sesión ID: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> sesión ID: <span id=sessionIDspan></span> <span id=AgentEstadoCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_es.gif" NAME=livecall ALT="Llamada Activa" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentEstadoSpan"><font class="body_text">
|
||||
Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="AgentEstadoCalls"></span>
|
||||
Su Estado: <span id="AgentEstadoEstado"></span> <BR>Calls Dialing: <span id="AgentEstadoDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Statut: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Statut: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of secondes for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls sur hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of secondes for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name sur login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatutStatut").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentStatutCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatutDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Appel Numéro Suivant";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Appel Numéro 2nd.: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">TÉLÉPHONE PRINCIPAL</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTTéléphoneE')\"><font class=\"preview_text\">TELEPHONE 2nd.</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ADRESSE3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">TERMINER LA SAISIE</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> APPELBACK DATE/TIME</td><td><font class=\"log_title\">NOMBRE</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">STATUT</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST APPEL DATE/TIME</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> APPELBACK DATE/TIME</td><td><font class=\"log_title\">NOMBRE</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> STATUT</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST APPEL DATE/TIME</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Appeler: " + status_display_number + " UID: " + CIDcheck + " Attente... " + MD_ring_secondS + " secondes";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Appeler: " + status_display_number + " UID: " + CIDcheck + " Attente... " + MD_ring_secondS + " secondes";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("Plus de fiches clients éligibles pour cette campagne:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Appel Numéro Suivant\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTTéléphoneE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Appeler: " + status_display_number + " UID: " + MDnextCID + " Attente...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Appeler: " + status_display_number + " UID: " + MDnextCID + " Attente...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Raccrocher\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentStatutCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentStatutSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICICOMPOSER" WIDTH=115 HEIGHT=30 Border=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> Id de session: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> Id de session: <span id=sessionIDspan></span> <span id=AgentStatutCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Appel en cours" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentStatutSpan"><font class="body_text">
|
||||
Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="AgentStatutCalls"></span>
|
||||
Votre Statut: <span id="AgentStatutStatut"></span> <BR>Calls Dialing: <span id="AgentStatutDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -133,7 +133,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -145,7 +145,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -159,7 +159,7 @@ if ($format=='table')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build ADD: $ADD server_ip: $server_ip-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build ADD: $ADD server_ip: $server_ip-->\n";
|
||||
echo "<title>Visualizza Lista: ";
|
||||
if ($ADD==1) {echo "Interni Attivi";}
|
||||
if ($ADD==2) {echo "Interni Occupati";}
|
||||
@@ -214,7 +214,7 @@ if ($ADD==1)
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedext") {echo "SELEZIONATO ";}
|
||||
if ($row[0]=="$selectedext") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
@@ -271,7 +271,7 @@ if ($ADD==2)
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedext") {echo "SELEZIONATO ";}
|
||||
if ($row[0]=="$selectedext") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0]";
|
||||
echo "</OPTION>\n";
|
||||
@@ -327,7 +327,7 @@ if ($ADD==3)
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedtrunk") {echo "SELEZIONATO ";}
|
||||
if ($row[0]=="$selectedtrunk") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
@@ -383,7 +383,7 @@ if ($ADD==4)
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedlocal") {echo "SELEZIONATO ";}
|
||||
if ($row[0]=="$selectedlocal") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
@@ -440,7 +440,7 @@ if ($ADD==5)
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedext") {echo "SELEZIONATO ";}
|
||||
if ($row[0]=="$selectedext") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
|
||||
@@ -105,7 +105,7 @@ if ($force_logout)
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
}
|
||||
echo "Ora non sei collegato. Grazie\n";
|
||||
echo "Ora siete non Loggati . Grazie\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ $agcDIR = eregi_replace('astguiclient.php','',$agcDIR);
|
||||
{
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
echo "<title>web client astGUIclient: Login</title>\n";
|
||||
echo "<title>web client astGUIclient: Inizio attività</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<TABLE><TR><TD></TD>\n";
|
||||
@@ -153,19 +153,19 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=360 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCC2E0\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" Border=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login </TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Inizio attività </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Login Utente: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>Inizio attività dell`Utente: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=user SIZE=10 maxlength=20 VALUE=\"$user\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Password Utente: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>Parola d`accesso Dell`Utente: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=pass SIZE=10 maxlength=20 VALUE=\"$pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Login Telefono: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>Inizio attività Telefono: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=phone_login SIZE=10 maxlength=20 VALUE=\"$phone_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Password Telefono: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>Parola d`accesso del Telefono: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=phone_pass SIZE=10 maxlength=20 VALUE=\"$phone_pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=Submit NAME=INVIA VALUE=INVIA></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSIONE: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSIONE: $version CONFIGURAZIONE: $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -185,7 +185,7 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
$LOGfullname=$row[0];
|
||||
if ($WeBRooTWritablE > 0)
|
||||
{
|
||||
fwrite ($fp, "VICIDial|GOOD|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fwrite ($fp, "VICICHIAMA|GOOD|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
@@ -193,7 +193,7 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
{
|
||||
if ($WeBRooTWritablE > 0)
|
||||
{
|
||||
fwrite ($fp, "VICIDial|FAIL|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fwrite ($fp, "VICICHIAMA|FAIL|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
@@ -204,11 +204,11 @@ header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build ADD: $ADD-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build ADD: $ADD-->\n";
|
||||
|
||||
if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) )
|
||||
{
|
||||
echo "<title>web client astGUIclient: Login Telefono</title>\n";
|
||||
echo "<title>web client astGUIclient: Inizio attività Telefono</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<TABLE><TR><TD></TD>\n";
|
||||
@@ -220,15 +220,15 @@ echo "<INPUT TYPE=HIDDEN NAME=user VALUE=\"$user\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=pass VALUE=\"$pass\">\n";
|
||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=360 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCC2E0\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" Border=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login Telefono </TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Inizio attività Telefono </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Login Telefono: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>Inizio attività Telefono: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=phone_login SIZE=10 maxlength=20 VALUE=\"$phone_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Password Telefono: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>Parola d`accesso del Telefono: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=phone_pass SIZE=10 maxlength=20 VALUE=\"$phone_pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=Submit NAME=INVIA VALUE=INVIA></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSIONE: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSIONE: $version CONFIGURAZIONE: $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -245,7 +245,7 @@ $row=mysql_fetch_row($rslt);
|
||||
$authphone=$row[0];
|
||||
if (!$authphone)
|
||||
{
|
||||
echo "<title>web client astGUIclient: Login Telefono</title>\n";
|
||||
echo "<title>web client astGUIclient: Inizio attività Telefono</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<TABLE><TR><TD></TD>\n";
|
||||
@@ -257,15 +257,15 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
echo "<INPUT TYPE=HIDDEN NAME=pass VALUE=\"$pass\">\n";
|
||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=360 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCC2E0\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" Border=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login Telefono </TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Inizio attività Telefono </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><font size=1> <BR><FONT SIZE=3>Spiacente, il telefono inserito non e` attivo in questo sistema, riprova di nuovo: <BR> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Login Telefono: </TD>";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><font size=1> <BR><FONT SIZE=3>Spiacente, la vostra password e login non sono attivi in questo sistema, riprova di nuovo: <BR> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Inizio attività Telefono: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=phone_login SIZE=10 maxlength=20 VALUE=\"$phone_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Password Telefono: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>Parola d`accesso del Telefono: </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=phone_pass SIZE=10 maxlength=20 VALUE=\"$phone_pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=Submit NAME=INVIA VALUE=INVIA></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSIONE: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSIONE: $version CONFIGURAZIONE: $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -390,7 +390,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<!-- Nessun interno preferito presente -->\n";
|
||||
echo "<!-- No Extension Favorites Present -->\n";
|
||||
}
|
||||
|
||||
### gather phone extensions and fullnames for favorites editor ###
|
||||
@@ -716,7 +716,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
}
|
||||
|
||||
// ################################################################################
|
||||
// LIVE TRUNK LIST FOR RIAGGANCIA/HIJACK MENU FUNCTIONS
|
||||
// LIVE TRUNK LIST FOR ATTACCA/HIJACK MENU FUNCTIONS
|
||||
function refresh_busytrunkhangup()
|
||||
{
|
||||
document.getElementById("TrunkHangupContent").innerHTML = Nactiveext;
|
||||
@@ -763,7 +763,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
}
|
||||
|
||||
// ################################################################################
|
||||
// LIVE LOCAL LIST FOR RIAGGANCIA/HIJACK MENU FUNCTIONS
|
||||
// LIVE LOCAL LIST FOR ATTACCA/HIJACK MENU FUNCTIONS
|
||||
function refresh_busylocalhangup()
|
||||
{
|
||||
document.getElementById("LocalHangupContent").innerHTML = Nactiveext;
|
||||
@@ -885,7 +885,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
else
|
||||
{
|
||||
bsr_continue=0;
|
||||
alert("Puoi soltanto monitorare i canali Zap:\n" + listenvalue);
|
||||
alert("Potete soltanto monitorare i canali Zap:\n" + listenvalue);
|
||||
}
|
||||
}
|
||||
if (bsr_continue == '1')
|
||||
@@ -1195,7 +1195,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
{
|
||||
recLIST = recLIST + "|" + monitorchannelvalue;
|
||||
filename = filedate + "_" + user_abb;
|
||||
var rec_start_html = "<a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + monitorchannelvalue + "','" + taskspan + "','" + filename + "');return false;\">Ferma Registrazione";
|
||||
var rec_start_html = "<a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + monitorchannelvalue + "','" + taskspan + "','" + filename + "');return false;\">Stop Registrazione";
|
||||
document.getElementById(taskspan).innerHTML = rec_start_html;
|
||||
|
||||
}
|
||||
@@ -1257,7 +1257,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
recLIST = recLIST + "|" + taskconfrec;
|
||||
filename = filedate + "_" + user_abb;
|
||||
var channelrec = "Local/" + taskconfrec + "@" + ext_context;
|
||||
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('StopMonitorConf','" + taskconfspan + "','" + taskconfrec + "','" + filename + "');return false;\">Ferma Registrazione</a>";
|
||||
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('StopMonitorConf','" + taskconfspan + "','" + taskconfrec + "','" + filename + "');return false;\">Stop Registrazione</a>";
|
||||
document.getElementById(taskconfspan).innerHTML = conf_rec_start_html;
|
||||
|
||||
}
|
||||
@@ -1384,7 +1384,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=3;
|
||||
if (live_calls > 0)
|
||||
{
|
||||
var live_calls_HTML = "<font face=\"Arial,Helvetica\"><B>CHIAMATE IN CORSO SU QUESTO TELEFONO:</B></font><BR><table width=100%><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">CANALE CLIENT</td><td><font class=\"log_title\">CANALE REMOTO</td><td><font class=\"log_title\">Registrazione</td><td><font class=\"log_title\">RIAGGANCIA</td><td><font class=\"log_title\">TRASF</td><td><font class=\"log_title\">ATTESA</td></tr>";
|
||||
var live_calls_HTML = "<font face=\"Arial,Helvetica\"><B>CHIAMATE ATTIVE SU QUESTO TELEFONO:</B></font><BR><table width=100%><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">CANALE CLIENT</td><td><font class=\"log_title\">CANALE REMOTO</td><td><font class=\"log_title\">Registrazione</td><td><font class=\"log_title\">ATTACCA</td><td><font class=\"log_title\">TRASF</td><td><font class=\"log_title\">PARK</td></tr>";
|
||||
if ( (LCAcount > live_calls) || (LCAcount < live_calls) )
|
||||
{
|
||||
LCAe[0]=''; LCAe[1]=''; LCAe[2]=''; LCAe[3]=''; LCAe[4]=''; LCAe[5]='';
|
||||
@@ -1410,11 +1410,11 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
|
||||
var regx = new RegExp("\\|"+channelfieldBtrunk_array[1],"ig");
|
||||
if (recLIST.match(regx))
|
||||
{live_calls_HTML = live_calls_HTML + "<span id=\"recordlive" + loop_ct + "\"><a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + channelfieldBtrunk_array[1] + "','recordlive" + loop_ct + "');return false;\">Ferma Registrazione</span>";}
|
||||
{live_calls_HTML = live_calls_HTML + "<span id=\"recordlive" + loop_ct + "\"><a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + channelfieldBtrunk_array[1] + "','recordlive" + loop_ct + "');return false;\">Stop Registrazione</span>";}
|
||||
else
|
||||
{live_calls_HTML = live_calls_HTML + "<span id=\"recordlive" + loop_ct + "\"><a href=\"#\" onclick=\"liverecording_send_recording('Monitor','" + channelfieldBtrunk_array[1] + "','recordlive" + loop_ct + "');return false;\">Registrazione</span>";}
|
||||
|
||||
live_calls_HTML = live_calls_HTML + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldBtrunk_array[1] + "');return false;\">RIAGGANCIA</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldBtrunk_array[1] + "','" + channelfieldA_array[1] + "');return false;\">TRASF</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('ParK','" + channelfieldBtrunk_array[1] + "');return false;\">ATTESA</td></tr>";
|
||||
live_calls_HTML = live_calls_HTML + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldBtrunk_array[1] + "');return false;\">ATTACCA</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldBtrunk_array[1] + "','" + channelfieldA_array[1] + "');return false;\">TRASF</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('ParK','" + channelfieldBtrunk_array[1] + "');return false;\">PARK</td></tr>";
|
||||
|
||||
if (LCAe[ARY_ct].length < 1)
|
||||
{LCAe[ARY_ct] = channelfieldA_array[1]; LCAcontent_change++; LCAalter++;}
|
||||
@@ -1531,7 +1531,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=0;
|
||||
if (out_calls > 0)
|
||||
{
|
||||
var out_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> DATA/ORA CHIAMATA</td><td><font class=\"log_title\">NUMERO</td><td align=right><font class=\"log_title\">LUNGHEZZA (M:SS)</td><td><font class=\"log_title\"> </td></tr>"
|
||||
var out_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> DATE/TIME DI CHIAMATA</td><td><font class=\"log_title\">NUMERO</td><td align=right><font class=\"log_title\">LUNGHEZZA (M:SS)</td><td><font class=\"log_title\"> </td></tr>"
|
||||
while (loop_ct < out_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -1559,7 +1559,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=0;
|
||||
if (in_calls > 0)
|
||||
{
|
||||
var in_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> DATA/ORA CHIAMATA</td><td><font class=\"log_title\">IN-NUMERO</td><td COLSPAN=2><font class=\"log_title\">CALLERID</td><td align=right><font class=\"log_title\">LUNGHEZZA</td><td><font class=\"log_title\"> </td></tr>"
|
||||
var in_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> DATE/TIME DI CHIAMATA</td><td><font class=\"log_title\">IN-NUMERO</td><td COLSPAN=2><font class=\"log_title\">CALLERID</td><td align=right><font class=\"log_title\">LUNGHEZZA</td><td><font class=\"log_title\"> </td></tr>"
|
||||
while (loop_ct < in_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -1634,7 +1634,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=-1;
|
||||
if (parked_count > 0)
|
||||
{
|
||||
var park_HTML = "<table width=600><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">CHANNEL<BR> CHIAMATA ID</td><td><font class=\"log_title\">MESSO IN ATTESA DA<BR> TEMPO IN ATTESA</td><td><font class=\"log_title\">RIAGGANCIA</td><td><font class=\"log_title\">TRASF</td><td><font class=\"log_title\">RIPRENDI</td></tr>"
|
||||
var park_HTML = "<table width=600><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">CHANNEL<BR> CHIAMATA ID</td><td><font class=\"log_title\">PARCHEGGIATO DA<BR> TEMPO PARCHEGGIATO</td><td><font class=\"log_title\">ATTACCA</td><td><font class=\"log_title\">TRASF</td><td><font class=\"log_title\">RIPRENDI</td></tr>"
|
||||
while (loop_ct < parked_count)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -1650,7 +1650,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var park_call_id = park_array[1];
|
||||
var parked_by = park_array[3];
|
||||
var parked_time = park_array[4];
|
||||
park_HTML = park_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + park_channel + "<BR> " + park_call_id + "</td><td><font class=\"log_text\">" + parked_by + "<BR> " + parked_time + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + park_channel + "');return false;\">RIAGGANCIA</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + park_channel + "');return false;\">TRASF</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('FROMParK','" + park_channel + "');return false;\">RIPRENDI</a></td></tr>";
|
||||
park_HTML = park_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + park_channel + "<BR> " + park_call_id + "</td><td><font class=\"log_text\">" + parked_by + "<BR> " + parked_time + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + park_channel + "');return false;\">ATTACCA</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + park_channel + "');return false;\">TRASF</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('FROMParK','" + park_channel + "');return false;\">RIPRENDI</a></td></tr>";
|
||||
|
||||
}
|
||||
park_HTML = park_HTML + "</table>";
|
||||
@@ -1762,7 +1762,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
show_reglink=1;
|
||||
reglink = "<a href=\"#\" onclick=\"conf_register_room('" + head_conf + "');return false;\">Register</a>";
|
||||
}
|
||||
var conf_head_HTML = "<font class=\"sh_text\">CONFERENZA " + head_conf + "</b></font><font class=\"sb_text\"> Registrato a: " + head_reg + " " + reglink + " <a href=\"#\" onclick=\"basic_originate_call('" + head_conf + "','NO','NO');return false;\">Entra in Conferenza </a><BR><a href=\"#\" onclick=\"check_for_conf_calls('" + head_conf + "','1');return false;\">Aggiorna </a> <span id=\"conf_rec_link\"><a href=\"#\" onclick=\"conf_send_recording('MonitorConf','conf_rec_link','" + head_conf + "');return false;\">Registrazione</a></span> <input TYPE=TEXT SIZE=15 NAME=conf_dtmf STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendConfDTMF(" + head_conf + ");\">Trasmetti Tono Tastiera</A> <input TYPE=TEXT SIZE=15 NAME=conf_dial STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendManualDial('YES'," + head_conf + ");\">Chiama dalla Conferenza</A><BR></font>";
|
||||
var conf_head_HTML = "<font class=\"sh_text\">CONFERENZA " + head_conf + "</b></font><font class=\"sb_text\"> Registrato a: " + head_reg + " " + reglink + " <a href=\"#\" onclick=\"basic_originate_call('" + head_conf + "','NO','NO');return false;\">Entra in Conferenza </a><BR><a href=\"#\" onclick=\"check_for_conf_calls('" + head_conf + "','1');return false;\">Aggiorna </a> <span id=\"conf_rec_link\"><a href=\"#\" onclick=\"conf_send_recording('MonitorConf','conf_rec_link','" + head_conf + "');return false;\">Registrazione</a></span> <input TYPE=TEXT SIZE=15 NAME=conf_dtmf STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendConfDTMF(" + head_conf + ");\">Trasmetta DTMF</A> <input TYPE=TEXT SIZE=15 NAME=conf_dial STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendManualDial('YES'," + head_conf + ");\">Chiama dalla Conferenza</A><BR></font>";
|
||||
|
||||
document.getElementById("ConfereNceHeaderContent").innerHTML = conf_head_HTML;
|
||||
check_for_conf_calls(head_conf,taskrefresh);
|
||||
@@ -1823,7 +1823,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var LMAcontent_change=0;
|
||||
var LMAcontent_match=0;
|
||||
var conv_start=-1;
|
||||
var live_conf_HTML = "<font face=\"Arial,Helvetica\"><B>CHIAMATE IN CORSO IN QUESTA CONFERENZA:</B></font><BR><TABLE WIDTH=500><TR BGCOLOR=#E6E6E6><TD><font class=\"log_title\">#</TD><TD><font class=\"log_title\">CANALE REMOTO</TD><TD><font class=\"log_title\">RIAGGANCIA</TD><TD><font class=\"log_title\">TRASF</TD></TR>";
|
||||
var live_conf_HTML = "<font face=\"Arial,Helvetica\"><B>CHIAMATE ATTIVE IN QUESTA CONFERENZA:</B></font><BR><TABLE WIDTH=500><TR BGCOLOR=#E6E6E6><TD><font class=\"log_title\">#</TD><TD><font class=\"log_title\">CANALE REMOTO</TD><TD><font class=\"log_title\">ATTACCA</TD><TD><font class=\"log_title\">TRASF</TD></TR>";
|
||||
if ( (LMAcount > live_conf_calls) || (LMAcount < live_conf_calls) || (LMAforce > 0))
|
||||
{
|
||||
LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]='';
|
||||
@@ -1839,7 +1839,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
{var row_color = '#CCCCFF';}
|
||||
var conv_ct = (loop_ct + conv_start);
|
||||
var channelfieldA = conf_chan_array[conv_ct];
|
||||
live_conf_HTML = live_conf_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + channelfieldA + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldA + "');return false;\">RIAGGANCIA</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldA + "');return false;\">TRASF</td></tr>";
|
||||
live_conf_HTML = live_conf_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + channelfieldA + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldA + "');return false;\">ATTACCA</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldA + "');return false;\">TRASF</td></tr>";
|
||||
|
||||
if (!LMAe[ARY_ct])
|
||||
{LMAe[ARY_ct] = channelfieldA; LMAcontent_change++; LMAalter++;}
|
||||
@@ -2061,7 +2061,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
}
|
||||
|
||||
// ################################################################################
|
||||
// Send Originate command to manager to direct user to Casella Voicemail
|
||||
// Send Originate command to manager to direct user to Casella del voicemail
|
||||
function SendCheckVoiceMail()
|
||||
{
|
||||
var xmlhttp=false;
|
||||
@@ -2288,7 +2288,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var VD_favlist_ct_half = parseInt(favlistCT / 2);
|
||||
if (VD_favlist_ct_half < 30) {VD_favlist_ct_half = 30;}
|
||||
var favlist_sec_col = 0;
|
||||
var favedit_HTML = "<center><table cellpadding=5 cellspacing=5 width=750><tr><td colspan=2 align=center bgcolor=\"#DDDD99\"><B>INTERNI DISPONIBILI</B></td><td align=center bgcolor=\"#CCCC99\"><B> PREFERITI</B></td></tr><tr><td bgcolor=\"#DDDD99\" height=380 width=200 valign=top><font class=\"ss_text\"><span id=FavSelectA>";
|
||||
var favedit_HTML = "<center><table cellpadding=5 cellspacing=5 width=750><tr><td colspan=2 align=center bgcolor=\"#DDDD99\"><B>INTERNI DISPONIBILI</B></td><td align=center bgcolor=\"#CCCC99\"><B> FAVORITI</B></td></tr><tr><td bgcolor=\"#DDDD99\" height=380 width=200 valign=top><font class=\"ss_text\"><span id=FavSelectA>";
|
||||
loop_ct = 0;
|
||||
while (loop_ct < favlistCT)
|
||||
{
|
||||
@@ -2385,7 +2385,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
hideDiv('MainPanel');
|
||||
showDiv('LogouTBox');
|
||||
|
||||
document.getElementById("LogouTBoxLink").innerHTML = "<a href=\"" + agcPAGE + "?relogin=YES&session_epoch=" + epoch_sec + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&user=" + user + "&phone_login=" + phone_login + "&phone_pass=" + phone_pass + "\">FAI CLICK QUI PER AUTENTICARTI DI NUOVO</a>\n";
|
||||
document.getElementById("LogouTBoxLink").innerHTML = "<a href=\"" + agcPAGE + "?relogin=YES&session_epoch=" + epoch_sec + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&user=" + user + "&phone_login=" + phone_login + "&phone_pass=" + phone_pass + "\">FAI CLICK QUI PER LOGGARTI DI NUOVO </a>\n";
|
||||
|
||||
logout_stop_timeouts = 1;
|
||||
|
||||
@@ -2716,14 +2716,14 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=5 VALIGN=TOP ALIGN=LEFT>
|
||||
<INPUT TYPE=HIDDEN NAME=extension>
|
||||
<font class="body_text">
|
||||
<? echo "Benvenuto $LOGfullname, Sei collegato con questo telefono: $fullname - $protocol/$extension su $server_ip <a href=\"#\" onclick=\"LogouT();return false;\">LOGOUT</a><BR>\n"; ?>
|
||||
<? echo "Benvenuto $LOGfullname, siete loggati dentro questo telefono: $fullname - $protocol/$extension su $server_ip <a href=\"#\" onclick=\"LogouT();return false;\">LOGOUT</a><BR>\n"; ?>
|
||||
</TD></TR>
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD><A HREF="#" onclick="MainPanelToFront();"><IMG SRC="../agc/images/agc_tab_main.gif" ALT="Pannello Principale" WIDTH=83 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ActiveLinesPanelToFront();"><IMG SRC="../agc/images/agc_tab_active_lines.gif" ALT="Pannello Linee Attive" WIDTH=139 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ActiveLinesPanelToFront();"><IMG SRC="../agc/images/agc_tab_active_lines.gif" ALT="Pannello Linee Attive " WIDTH=139 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ConfereNcesPanelToFront();"><IMG SRC="../agc/images/agc_tab_conferences.gif" ALT="Pannello Conferenze" WIDTH=139 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><A HREF="#" onclick="SendCheckVoiceMail();"><IMG SRC="../agc/images/agc_check_voicemail_ON.gif" NAME=voicemail ALT="Controlla Posta Vocale" WIDTH=170 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Chimata in corso" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
<TD><A HREF="#" onclick="SendCheckVoiceMail();"><IMG SRC="../agc/images/agc_check_voicemail_ON.gif" NAME=voicemail ALT="Controlla la Voicemail" WIDTH=170 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Chimate Attive" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</SPAN>
|
||||
|
||||
@@ -2732,59 +2732,59 @@ echo "</head>\n";
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:12px;z-index:29;" id="TrunkHangupBox">
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> TRUNK RIAGGANCIA <BR><BR>
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> TRUNK ATTACCA <BR><BR>
|
||||
<span id="TrunkHangupContent"> Active Trunks Menu </span><BR>
|
||||
<span id="TrunkHangup_HUlink"><a href="#" onclick="busyhangup_send_hangup('Trunk');return false;">Disconnetti il Trunk</a> | </span>
|
||||
<span id="TrunkHangup_HJlink"><a href="#" onclick="busyhangup_send_redirect('Trunk','HIJACK');return false;">Dirotta il Trunk</a> | </span>
|
||||
<span id="TrunkHangup_ZMlink"><a href="#" onclick="busyhangup_send_redirect('Trunk','LISTEN');return false;">Ascolta il Trunk</a> | </span>
|
||||
<a href="#" onclick="busytrunkhangup_force_refresh();return false;">Aggiorna</a> |
|
||||
<a href="#" onclick="hideTrunkHangup('TrunkHangupBox');">Torna alla schermata principale</a>
|
||||
<a href="#" onclick="hideTrunkHangup('TrunkHangupBox');">Tornate alla schermata principale</a>
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:12px;z-index:28;" id="LocalHangupBox">
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> DISCONNETTI LOCALE <BR><BR>
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> DISCONNETTI LOCALI <BR><BR>
|
||||
<span id="LocalHangupContent"> Menu Locale Attivo </span><BR>
|
||||
<span id="LocalHangup_HUlink"><a href="#" onclick="busyhangup_send_hangup('Local');return false;">Disconnetti locale</a> | </span>
|
||||
<span id="LocalHangup_HJlink"><a href="#" onclick="busyhangup_send_redirect('Local');return false;">Dirotta Locale</a> | </span>
|
||||
<span id="LocalHangup_ZMlink"><a href="#" onclick="busyhangup_send_redirect('Local','LISTEN');return false;">Ascolta locale</a> | </span>
|
||||
<span id="LocalHangup_HJlink"><a href="#" onclick="busyhangup_send_redirect('Local');return false;">Dirotta il Locale</a> | </span>
|
||||
<span id="LocalHangup_ZMlink"><a href="#" onclick="busyhangup_send_redirect('Local','LISTEN');return false;">Ascolta il locale</a> | </span>
|
||||
<a href="#" onclick="busylocalhangup_force_refresh();return false;">Aggiorna</a> |
|
||||
<a href="#" onclick="hideLocalHangup('LocalHangupBox');">Torna alla schermata principale</a>
|
||||
<a href="#" onclick="hideLocalHangup('LocalHangupBox');">Tornate alla schermata principale</a>
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
|
||||
<input type=hidden name=H_XfeR_channel>
|
||||
<input type=hidden name=M_XfeR_channel>
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRASFERIMENTO CHIAMATA IN CORSO</b> <BR>Canale trasferito: <span id="MainXfeRChanneL">Canale</span><BR></tr>
|
||||
<tr><td>Interni:<BR><span id="MainXfeRContent"> Menu Interni </span></td>
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> TRASFERIMENTO CHIAMATA ATTIVA</b> <BR>Canale trasferito: <span id="MainXfeRChanneL">Canale</span><BR></tr>
|
||||
<tr><td>Interni:<BR><span id="MainXfeRContent"> Menu degli Interni </span></td>
|
||||
<td>
|
||||
<BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('XfeR');return false;">Invia all` interno selezionato</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('VMAIL');return false;">Invia alla VoiceMail selezionata</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('ENTRY');return false;">Invia a questo numero </a>:<BR><input type=text name=extension_xfer_entry size=20 maxlength=50> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('MainXfeRBox');return false;">Aggiorna</a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideMainXfeR('MainXfeRBox');">Torna alla schermata principale</a> <BR><BR>
|
||||
<a href="#" onclick="hideMainXfeR('MainXfeRBox');">Tornate alla schermata principale</a> <BR><BR>
|
||||
</TD>
|
||||
<TD>Conferenze:<BR><font size=1>(Seleziona un numero per inviarlo ad una conferenza)<BR><input type=checkbox name=MainXfeRconfXTRA size=1 value="1"> Invia anche il mio canale<div class="scroll_list" id="MainXfeRconfContent"> Menu Conferenze </div></td></TR></TABLE>
|
||||
<TD>Conferenze:<BR><font size=1>(Seleziona il numero sopra per inviarlo ad una conferenza)<BR><input type=checkbox name=MainXfeRconfXTRA size=1 value="1"> Invia anche il mio canale<div class="scroll_list" id="MainXfeRconfContent"> Menu Conferenza </div></td></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:80px;top:12px;z-index:43;" id="LocalDialBox">
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> Chiamata Interni locali</b> <BR>Chiamata proveniente da: <span id="LocalDialChanneL">Canale</span><BR></tr>
|
||||
<tr><td>Interni:<BR><span id="LocalDialContent"> Menu Interni </span></td>
|
||||
<tr><td>Interni:<BR><span id="LocalDialContent"> Menu degli Interni </span></td>
|
||||
<td>
|
||||
<BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('DiaL','','');return false;">Chiama l` interno selezionato</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('VMAIL');return false;">Chiama la VoiceMail selezionata</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('VMAIL');return false;">Chiama la Voice Mail selezionata</a> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('LocalDialBox');return false;">Aggiorna</a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideLocalDial('LocalDialBox');">Torna alla schermata principale</a> <BR><BR>
|
||||
<a href="#" onclick="hideLocalDial('LocalDialBox');">Tornate alla schermata principale</a> <BR><BR>
|
||||
</TD>
|
||||
<TD></td></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:40px;top:12px;z-index:41;" id="ParkDisplayBox">
|
||||
<table border=0 bgcolor="#FFFFCC" width=640 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> CHIAMATE IN ATTESA:</b> <div class="scroll_park" id="ParkDisplayContents"></div>
|
||||
<a href="#" onclick="hideParkDisplay('ParkDisplayBox');">Torna alla schermata principale</a> <BR><BR>
|
||||
<table border=0 bgcolor="#FFFFCC" width=640 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> CHIAMATE PARCHEGGIATE:</b> <div class="scroll_park" id="ParkDisplayContents"></div>
|
||||
<a href="#" onclick="hideParkDisplay('ParkDisplayBox');">Tornate alla schermata principale</a> <BR><BR>
|
||||
</td></TR></TABLE>
|
||||
</span>
|
||||
|
||||
@@ -2796,17 +2796,17 @@ echo "</head>\n";
|
||||
<tr><td><span id="busycallsdebug"></span></td></tr>
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>VOICEMAIL </B></font> NUOVO: <span id="new_vmail_span"></span> VECCHIO: <span id="old_vmail_span"></span> <font face="Arial,Helvetica"><B>Chiamata Manuale </B></font><input TYPE=TEXT SIZE=20 NAME=manual_dial STYLE="font-family : sans-serif; font-size : 10px"> <A HREF="#" onclick="SendManualDial();">CHIAMA</A></td></tr>
|
||||
|
||||
<tr><td align=center><a href="#" onclick="showParkDisplay('ParkDisplayBox');return false;"><font face="Arial,Helvetica"><B>CHIAMATE IN ATTESA</B></a>: <span id="parked_calls_count">0</span> <a href="#" onclick="showLocalDial('LocalDialBox');return false;"><font face="Arial,Helvetica"><B>INTERNI DI CHIAMATA LOCALE</a></td></tr>
|
||||
<tr><td align=center><a href="#" onclick="showParkDisplay('ParkDisplayBox');return false;"><font face="Arial,Helvetica"><B>CHIAMATE PARCHEGGIATE</B></a>: <span id="parked_calls_count">0</span> <a href="#" onclick="showLocalDial('LocalDialBox');return false;"><font face="Arial,Helvetica"><B>INTERNI DI CHIAMATA LOCALE</a></td></tr>
|
||||
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>CHIAMATE OUTBOUND:</B></font></td></tr>
|
||||
<tr><td align=center><div class="scroll_log" id="outboundcallsspan"></div></td></tr>
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>CHIAMATE INBOUND:</B></font></td></tr>
|
||||
<tr><td align=center><div class="scroll_log" id="inboundcallsspan"></div></td></tr>
|
||||
<tr><td align=left><font face="Arial,Helvetica" size=1>Versione di astGUIclient web-client:<? echo $version ?> BUILD:<? echo $build ?></font></td></tr>
|
||||
<tr><td align=left><font face="Arial,Helvetica" size=1>VERSIONEE web del astGUIclient:<? echo $version ?> CONFIGURAZIONE:<? echo $build ?></font></td></tr>
|
||||
</TABLE>
|
||||
|
||||
<span style="position:absolute;left:640px;top:0px;z-index:33;" id="FavoriteSBox">
|
||||
<table border=0 bgcolor="#DDDDFF" width=200 height=400 cellpadding=2 ALIGN=TOP><TR><TD align=center><span id="FavoriteSContent"><font class="sh_text"> PREFERITI</font><font class="sb_text"> <a href="#" onclick="favorites_editor('BuilD');return false;"> modifica</a></span></TD></TR>
|
||||
<table border=0 bgcolor="#DDDDFF" width=200 height=400 cellpadding=2 ALIGN=TOP><TR><TD align=center><span id="FavoriteSContent"><font class="sh_text"> FAVORITI</font><font class="sb_text"> <a href="#" onclick="favorites_editor('BuilD');return false;"> modifica</a></span></TD></TR>
|
||||
<?
|
||||
$h=0;
|
||||
while ($favorites_count > $h)
|
||||
@@ -2824,10 +2824,10 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:5px;top:5px;z-index:34;" id="FavoriteSEdiT">
|
||||
<table border=0 bgcolor="#DDDDFF" width=800 height=450 cellpadding=2 ALIGN=TOP><TR HEIGHT=95%><TD align=center HEIGHT=95%><span id="FavoriteSEditContent"> PREFERITI</span></TD></TR>
|
||||
<table border=0 bgcolor="#DDDDFF" width=800 height=450 cellpadding=2 ALIGN=TOP><TR HEIGHT=95%><TD align=center HEIGHT=95%><span id="FavoriteSEditContent"> FAVORITI</span></TD></TR>
|
||||
<TR><TD ALIGN=CENTER><BR> </TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="SubmiT_FavoritE_ChangEs();return false;">SALVA I CAMBIAMENTI AI PREFERITI - richiede Logout</a></TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="hideDiv('FavoriteSEdiT');return false;">TORNA ALLA SCHERMATA PRECEDENTE- ignora i cambiamenti fatti</a></TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="SubmiT_FavoritE_ChangEs();return false;">SALVA I CAMBIAMENTI - richiede Logout</a></TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="hideDiv('FavoriteSEdiT');return false;">TORNA SCHERMATA PRECEDENTE- ignora i cambiamenti fatti</a></TD></TR>
|
||||
</TABLE>
|
||||
</span>
|
||||
|
||||
@@ -2837,7 +2837,7 @@ echo "</head>\n";
|
||||
<span style="position:absolute;left:0px;top:46px;z-index:20;" id="ActiveLinesPanel">
|
||||
<table border=0 BGCOLOR="#CDE0C2" width=640>
|
||||
<tr><td colspan=3>
|
||||
<a href="#" onclick="pause();return false;">PAUSE</a> | <a href="#" onclick="start();return false;">INIZIO</a> Frequenza di aggiornamento: <span id="refresh_rate">1000 ms</span> <a href="#" onclick="faster();return false;">Piu` veloce</a> | <a href="#" onclick="slower();return false;">Piu` lento</a></p>
|
||||
<a href="#" onclick="pause();return false;">PAUSA</a> | <a href="#" onclick="start();return false;">INIZIO</a> Aggiorna i tempi: <span id="refresh_rate">1000 ms</span> <a href="#" onclick="faster();return false;">Più velocemente</a> | <a href="#" onclick="slower();return false;">Più lento</a></p>
|
||||
<div id="status"><em>Inizializzazione..</em></div>
|
||||
</td></tr>
|
||||
<tr><td>Interni Attivi <BR>
|
||||
@@ -2858,7 +2858,7 @@ echo "</head>\n";
|
||||
<tr><td VALIGN=TOP>
|
||||
<span id="activeext"><em>I Dati vanno inseriti qui</em></span><BR><BR>
|
||||
</td><td VALIGN=TOP>
|
||||
<span id="busytrunk"><em>I Dati vanno inseriti qui</em></span><BR><BR><span id="TrunkHangupLink"><a href="#" onclick="showTrunkHangup('TrunkHangupBox');return false;">Azione Trunk</a></span>
|
||||
<span id="busytrunk"><em>I Dati vanno inseriti qui</em></span><BR><BR><span id="TrunkHangupLink"><a href="#" onclick="showTrunkHangup('TrunkHangupBox');return false;">Azione Del Trunk</a></span>
|
||||
</td><td VALIGN=TOP>
|
||||
<span id="busyext"><em>I Dati vanno inseriti qui</em></span><BR><BR><span id="LocalHangupLink"><a href="#" onclick="showLocalHangup('LocalHangupBox');return false;">Azione Locale</a></span>
|
||||
</td></tr>
|
||||
@@ -2877,7 +2877,7 @@ echo "</head>\n";
|
||||
|
||||
<span style="position:absolute;left:140px;top:0px;z-index:32;color:black;width:500;" id="ConfereNceHeaderSpan">
|
||||
<span id="ConfereNceHeaderContent"> </span><BR>
|
||||
<span style="width:540;height:400;" id="ConfereNceDetailContent">Seleziona una conferenza sulla sinistra per informazioni su di essa </span>
|
||||
<span style="width:540;height:400;" id="ConfereNceDetailContent">Seleziona una stanza sulla sinistra per informazioni sulla conferenza </span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -81,7 +81,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -93,7 +93,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -107,7 +107,7 @@ if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Visualizza il Call Log";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
@@ -120,7 +120,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten non e` valido o protocollo $protocol non e` valido\n";
|
||||
echo "Exten $exten non è valido o protocollo $protocol non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -111,7 +120,7 @@ $auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -119,7 +128,7 @@ $auth=$row[0];
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -131,7 +140,7 @@ $auth=$row[0];
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -145,7 +154,7 @@ if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build MEETME: $conf_exten server_ip: $server_ip-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build MEETME: $conf_exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Controllo interni della conferenza";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
@@ -160,7 +169,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if (strlen($conf_exten)<1)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Conf Exten $conf_exten non e` valido\n";
|
||||
echo "Conf Exten $conf_exten non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Stato: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
@@ -292,7 +316,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ( (strlen($conf_exten)<1) || (strlen($exten)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Conf Exten $conf_exten non e` valido or Exten $exten non e` valido\n";
|
||||
echo "Conf Exten $conf_exten non è valido or Exten $exten non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -301,7 +325,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
echo "Conferenza $conf_exten e` stato registrato a $exten\n";
|
||||
echo "Conferenza $conf_exten è stato registrato $exten\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ if ( (eregi("^Zap",$channel)) and (!eregi("-",$channel)) ) {$channel = "$channel
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -93,7 +93,7 @@ if ( (eregi("^Zap",$channel)) and (!eregi("-",$channel)) ) {$channel = "$channel
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -105,7 +105,7 @@ if ( (eregi("^Zap",$channel)) and (!eregi("-",$channel)) ) {$channel = "$channel
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -124,7 +124,7 @@ while ( (strlen($user_abb) > 4) and ($forever_stop < 200) )
|
||||
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build UNIQUEID: $uniqueid server_ip: $server_ip-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build UNIQUEID: $uniqueid server_ip: $server_ip-->\n";
|
||||
?>
|
||||
<script language="Javascript">
|
||||
var server_ip = '<? echo $server_ip ?>';
|
||||
@@ -250,11 +250,11 @@ echo "<!-- VERSIONE: $version BUILD: $build UNIQUEID: $uniqueid server_
|
||||
</script>
|
||||
|
||||
<?
|
||||
echo "<title>CHIAMATA INBOUND IN CORSO";
|
||||
echo "<title>CHIAMATA INBOUND ATTIVA";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=\"#CCC2E0\" marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onload=\"link_timeout();\">\n";
|
||||
echo "<CENTER><H2>CHIAMATA INBOUND IN CORSO</H2>\n";
|
||||
echo "<CENTER><H2>CHIAMATA INBOUND ATTIVA</H2>\n";
|
||||
echo "<B>$NOW_TIME</B><BR><BR>\n";
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ echo "<B>$NOW_TIME</B><BR><BR>\n";
|
||||
if (strlen($uniqueid)<9)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Uniqueid $uniqueid non e` valido\n";
|
||||
echo "Uniqueid $uniqueid non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -321,8 +321,8 @@ echo "<B>$NOW_TIME</B><BR><BR>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Numero chiamato: </td><td align=left>$row[8]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Note: </td><td align=left>$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td colspan=2 align=center>\n<span id=\"callactions\">";
|
||||
echo "<a href=\"#\" onclick=\"livehangup_send_hangup('$row[1]');return false;\">RIAGGANCIA</a> - \n";
|
||||
echo "<a href=\"#\" onclick=\"liveredirect_send_vmail('$row[1]','$vmail_box');return false;\">INVIA ALLA MIA VOICEMAIL</a>\n";
|
||||
echo "<a href=\"#\" onclick=\"livehangup_send_hangup('$row[1]');return false;\">ATTACCA</a> - \n";
|
||||
echo "<a href=\"#\" onclick=\"liveredirect_send_vmail('$row[1]','$vmail_box');return false;\">INVIA AL MIO VOICEMAIL</a>\n";
|
||||
echo "</span></td></tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -82,7 +82,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -94,7 +94,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -108,7 +108,7 @@ if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Controllo Interni Attivi ";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
@@ -131,7 +131,7 @@ echo "$row[0]|";
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten non e` valido o protocollo $protocol non e` valido\n";
|
||||
echo "Exten $exten non è valido o protocollo $protocol non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
@@ -188,7 +192,7 @@ $auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -196,7 +200,7 @@ $auth=$row[0];
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -208,7 +212,7 @@ $auth=$row[0];
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -222,8 +226,8 @@ if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build ACTION: $ACTION server_ip: $server_ip-->\n";
|
||||
echo "<title>Invio Manager: ";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build ACTION: $ACTION server_ip: $server_ip-->\n";
|
||||
echo "<title>Il Responsabile invia a: ";
|
||||
if ($ACTION=="Originate") {echo "Originate";}
|
||||
if ($ACTION=="Redirect") {echo "Redirect";}
|
||||
if ($ACTION=="RedirectName") {echo "RedirectName";}
|
||||
@@ -246,14 +250,14 @@ if ($ACTION=="SysCIDOriginate")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<1) )
|
||||
{
|
||||
echo "Exten $exten non e` valido or queryCID $queryCID non e` valido, Originate comando non inserito\n";
|
||||
echo "Exten $exten non è valido or queryCID $queryCID non è valido, Originate comando non inserito\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$queryCID','Channel: $channel','Context: $ext_context','Exten: $exten','Priority: $ext_priority','Callerid: $queryCID','','','','','');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Originate comando inviato per Exten $exten Canale $channel su $server_ip\n";
|
||||
echo "Originate comando inviato a Exten $exten Canale $channel su $server_ip\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,12 +271,12 @@ if ($ACTION=="OriginateName")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nOriginateName Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -295,13 +299,13 @@ if ($ACTION=="OriginateNameVmail")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere settato\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere regolato\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nOriginateNameVmail Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -338,7 +342,7 @@ if ($ACTION=="Originate")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<10) )
|
||||
{
|
||||
echo "Exten $exten non e` valido or queryCID $queryCID non e` valido, Originate comando non inserito\n";
|
||||
echo "Exten $exten non è valido or queryCID $queryCID non è valido, Originate comando non inserito\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -349,7 +353,7 @@ if ($ACTION=="Originate")
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$queryCID','Channel: $channel','Context: $ext_context','Exten: $exten','Priority: $ext_priority','Callerid: $outCID','','','','','');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Originate comando inviato per Exten $exten Canale $channel su $server_ip\n";
|
||||
echo "Originate comando inviato a Exten $exten Canale $channel su $server_ip\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,7 +369,7 @@ if ($ACTION=="HangupConfDial")
|
||||
if ( (strlen($exten)<3) or (strlen($queryCID)<15) or (strlen($ext_context)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "conference $exten non e` valido or ext_context $ext_context or queryCID $queryCID non e` valido, Hangup comando non inserito\n";
|
||||
echo "conference $exten non è valido or ext_context $ext_context or queryCID $queryCID non è valido, Hangup comando non inserito\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -402,7 +406,7 @@ if ($ACTION=="Hangup")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Canale $channel non e` valido or queryCID $queryCID non e` valido, Hangup comando non inserito\n";
|
||||
echo "Canale $channel non è valido or queryCID $queryCID non è valido, Hangup comando non inserito\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -432,7 +436,7 @@ if ($ACTION=="Hangup")
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
echo "Call $CalLCID $channel non e` attivo su $call_server_ip, Checking Live Canale...\n";
|
||||
echo "Call $CalLCID $channel non è attivo su $call_server_ip, Checking Live Canale...\n";
|
||||
|
||||
$stmt="SELECT count(*) FROM live_channels where server_ip = '$call_server_ip' and channel='$channel' and extension LIKE \"%$exten\";";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
@@ -441,7 +445,7 @@ if ($ACTION=="Hangup")
|
||||
if ($row[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Canale $channel non e` attivo su $call_server_ip, Hangup comando non inserito $rowx[0]\n$stmt\n";
|
||||
echo "Canale $channel non è attivo su $call_server_ip, Hangup comando non inserito $rowx[0]\n$stmt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -454,7 +458,7 @@ if ($ACTION=="Hangup")
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$call_server_ip','','Hangup','$queryCID','Channel: $channel','','','','','','','','','');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Hangup comando inviato per Canale $channel su $call_server_ip\n";
|
||||
echo "Hangup comando inviato a Canale $channel su $call_server_ip\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -470,16 +474,16 @@ if ($ACTION=="RedirectVD")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($campaign)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($uniqueid)<2) or (strlen($lead_id)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "auto_dial_level $auto_dial_level deve essere settato\n";
|
||||
echo "campaign $campaign deve essere settato\n";
|
||||
echo "uniqueid $uniqueid deve essere settato\n";
|
||||
echo "lead_id $lead_id deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "auto_dial_level $auto_dial_level deve essere regolato\n";
|
||||
echo "campaign $campaign deve essere regolato\n";
|
||||
echo "uniqueid $uniqueid deve essere regolato\n";
|
||||
echo "lead_id $lead_id deve essere regolato\n";
|
||||
echo "\nRedirectVD Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -517,14 +521,14 @@ if ($ACTION=="RedirectToPark")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($parkedby)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "extenName $extenName deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "parkedby $parkedby deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "extenName $extenName deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "parkedby $parkedby deve essere regolato\n";
|
||||
echo "\nRedirectToPark Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -542,12 +546,12 @@ if ($ACTION=="RedirectFromPark")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nRedirectFromPark Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -565,12 +569,12 @@ if ($ACTION=="RedirectName")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nRedirectName Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -593,13 +597,13 @@ if ($ACTION=="RedirectNameVmail")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere settato\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "extenName $extenName deve essere regolato\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nRedirectNameVmail Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -627,13 +631,13 @@ if ($ACTION=="RedirectXtraCX")
|
||||
{
|
||||
$channel_liveX=0;
|
||||
$channel_liveY=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "ExtraCanale $extrachannel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "ExtraCanale $extrachannel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nRedirect Action non trasmesso\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename))
|
||||
{
|
||||
@@ -662,8 +666,8 @@ if ($ACTION=="RedirectXtraCX")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Canale $channel non e` attivo su $call_server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $call_server_ip";}
|
||||
echo "Canale $channel non è attivo su $call_server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $call_server_ip";}
|
||||
}
|
||||
}
|
||||
$stmt="SELECT count(*) FROM live_channels where server_ip = '$server_ip' and channel='$extrachannel';";
|
||||
@@ -679,8 +683,8 @@ if ($ACTION=="RedirectXtraCX")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "Canale $channel non e` attivo su $server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $server_ip";}
|
||||
echo "Canale $channel non è attivo su $server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $server_ip";}
|
||||
}
|
||||
}
|
||||
if ( ($channel_liveX==1) && ($channel_liveY==1) )
|
||||
@@ -725,7 +729,7 @@ if ($ACTION=="RedirectXtraCX")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "RedirectXtraCX comando inviato per Canale $channel su $call_server_ip and \nHungup $extrachannel su $server_ip\n";
|
||||
echo "RedirectXtraCX comando inviato a Canale $channel su $call_server_ip and \nHungup $extrachannel su $server_ip\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel su $call_server_ip, Hungup $extrachannel su $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -764,13 +768,13 @@ if ($ACTION=="RedirectXtra")
|
||||
{
|
||||
$channel_liveX=0;
|
||||
$channel_liveY=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "ExtraCanale $extrachannel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "ExtraCanale $extrachannel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nRedirect Action non trasmesso\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename))
|
||||
{
|
||||
@@ -800,8 +804,8 @@ if ($ACTION=="RedirectXtra")
|
||||
else
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Impossibile trovare conferenze vuote su $server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "Impossibile trovare conferenze vuote su $server_ip";}
|
||||
echo "Non puoi trovare conferenze vuote su $server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "Non puoi trovare conferenze vuote su $server_ip";}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -820,8 +824,8 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Canale $channel non e` attivo su $call_server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $call_server_ip";}
|
||||
echo "Canale $channel non è attivo su $call_server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $call_server_ip";}
|
||||
}
|
||||
}
|
||||
$stmt="SELECT count(*) FROM live_channels where server_ip = '$server_ip' and channel='$extrachannel';";
|
||||
@@ -837,8 +841,8 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "Canale $channel non e` attivo su $server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $server_ip";}
|
||||
echo "Canale $channel non è attivo su $server_ip, Redirect comando non inserito\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $server_ip";}
|
||||
}
|
||||
}
|
||||
if ( ($channel_liveX==1) && ($channel_liveY==1) )
|
||||
@@ -849,7 +853,7 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "RedirectXtra comando inviato per Canale $channel and \nExtraCanale $extrachannel\n to $exten su $server_ip\n";
|
||||
echo "RedirectXtra comando inviato a Canale $channel and \nExtraCanale $extrachannel\n to $exten su $server_ip\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel and $extrachannel to $exten su $server_ip";}
|
||||
}
|
||||
else
|
||||
@@ -874,7 +878,7 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "RedirectXtra comando inviato per Canale $channel su $call_server_ip and \nExtraCanale $extrachannel\n to $exten su $server_ip\n";
|
||||
echo "RedirectXtra comando inviato a Canale $channel su $call_server_ip and \nExtraCanale $extrachannel\n to $exten su $server_ip\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel/$call_server_ip and $extrachannel/$server_ip to $exten";}
|
||||
}
|
||||
}
|
||||
@@ -904,7 +908,7 @@ if ($ACTION=="RedirectXtra")
|
||||
|
||||
if ($ACTION=="Redirect")
|
||||
{
|
||||
### for manual dial VICIDial calls send the second attempt to transfer the call
|
||||
### for manual dial VICICHIAMA calls send the second attempt to transfer the call
|
||||
if ($stage=="2NDXfeR")
|
||||
{
|
||||
$local_DEF = 'Local/';
|
||||
@@ -932,12 +936,12 @@ if ($ACTION=="Redirect")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Una di queste variabili non e` valido:\n";
|
||||
echo "Canale $channel deve essere piu` grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere piu` grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere settato\n";
|
||||
echo "ext_context $ext_context deve essere settato\n";
|
||||
echo "ext_priority $ext_priority deve essere settato\n";
|
||||
echo "Una di queste variabili non è valido:\n";
|
||||
echo "Canale $channel deve essere più grande di 2 caratteri\n";
|
||||
echo "queryCID $queryCID deve essere più grande di 14 caratteri\n";
|
||||
echo "exten $exten deve essere regolato\n";
|
||||
echo "ext_context $ext_context deve essere regolato\n";
|
||||
echo "ext_priority $ext_priority deve essere regolato\n";
|
||||
echo "\nRedirect Action non trasmesso\n";
|
||||
}
|
||||
else
|
||||
@@ -956,7 +960,7 @@ if ($ACTION=="Redirect")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Canale $channel non e` attivo su $server_ip, Redirect comando non inserito\n";
|
||||
echo "Canale $channel non è attivo su $server_ip, Redirect comando non inserito\n";
|
||||
}
|
||||
}
|
||||
if ($channel_live==1)
|
||||
@@ -965,7 +969,7 @@ if ($ACTION=="Redirect")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "Redirect comando inviato per Canale $channel su $server_ip\n";
|
||||
echo "Redirect comando inviato a Canale $channel su $server_ip\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -987,7 +991,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($filename)<15) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Canale $channel non e` valido or queryCID $queryCID non e` valido or filename: $filename non e` valido, $ACTION comando non inserito\n";
|
||||
echo "Canale $channel non è valido or queryCID $queryCID non è valido or filename: $filename non è valido, $ACTION comando non inserito\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1004,7 +1008,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Canale $channel non e` attivo su $server_ip, $ACTION comando non inserito\n";
|
||||
echo "Canale $channel non è attivo su $server_ip, $ACTION comando non inserito\n";
|
||||
}
|
||||
}
|
||||
if ($channel_live==1)
|
||||
@@ -1046,7 +1050,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
}
|
||||
|
||||
}
|
||||
echo "$ACTION comando inviato per Canale $channel su $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n";
|
||||
echo "$ACTION comando inviato a Canale $channel su $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1066,7 +1070,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
|
||||
if ( (strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<15) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Canale $channel non e` valido or exten $exten non e` valido or filename: $filename non e` valido, $ACTION comando non inserito\n";
|
||||
echo "Canale $channel non è valido or exten $exten non è valido or filename: $filename non è valido, $ACTION comando non inserito\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1130,7 +1134,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
|
||||
}
|
||||
|
||||
}
|
||||
echo "$ACTION comando inviato per Canale $channel su $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n LA REGISTRAZIONE DURERA` FINO A 60 MINUTI\n";
|
||||
echo "$ACTION comando inviato a Canale $channel su $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n LA REGISTRAZIONE DURERÀ FINO A 60 MINUTI\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1145,7 +1149,7 @@ if ($ACTION=="VolumeControl")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($stage)<1) or (strlen($queryCID)<1) )
|
||||
{
|
||||
echo "Conferenza $exten, Stage $stage non e` valido or queryCID $queryCID non e` valido, Originate comando non inserito\n";
|
||||
echo "Conferenza $exten, Stage $stage non è valido or queryCID $queryCID non è valido, Originate comando non inserito\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1161,7 +1165,7 @@ if ($ACTION=="VolumeControl")
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$queryCID','Channel: $volume_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','$channel','$exten');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Volume comando inviato per Conferenza $exten, Stage $stage Canale $channel su $server_ip\n";
|
||||
echo "Volume comando inviato a Conferenza $exten, Stage $stage Canale $channel su $server_ip\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,14 +64,14 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) )
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) {
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -83,7 +83,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -97,8 +97,8 @@ if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Display Chiamate in Attesa";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Display Chiamate Parcheggiate";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -110,7 +110,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten non e` valido o protocollo $protocol non e` valido\n";
|
||||
echo "Exten $exten non è valido o protocollo $protocol non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -341,14 +341,14 @@ else
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -360,7 +360,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -375,7 +375,7 @@ if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build USER: $user server_ip: $server_ip-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build USER: $user server_ip: $server_ip-->\n";
|
||||
echo "<title>VICIDiaL Script per query su Database";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
@@ -400,7 +400,7 @@ if ($ACTION == 'LogiNCamPaigns')
|
||||
else
|
||||
{
|
||||
echo "<select size=1 name=VD_campaign id=VD_campaign>\n";
|
||||
echo "<option value=\"\">-- SELEZIONARE UNA CAMPAGNA --</option>\n";
|
||||
echo "<option value=\"\">-- PLEASE SELECT A CAMPAIGN --</option>\n";
|
||||
|
||||
$stmt="SELECT user_group from vicidial_users where user='$user' and pass='$pass'";
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
@@ -449,7 +449,7 @@ if ($ACTION == 'regCLOSER')
|
||||
if ( (strlen($closer_choice)<1) || (strlen($user)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Scelta del Gruppo $closer_choice non e` valido\n";
|
||||
echo "Scelta del Gruppo $closer_choice non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -508,7 +508,7 @@ if ($ACTION == 'regCLOSER')
|
||||
}
|
||||
|
||||
}
|
||||
echo "Closer In Scelta del Gruppo $closer_choice e` stato registrato dall` utente $user\n";
|
||||
echo "Closer In Scelta del Gruppo $closer_choice è stato registrato dall` utente $user\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -526,7 +526,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "LISTA DI CHIAMATA VUOTA\n";
|
||||
echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context non e` valido\n";
|
||||
echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -846,7 +846,7 @@ if ($ACTION == 'manDiaLskip')
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "LEAD NOT REVERTED\n";
|
||||
echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context non e` valido\n";
|
||||
echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -876,7 +876,7 @@ if ($ACTION == 'manDiaLonly')
|
||||
{
|
||||
$channel_live=0;
|
||||
echo " CHIAMATA NOT PLACED\n";
|
||||
echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context non e` valido\n";
|
||||
echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -956,7 +956,7 @@ if ($ACTION == 'manDiaLlookCaLL')
|
||||
if (strlen($MDnextCID)<18)
|
||||
{
|
||||
echo "NO\n";
|
||||
echo "MDnextCID $MDnextCID non e` valido\n";
|
||||
echo "MDnextCID $MDnextCID non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -1010,7 +1010,7 @@ if ($stage == "start")
|
||||
if ( (strlen($uniqueid)<1) || (strlen($lead_id)<1) || (strlen($list_id)<1) || (strlen($phone_number)<1) || (strlen($campaign)<1) )
|
||||
{
|
||||
echo "LOG NON INSERITO\n";
|
||||
echo "uniqueid $uniqueid or lead_id: $lead_id or list_id: $list_id or phone_number: $phone_number or campaign: $campaign non e` valido\n";
|
||||
echo "uniqueid $uniqueid or lead_id: $lead_id or list_id: $list_id or phone_number: $phone_number or campaign: $campaign non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -1067,7 +1067,7 @@ if ($stage == "end")
|
||||
if ( (strlen($uniqueid)<1) || (strlen($lead_id)<1) )
|
||||
{
|
||||
echo "LOG NON INSERITO\n";
|
||||
echo "uniqueid $uniqueid or lead_id: $lead_id non e` valido\n";
|
||||
echo "uniqueid $uniqueid or lead_id: $lead_id non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -1302,7 +1302,7 @@ if ($stage == "end")
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSEALL',serverid='$queuemetrics_log_id';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSAALL',serverid='$queuemetrics_log_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
@@ -1364,7 +1364,7 @@ if ($stage == "end")
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSEALL',serverid='$queuemetrics_log_id';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='NONE',agent='Agent/$user',verb='PAUSAALL',serverid='$queuemetrics_log_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
@@ -1510,8 +1510,8 @@ if ($ACTION == 'VDADREcheckINCOMING')
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "0\n";
|
||||
echo "Campagna $campaign non e` valido\n";
|
||||
echo "lead_id $lead_id non e` valido\n";
|
||||
echo "Campagna $campaign non è valido\n";
|
||||
echo "lead_id $lead_id non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -1552,7 +1552,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "0\n";
|
||||
echo "Campagna $campaign non e` valido\n";
|
||||
echo "Campagna $campaign non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1915,7 +1915,7 @@ if ($ACTION == 'userLOGout')
|
||||
if ( (strlen($campaign)<1) || (strlen($conf_exten)<1) )
|
||||
{
|
||||
echo "NO\n";
|
||||
echo "campaign $campaign or conf_exten $conf_exten non e` valido\n";
|
||||
echo "campaign $campaign or conf_exten $conf_exten non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -2038,7 +2038,7 @@ else
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
# $stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSE',serverid='1';";
|
||||
# $stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSA',serverid='1';";
|
||||
# if ($DB) {echo "$stmt\n";}
|
||||
#
|
||||
# $rslt=mysql_query($stmt, $linkB);
|
||||
@@ -2084,7 +2084,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$row=''; $rowx='';
|
||||
if ( (strlen($dispo_choice)<1) || (strlen($lead_id)<1) )
|
||||
{
|
||||
echo "Dispo Choice $dispo or lead_id $lead_id non e` valido\n";
|
||||
echo "Dispo Choice $dispo or lead_id $lead_id non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -2211,7 +2211,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='$MDnextCID',queue='$campaign',agent='Agent/$user',verb='CALLSTATO',data1='$dispo_choice',serverid='$queuemetrics_log_id';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='$MDnextCID',queue='$campaign',agent='Agent/$user',verb='CALLSTATUS',data1='$dispo_choice',serverid='$queuemetrics_log_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
@@ -2219,7 +2219,7 @@ if ($ACTION == 'updateDISPO')
|
||||
mysql_close($linkB);
|
||||
}
|
||||
|
||||
echo 'Lead ' . $lead_id . ' e` stato cambiato ' . $dispo_choice . " Stato\nNext agent_log_id:\n" . $agent_log_id . "\n";
|
||||
echo 'Lead ' . $lead_id . ' è stato cambiato ' . $dispo_choice . " Status\nNext agent_log_id:\n" . $agent_log_id . "\n";
|
||||
}
|
||||
|
||||
################################################################################
|
||||
@@ -2234,7 +2234,7 @@ if ($ACTION == 'updateLEAD')
|
||||
$DO_NOT_UPDATE_text='';
|
||||
if ( (strlen($phone_number)<1) || (strlen($lead_id)<1) )
|
||||
{
|
||||
echo "phone_number $phone_number or lead_id $lead_id non e` valido\n";
|
||||
echo "phone_number $phone_number or lead_id $lead_id non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -2306,7 +2306,7 @@ if ( ($ACTION == 'VDADpause') || ($ACTION == 'VDADready') )
|
||||
$row=''; $rowx='';
|
||||
if ( (strlen($stage)<2) || (strlen($server_ip)<1) )
|
||||
{
|
||||
echo "stage $stage non e` valido\n";
|
||||
echo "stage $stage non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -2345,7 +2345,7 @@ if ( ($ACTION == 'VDADpause') || ($ACTION == 'VDADready') )
|
||||
if ($enable_queuemetrics_logging > 0)
|
||||
{
|
||||
if (ereg('READY',$stage)) {$QMstatus='UNPAUSEALL';}
|
||||
if (ereg('PAUSE',$stage)) {$QMstatus='PAUSEALL';}
|
||||
if (ereg('PAUSA',$stage)) {$QMstatus='PAUSAALL';}
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
@@ -2395,7 +2395,7 @@ if ( ($ACTION == 'VDADpause') || ($ACTION == 'VDADready') )
|
||||
}
|
||||
}
|
||||
}
|
||||
echo 'Agent ' . $user . ' e` ora nello stato ' . $stage . "\n";
|
||||
echo 'Agent ' . $user . ' è ora nello Status ' . $stage . "\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -2408,7 +2408,7 @@ if ($ACTION == 'UpdatEFavoritEs')
|
||||
$channel_live=1;
|
||||
if ( (strlen($favorites_list)<1) || (strlen($user)<1) || (strlen($exten)<1) )
|
||||
{
|
||||
echo "favorites list $favorites_list non e` valido\n";
|
||||
echo "favorites list $favorites_list non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -2443,7 +2443,7 @@ if ($ACTION == 'PausaCodeSubmit')
|
||||
$row=''; $rowx='';
|
||||
if ( (strlen($status)<1) || (strlen($agent_log_id)<1) )
|
||||
{
|
||||
echo "agent_log_id $agent_log_id or pause_code $status non e` valido\n";
|
||||
echo "agent_log_id $agent_log_id or pause_code $status non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -2485,7 +2485,7 @@ if ($ACTION == 'PausaCodeSubmit')
|
||||
$linkB=mysql_connect("$queuemetrics_server_ip", "$queuemetrics_login", "$queuemetrics_pass");
|
||||
mysql_select_db("$queuemetrics_dbname", $linkB);
|
||||
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSEREASON',serverid='$queuemetrics_log_id',data1='$status';";
|
||||
$stmt = "INSERT INTO queue_log SET partition='P01',time_id='$StarTtime',call_id='NONE',queue='$campaign',agent='Agent/$user',verb='PAUSAREASON',serverid='$queuemetrics_log_id',data1='$status';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $linkB);
|
||||
$affected_rows = mysql_affected_rows($linkB);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -61,7 +61,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Utentename/Password non validi: |$user|$pass|\n";
|
||||
echo "Non valido Utentename/Parola d`accesso: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -69,7 +69,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "ip del server non valido: |$server_ip| or Nome sessione non valido: |$session_name|\n";
|
||||
echo "Non valido server_ip: |$server_ip| or Non valido session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -81,7 +81,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nome sessione non valido: |$session_name|$server_ip|\n";
|
||||
echo "Non valido session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -95,7 +95,7 @@ if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version BUILD: $build VMBOX: $vmail_box server_ip: $server_ip-->\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build VMBOX: $vmail_box server_ip: $server_ip-->\n";
|
||||
echo "<title>Controllo Voicemail";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
@@ -107,7 +107,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if (strlen($vmail_box)<1)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Casella Voicemail $vmail_box non e` valido\n";
|
||||
echo "Casella del voicemail $vmail_box non è valido\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of sekundy for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls na hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of sekundy for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name na login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusStatus").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentStatusCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Wybierz kolejny numer";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Zadzwoń pod numer alt.: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">NUMER PODSTAWOWY</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTTelefonE')\"><font class=\"preview_text\">NUMER ALT.</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ADRES3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">ZAKOŃCZ WPROWADZANIE DANYCH</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> RozmowaBACK DATE/TIME</td><td><font class=\"log_title\">NUMER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST POŁĄCZENIE DATA/CZAS</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> RozmowaBACK DATE/TIME</td><td><font class=\"log_title\">NUMER</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST POŁĄCZENIE DATA/CZAS</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Dzwoni: " + status_display_number + " UID: " + CIDcheck + " Czeka na dzwonek... " + MD_ring_secondS + " sekundy";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Dzwoni: " + status_display_number + " UID: " + CIDcheck + " Czeka na dzwonek... " + MD_ring_secondS + " sekundy";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("W zasobniku nie ma już więcej konaktów do wykonania połączeń dla tej kampanii:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Wybierz kolejny numer\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTTelefonE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Dzwoni: " + status_display_number + " UID: " + MDnextCID + " Czeka na dzwonek...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Dzwoni: " + status_display_number + " UID: " + MDnextCID + " Czeka na dzwonek...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer_pl.gif\" border=0 alt=\"Odłącz kilenta\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentStatusCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentStatusSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICIWYBIERZ" WIDTH=115 HEIGHT=30 Border=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> ID sesji: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> ID sesji: <span id=sessionIDspan></span> <span id=AgentStatusCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF_pl.gif" NAME=livecall ALT="Aktywna rozmowa" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
|
||||
Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
|
||||
Twój Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -64,6 +65,10 @@ if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -92,6 +97,10 @@ if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
@@ -203,30 +212,45 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where server_ip='$server_ip' and status NOT IN('XFER') and campaign_id='$Acampaign';";
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
@@ -238,7 +262,7 @@ echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . "|\n";
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Status: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
|
||||
@@ -146,6 +146,10 @@ if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["all
|
||||
if (isset($_GET["session_id"])) {$session_id=$_GET["session_id"];}
|
||||
elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
|
||||
@@ -611,7 +611,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
else
|
||||
{
|
||||
### grab the next lead in the hopper for this campaign and reserve it for the user
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by hopper_id LIMIT 1";
|
||||
$stmt = "UPDATE vicidial_hopper set status='QUEUE', user='$user' where campaign_id='$campaign' and status='READY' order by priority desc,hopper_id LIMIT 1";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
@@ -668,7 +668,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$alt_phone = trim("$row[26]");
|
||||
$email = trim("$row[27]");
|
||||
$security = trim("$row[28]");
|
||||
$comments = trim("$row[29]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,13 @@
|
||||
# 71226-1117 - added option to kick all calls from conference upon logout
|
||||
# 80330-0823 - Added new AST_blind monitoring ability and minor cleanup for release
|
||||
# 80402-0121 - Fixes for Manual Dial hangups and transfers
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
#
|
||||
|
||||
$version = '2.0.4-145';
|
||||
$build = '80402-0121';
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -269,8 +272,9 @@ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
|
||||
$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call count
|
||||
$campagentstatctmax = '0'; # Number of segundos for campaign call and agent stats
|
||||
$callholdstatus = '1'; # set to 1 to show calls em hold count
|
||||
$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
|
||||
$campagentstatctmax = '3'; # Number of segundos for campaign call and agent stats
|
||||
$show_campname_pulldown = '1'; # set to 1 to show campaign name em login pulldown
|
||||
$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
|
||||
$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
|
||||
@@ -1763,6 +1767,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var callholdstatus = '<? echo $callholdstatus ?>'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0';
|
||||
@@ -1771,6 +1776,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var alt_dial_status_display = 0;
|
||||
var mdnLisT_id = '<? echo $manual_dial_list_id ?>';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
@@ -2206,7 +2212,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
if (typeof(xmlhttprequestcheckconf) == "undefined") {
|
||||
//alert (xmlhttprequestcheckconf == xmlhttpSendConf);
|
||||
custchannellive--;
|
||||
if (agentcallsstatus == '1')
|
||||
if ( (agentcallsstatus == '1') || (callholdstatus == '1') )
|
||||
{
|
||||
campagentstatct++;
|
||||
if (campagentstatct > campagentstatctmax)
|
||||
@@ -2266,12 +2272,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
UnixTime = parseInt(UnixTime);
|
||||
UnixTimeMS = (UnixTime * 1000);
|
||||
t.setTime(UnixTimeMS);
|
||||
if ( (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
if ( (callholdstatus == '1') || (agentcallsstatus == '1') || (vicidial_agent_disable != 'NOT_ACTIVE') )
|
||||
{
|
||||
var Alogin_array = check_time_array[2].split("Logged-in: ");
|
||||
var AGLogiN = Alogin_array[1];
|
||||
var CamPCalLs_array = check_time_array[3].split("CampCalls: ");
|
||||
var CamPCalLs = CamPCalLs_array[1];
|
||||
var DiaLCalLs_array = check_time_array[5].split("DiaLCalls: ");
|
||||
var DiaLCalLs = DiaLCalLs_array[1];
|
||||
if (AGLogiN != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusStatus").innerHTML = AGLogiN;
|
||||
@@ -2280,6 +2288,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
document.getElementById("AgentStatusCalls").innerHTML = CamPCalLs;
|
||||
}
|
||||
if (DiaLCalLs != 'N')
|
||||
{
|
||||
document.getElementById("AgentStatusDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
|
||||
{
|
||||
showDiv('AgenTDisablEBoX');
|
||||
@@ -2804,6 +2816,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
alt_dial_active = 0;
|
||||
alt_dial_status_display = 0;
|
||||
open_dispo_screen=1;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = "Número Seguinte Do Seletor";
|
||||
}
|
||||
@@ -2820,6 +2833,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
var man_status = "Número Alt Do Seletor: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">TELEFONE PRINCIPAL</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTTelefoneE')\"><font class=\"preview_text\">ALT DEL TELEFONO</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ENDEREÇO3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">REVESTIMENTO</font></a>";
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -3001,7 +3015,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CHAMADABACK DATE/TIME</td><td><font class=\"log_title\">NÚMERO</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST DATE/TIME DA CHAMADA</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CHAMADABACK DATE/TIME</td><td><font class=\"log_title\">NÚMERO</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\"> STATUS</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST DATE/TIME DA CHAMADA</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -3199,8 +3213,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = lead_dial_number;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Chamada: " + status_display_number + " UID: " + CIDcheck + " Anel de espera... " + MD_ring_secondS + " segundos";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
// alert(document.getElementById("MainStatuSSpan").innerHTML);
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Chamada: " + status_display_number + " UID: " + CIDcheck + " Anel de espera... " + MD_ring_secondS + " segundos";
|
||||
// alert("channel not found yet:\n" + campaign);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3367,6 +3385,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{alert("Não mais conduz no funil para a campanha:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Número Seguinte Do Seletor\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3408,6 +3428,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
CBcomments = MDnextResponse_array[31];
|
||||
dialed_number = MDnextResponse_array[32];
|
||||
dialed_label = MDnextResponse_array[33];
|
||||
source_id = MDnextResponse_array[34];
|
||||
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
var dispnum = document.vicidial_form.phone_number.value;
|
||||
@@ -3513,6 +3534,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -3641,8 +3665,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
// Send the Manual Dial Only - dial the previewed lead
|
||||
function ManualDialOnly(taskaltnum)
|
||||
{
|
||||
alt_dial_status_display = 0;
|
||||
all_record = 'NO';
|
||||
all_record_count=0;
|
||||
alt_dial_status_display = 0;
|
||||
if (taskaltnum == 'ALTTelefoneE')
|
||||
{
|
||||
var manDiaLonly_num = document.vicidial_form.alt_phone.value;
|
||||
@@ -3717,8 +3743,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var dispnum = manDiaLonly_num;
|
||||
var status_display_number = '(' + dispnum.substring(0,3) + ')' + dispnum.substring(3,6) + '-' + dispnum.substring(6,10);
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Chamada: " + status_display_number + " UID: " + MDnextCID + " Anel de espera...";
|
||||
|
||||
if (alt_dial_status_display=='0')
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Chamada: " + status_display_number + " UID: " + MDnextCID + " Anel de espera...";
|
||||
}
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer.gif\" border=0 alt=\"Cliente Do Hangup\"></a>";
|
||||
|
||||
if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') )
|
||||
@@ -3731,6 +3759,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[campaign_script],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -4139,6 +4170,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var textname = decoded;
|
||||
URLDecode(scripttexts[CalL_ScripT_id],'YES');
|
||||
var texttext = decoded;
|
||||
var regWFplus = new RegExp("\\+","ig");
|
||||
textname = textname.replace(regWFplus, ' ');
|
||||
texttext = texttext.replace(regWFplus, ' ');
|
||||
var testscript = "<B>" + textname + "</B>\n\n<BR><BR>\n\n" + texttext;
|
||||
document.getElementById("ScriptContents").innerHTML = testscript;
|
||||
}
|
||||
@@ -5860,6 +5894,8 @@ else
|
||||
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
|
||||
if (agentcall_manual != '1')
|
||||
{hideDiv('ManuaLDiaLButtons');}
|
||||
if (callholdstatus != '1')
|
||||
{hideDiv('AgentStatusCalls');}
|
||||
if (agentcallsstatus != '1')
|
||||
{hideDiv('AgentStatusSpan');}
|
||||
if ( (auto_dial_level != 0) || (manual_dial_preview != 1) )
|
||||
@@ -6387,6 +6423,8 @@ else
|
||||
div.scroll_script {height: <?=$SSheight ?>px; width: <?=$SDwidth ?>px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;}
|
||||
div.text_input {overflow: auto; font-size: 10px; font-family: sans-serif;}
|
||||
.body_text {font-size: 13px; font-family: sans-serif;}
|
||||
.queue_text_red {font-size: 12px; font-family: sans-serif; font-weight: bold; color: red}
|
||||
.queue_text {font-size: 12px; font-family: sans-serif; color: black}
|
||||
.preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC}
|
||||
.preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC}
|
||||
.body_small {font-size: 11px; font-family: sans-serif;}
|
||||
@@ -6427,7 +6465,7 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD ALIGN=LEFT WIDTH=115><A HREF="#" onclick="MainPanelToFront('NO');"><IMG SRC="../agc/images/vdc_tab_vicidial.gif" ALT="VICISELETOR" WIDTH=115 HEIGHT=30 Border=0></A></TD>
|
||||
<TD ALIGN=LEFT WIDTH=105><A HREF="#" onclick="ScriptPanelToFront();"><IMG SRC="../agc/images/vdc_tab_script.gif" ALT="SCRIPT" WIDTH=105 HEIGHT=30 Border=0></A></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> sessão ID: <span id=sessionIDspan></span></TD>
|
||||
<TD WIDTH=<?=$HSwidth ?> VALIGN=MIDDLE ALIGN=CENTER><font class="body_text"> <span id=status>LIVE</span> sessão ID: <span id=sessionIDspan></span> <span id=AgentStatusCalls></span></TD>
|
||||
<TD WIDTH=109><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Vive A Chamada" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</span>
|
||||
@@ -6519,7 +6557,7 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:35px;top:<?=$CBheight ?>px;z-index:20;" id="AgentStatusSpan"><font class="body_text">
|
||||
Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusCalls"></span>
|
||||
Seu Status: <span id="AgentStatusStatus"></span> <BR>Calls Dialing: <span id="AgentStatusDiaLs"></span>
|
||||
</font></span>
|
||||
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# - Fixed zero division bug
|
||||
# 71218-1155 - added end_date for multi-day reports
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80712-1007 - tally bug fixes and time display change
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -21,16 +22,18 @@ if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];}
|
||||
elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];}
|
||||
if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];}
|
||||
elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
|
||||
@@ -114,6 +117,7 @@ while ($i < $user_groups_to_print)
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Performance</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n";
|
||||
echo "<SELECT SIZE=1 NAME=group>\n";
|
||||
@@ -211,7 +215,7 @@ $i=0;
|
||||
while ($i < $rows_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
# $row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
|
||||
$calls[$i] = $row[0];
|
||||
$talk_sec[$i] = $row[1];
|
||||
@@ -328,8 +332,8 @@ while ($m < $k)
|
||||
}
|
||||
|
||||
$USERtime_M = ($Stime / 60);
|
||||
$USERtime_M = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M");
|
||||
$USERtime_M_int = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M_int");
|
||||
$USERtime_S = ($USERtime_M - $USERtime_M_int);
|
||||
$USERtime_S = ($USERtime_S * 60);
|
||||
$USERtime_S = round($USERtime_S, 0);
|
||||
@@ -338,8 +342,8 @@ while ($m < $k)
|
||||
$pfUSERtime_MS = sprintf("%7s", $USERtime_MS);
|
||||
|
||||
$USERtotTALK_M = ($Stalk_sec / 60);
|
||||
$USERtotTALK_M = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M");
|
||||
$USERtotTALK_M_int = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M_int");
|
||||
$USERtotTALK_S = ($USERtotTALK_M - $USERtotTALK_M_int);
|
||||
$USERtotTALK_S = ($USERtotTALK_S * 60);
|
||||
$USERtotTALK_S = round($USERtotTALK_S, 0);
|
||||
@@ -348,8 +352,8 @@ while ($m < $k)
|
||||
$pfUSERtotTALK_MS = sprintf("%6s", $USERtotTALK_MS);
|
||||
|
||||
$USERavgTALK_M = ($Stalk_avg / 60);
|
||||
$USERavgTALK_M = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M");
|
||||
$USERavgTALK_M_int = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M_int");
|
||||
$USERavgTALK_S = ($USERavgTALK_M - $USERavgTALK_M_int);
|
||||
$USERavgTALK_S = ($USERavgTALK_S * 60);
|
||||
$USERavgTALK_S = round($USERavgTALK_S, 0);
|
||||
@@ -358,8 +362,8 @@ while ($m < $k)
|
||||
$pfUSERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS);
|
||||
|
||||
$USERtotPAUSE_M = ($Spause_sec / 60);
|
||||
$USERtotPAUSE_M = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M");
|
||||
$USERtotPAUSE_M_int = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M_int");
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_M - $USERtotPAUSE_M_int);
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_S * 60);
|
||||
$USERtotPAUSE_S = round($USERtotPAUSE_S, 0);
|
||||
@@ -368,8 +372,8 @@ while ($m < $k)
|
||||
$pfUSERtotPAUSE_MS = sprintf("%6s", $USERtotPAUSE_MS);
|
||||
|
||||
$USERavgPAUSE_M = ($Spause_avg / 60);
|
||||
$USERavgPAUSE_M = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M");
|
||||
$USERavgPAUSE_M_int = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M_int");
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_M - $USERavgPAUSE_M_int);
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_S * 60);
|
||||
$USERavgPAUSE_S = round($USERavgPAUSE_S, 0);
|
||||
@@ -378,8 +382,8 @@ while ($m < $k)
|
||||
$pfUSERavgPAUSE_MS = sprintf("%6s", $USERavgPAUSE_MS);
|
||||
|
||||
$USERtotWAIT_M = ($Swait_sec / 60);
|
||||
$USERtotWAIT_M = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M");
|
||||
$USERtotWAIT_M_int = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M_int");
|
||||
$USERtotWAIT_S = ($USERtotWAIT_M - $USERtotWAIT_M_int);
|
||||
$USERtotWAIT_S = ($USERtotWAIT_S * 60);
|
||||
$USERtotWAIT_S = round($USERtotWAIT_S, 0);
|
||||
@@ -388,8 +392,8 @@ while ($m < $k)
|
||||
$pfUSERtotWAIT_MS = sprintf("%6s", $USERtotWAIT_MS);
|
||||
|
||||
$USERavgWAIT_M = ($Swait_avg / 60);
|
||||
$USERavgWAIT_M = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M");
|
||||
$USERavgWAIT_M_int = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M_int");
|
||||
$USERavgWAIT_S = ($USERavgWAIT_M - $USERavgWAIT_M_int);
|
||||
$USERavgWAIT_S = ($USERavgWAIT_S * 60);
|
||||
$USERavgWAIT_S = round($USERavgWAIT_S, 0);
|
||||
@@ -398,8 +402,8 @@ while ($m < $k)
|
||||
$pfUSERavgWAIT_MS = sprintf("%6s", $USERavgWAIT_MS);
|
||||
|
||||
$USERtotDISPO_M = ($Sdispo_sec / 60);
|
||||
$USERtotDISPO_M = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M");
|
||||
$USERtotDISPO_M_int = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M_int");
|
||||
$USERtotDISPO_S = ($USERtotDISPO_M - $USERtotDISPO_M_int);
|
||||
$USERtotDISPO_S = ($USERtotDISPO_S * 60);
|
||||
$USERtotDISPO_S = round($USERtotDISPO_S, 0);
|
||||
@@ -408,8 +412,8 @@ while ($m < $k)
|
||||
$pfUSERtotDISPO_MS = sprintf("%6s", $USERtotDISPO_MS);
|
||||
|
||||
$USERavgDISPO_M = ($Sdispo_avg / 60);
|
||||
$USERavgDISPO_M = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M");
|
||||
$USERavgDISPO_M_int = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M_int");
|
||||
$USERavgDISPO_S = ($USERavgDISPO_M - $USERavgDISPO_M_int);
|
||||
$USERavgDISPO_S = ($USERavgDISPO_S * 60);
|
||||
$USERavgDISPO_S = round($USERavgDISPO_S, 0);
|
||||
@@ -462,8 +466,8 @@ while ($n < $j)
|
||||
$TOT_AGENTS = sprintf("%-4s", $m);
|
||||
|
||||
$TOTtime_M = ($TOTtime / 60);
|
||||
$TOTtime_M = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M");
|
||||
$TOTtime_M_int = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M_int");
|
||||
$TOTtime_S = ($TOTtime_M - $TOTtime_M_int);
|
||||
$TOTtime_S = ($TOTtime_S * 60);
|
||||
$TOTtime_S = round($TOTtime_S, 0);
|
||||
@@ -473,8 +477,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtime_MS)>8) {$TOTtime_MS = substr("$TOTtime_MS", 0, -1);}
|
||||
|
||||
$TOTtotTALK_M = ($TOTtotTALK / 60);
|
||||
$TOTtotTALK_M = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M");
|
||||
$TOTtotTALK_M_int = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M_int");
|
||||
$TOTtotTALK_S = ($TOTtotTALK_M - $TOTtotTALK_M_int);
|
||||
$TOTtotTALK_S = ($TOTtotTALK_S * 60);
|
||||
$TOTtotTALK_S = round($TOTtotTALK_S, 0);
|
||||
@@ -484,8 +488,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotTALK_MS)>8) {$TOTtotTALK_MS = substr("$TOTtotTALK_MS", 0, -1);}
|
||||
|
||||
$TOTtotDISPO_M = ($TOTtotDISPO / 60);
|
||||
$TOTtotDISPO_M = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M");
|
||||
$TOTtotDISPO_M_int = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M_int");
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_M - $TOTtotDISPO_M_int);
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_S * 60);
|
||||
$TOTtotDISPO_S = round($TOTtotDISPO_S, 0);
|
||||
@@ -495,8 +499,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotDISPO_MS)>8) {$TOTtotDISPO_MS = substr("$TOTtotDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTtotPAUSE_M = ($TOTtotPAUSE / 60);
|
||||
$TOTtotPAUSE_M = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M");
|
||||
$TOTtotPAUSE_M_int = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M_int");
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_M - $TOTtotPAUSE_M_int);
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_S * 60);
|
||||
$TOTtotPAUSE_S = round($TOTtotPAUSE_S, 0);
|
||||
@@ -506,8 +510,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotPAUSE_MS)>8) {$TOTtotPAUSE_MS = substr("$TOTtotPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTtotWAIT_M = ($TOTtotWAIT / 60);
|
||||
$TOTtotWAIT_M = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M");
|
||||
$TOTtotWAIT_M_int = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M_int");
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_M - $TOTtotWAIT_M_int);
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_S * 60);
|
||||
$TOTtotWAIT_S = round($TOTtotWAIT_S, 0);
|
||||
@@ -518,8 +522,8 @@ while ($n < $j)
|
||||
|
||||
|
||||
$TOTavgTALK_M = ( ($TOTtotTALK / $TOTcalls) / 60);
|
||||
$TOTavgTALK_M = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M");
|
||||
$TOTavgTALK_M_int = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M_int");
|
||||
$TOTavgTALK_S = ($TOTavgTALK_M - $TOTavgTALK_M_int);
|
||||
$TOTavgTALK_S = ($TOTavgTALK_S * 60);
|
||||
$TOTavgTALK_S = round($TOTavgTALK_S, 0);
|
||||
@@ -529,8 +533,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgTALK_MS)>6) {$TOTavgTALK_MS = substr("$TOTavgTALK_MS", 0, -1);}
|
||||
|
||||
$TOTavgDISPO_M = ( ($TOTtotDISPO / $TOTcalls) / 60);
|
||||
$TOTavgDISPO_M = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M");
|
||||
$TOTavgDISPO_M_int = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M_int");
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_M - $TOTavgDISPO_M_int);
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_S * 60);
|
||||
$TOTavgDISPO_S = round($TOTavgDISPO_S, 0);
|
||||
@@ -540,8 +544,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgDISPO_MS)>6) {$TOTavgDISPO_MS = substr("$TOTavgDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTavgPAUSE_M = ( ($TOTtotPAUSE / $TOTcalls) / 60);
|
||||
$TOTavgPAUSE_M = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M");
|
||||
$TOTavgPAUSE_M_int = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M_int");
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_M - $TOTavgPAUSE_M_int);
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_S * 60);
|
||||
$TOTavgPAUSE_S = round($TOTavgPAUSE_S, 0);
|
||||
@@ -551,8 +555,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgPAUSE_MS)>6) {$TOTavgPAUSE_MS = substr("$TOTavgPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTavgWAIT_M = ( ($TOTtotWAIT / $TOTcalls) / 60);
|
||||
$TOTavgWAIT_M = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M");
|
||||
$TOTavgWAIT_M_int = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M_int");
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_M - $TOTavgWAIT_M_int);
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_S * 60);
|
||||
$TOTavgWAIT_S = round($TOTavgWAIT_S, 0);
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
# 70702-1259 - Added recording location link and truncation
|
||||
# 70906-2132 - Added closer_log records display
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80516-0936 - Cleanup of logging changes, added vicidial_agent_log display
|
||||
# 80701-0832 - Changed to allow for altering of main phone number
|
||||
# 80805-2106 - Changed comments to TEXTAREA
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -34,6 +37,8 @@ if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];}
|
||||
elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];}
|
||||
if (isset($_GET["phone"])) {$phone=$_GET["phone"];}
|
||||
elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];}
|
||||
if (isset($_GET["old_phone"])) {$old_phone=$_GET["old_phone"];}
|
||||
elseif (isset($_POST["old_phone"])) {$old_phone=$_POST["old_phone"];}
|
||||
if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];}
|
||||
elseif (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];}
|
||||
if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];}
|
||||
@@ -108,7 +113,12 @@ if (isset($_GET["CBuser"])) {$CBuser=$_GET["CBuser"];}
|
||||
elseif (isset($_POST["CBuser"])) {$CBuser=$_POST["CBuser"];}
|
||||
if (isset($_GET["modify_logs"])) {$modify_logs=$_GET["modify_logs"];}
|
||||
elseif (isset($_POST["modify_logs"])) {$modify_logs=$_POST["modify_logs"];}
|
||||
|
||||
if (isset($_GET["modify_closer_logs"])) {$modify_closer_logs=$_GET["modify_closer_logs"];}
|
||||
elseif (isset($_POST["modify_closer_logs"])) {$modify_closer_logs=$_POST["modify_closer_logs"];}
|
||||
if (isset($_GET["modify_agent_logs"])) {$modify_agent_logs=$_GET["modify_agent_logs"];}
|
||||
elseif (isset($_POST["modify_agent_logs"])) {$modify_agent_logs=$_POST["modify_agent_logs"];}
|
||||
if (isset($_GET["add_closer_record"])) {$add_closer_record=$_GET["add_closer_record"];}
|
||||
elseif (isset($_POST["add_closer_record"])) {$add_closer_record=$_POST["add_closer_record"];}
|
||||
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
@@ -133,6 +143,14 @@ while ($i < $qm_conf_ct)
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$old_phone = ereg_replace("[^0-9]","",$old_phone);
|
||||
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
||||
$alt_phone = ereg_replace("[^0-9]","",$alt_phone);
|
||||
}
|
||||
if (strlen($phone_number)<6) {$phone_number=$old_phone;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and modify_leads='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
@@ -195,15 +213,8 @@ echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead record modificati
|
||||
if ($end_call > 0)
|
||||
{
|
||||
|
||||
$call_length = ($STARTtime - $call_began);
|
||||
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','" . mysql_real_escape_string($call_began) . "','$STARTtime','" . mysql_real_escape_string($call_length) . "','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### update the lead record in the vicidial_list table
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',phone_number='$phone_number',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
@@ -238,18 +249,39 @@ $call_length = ($STARTtime - $call_began);
|
||||
|
||||
echo "<BR>Lead added to DNC List: $lead_id - $phone_number<BR>\n";
|
||||
}
|
||||
### update last record in vicidial_agent_log and vicidial_log tables
|
||||
### update last record in vicidial_log table
|
||||
if (($dispo != $status) and ($modify_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_closer_log table
|
||||
if (($dispo != $status) and ($modify_closer_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_closer_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_agent_log table
|
||||
if (($dispo != $status) and ($modify_agent_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_agent_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
if ($add_closer_record > 0)
|
||||
{
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','$NOW_TIME','$STARTtime','1','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -293,6 +325,7 @@ else
|
||||
if ($lead_count > 0)
|
||||
{
|
||||
|
||||
##### grab vicidial_log records #####
|
||||
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
@@ -318,10 +351,47 @@ else
|
||||
$call_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td></tr>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[15] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_agent_log records #####
|
||||
$stmt="select * from vicidial_agent_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Alogs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
$y=0;
|
||||
$agent_log = '';
|
||||
$Alog_campaign = '';
|
||||
while ($Alogs_to_print > $y)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if (strlen($Alog_campaign)<1) {$Alog_campaign = $row[5];}
|
||||
if (eregi("1$|3$|5$|7$|9$", $y))
|
||||
{$bgcolor='bgcolor="#B9CBFD"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
$y++;
|
||||
$agent_log .= "<tr $bgcolor>";
|
||||
$agent_log .= "<td><font size=1>$y</td>";
|
||||
$agent_log .= "<td><font size=2>$row[3]</td>";
|
||||
$agent_log .= "<td align=left><font size=2> $row[5]</td>\n";
|
||||
$agent_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[1]</A> </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[7]</td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[9] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[11] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[13] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[15] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[5];
|
||||
}
|
||||
|
||||
##### grab vicidial_closer_log records #####
|
||||
$stmt="select * from vicidial_closer_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by closecallid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Clogs_to_print = mysql_num_rows($rslt);
|
||||
@@ -348,10 +418,13 @@ else
|
||||
$closer_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td></tr>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_list data for lead #####
|
||||
$stmt="SELECT * from vicidial_list where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -361,7 +434,7 @@ else
|
||||
$tsr = "$row[4]";
|
||||
$vendor_id = "$row[5]";
|
||||
$list_id = "$row[7]";
|
||||
$campaign_id = "$row[8]";
|
||||
$gmt_offset_now = "$row[8]";
|
||||
$phone_code = "$row[10]";
|
||||
$phone_number = "$row[11]";
|
||||
$title = "$row[12]";
|
||||
@@ -391,7 +464,7 @@ else
|
||||
echo "<input type=hidden name=list_id value=\"$list_id\">\n";
|
||||
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
||||
echo "<input type=hidden name=phone_code value=\"$phone_code\">\n";
|
||||
echo "<input type=hidden name=phone_number value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=old_phone value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
||||
echo "<input type=hidden name=extension value=\"$extension\">\n";
|
||||
echo "<input type=hidden name=channel value=\"$channel\">\n";
|
||||
@@ -411,10 +484,11 @@ else
|
||||
|
||||
echo "<tr><td align=right>Province : </td><td align=left><input type=text name=province size=30 maxlength=30 value=\"$province\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Country : </td><td align=left><input type=text name=country_code size=3 maxlength=3 value=\"$country_code\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Alt Phone : </td><td align=left><input type=text name=alt_phone size=10 maxlength=10 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Main Phone : </td><td align=left><input type=text name=phone_number size=20 maxlength=20 value=\"$phone_number\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Alt Phone : </td><td align=left><input type=text name=alt_phone size=20 maxlength=20 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Email : </td><td align=left><input type=text name=email size=30 maxlength=50 value=\"$email\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Security : </td><td align=left><input type=text name=security size=30 maxlength=100 value=\"$security\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Comments : </td><td align=left><input type=text name=comments size=30 maxlength=255 value=\"$comments\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Comments : </td><td align=left><TEXTAREA name=comments ROWS=3 COLS=65>$comments</TEXTAREA></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Disposition: </td><td align=left><select size=1 name=status>\n";
|
||||
|
||||
$stmt="SELECT * from vicidial_statuses where selectable='Y' order by status";
|
||||
@@ -455,7 +529,11 @@ else
|
||||
echo "</select> <i>(with $log_campaign statuses)</i></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent and vicidial logs </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify vicidial log </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent log </td><td align=left><input type=checkbox name=modify_agent_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify closer log </td><td align=left><input type=checkbox name=modify_closer_logs value=\"1\"></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Add closer log record </td><td align=left><input type=checkbox name=add_closer_record value=\"1\"></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr><td colspan=2 align=center><input type=submit name=submit value=\"SUBMIT\"></td></tr>\n";
|
||||
echo "</table></form>\n";
|
||||
@@ -543,6 +621,16 @@ echo "</TABLE></center>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>AGENT LOG RECORDS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>CAMPAIGN</td><td align=left><font size=2> TSR</td><td align=left><font size=2> PAUSE</td><td align=right><font size=2> WAIT</td><td align=right><font size=2> TALK</td><td align=right><font size=2> DISPO</td><td align=right><font size=2> STATUS</td><td align=right><font size=2> GROUP</td><td align=right><font size=2> SUB</td></tr>\n";
|
||||
|
||||
echo "$agent_log\n";
|
||||
|
||||
echo "</TABLE>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=1 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
|
||||
|
||||
@@ -45,5 +45,8 @@ $ext_context = 'demo';
|
||||
$recording_exten = '8309';
|
||||
$WeBRooTWritablE = '1';
|
||||
$non_latin = '0'; # set to 1 for UTF rules
|
||||
|
||||
$AM_shift_BEGIN = '03:45:00';
|
||||
$AM_shift_END = '17:45:00';
|
||||
$PM_shift_BEGIN = '17:45:01';
|
||||
$PM_shift_END = '23:59:59';
|
||||
?>
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
# 70417-1059 - Fixed default phone_code bug
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
#
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-24';
|
||||
$build = '80428-0417';
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -551,7 +552,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -766,7 +767,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -787,7 +788,7 @@ function ParseFileName() {
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
|
||||
if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
if ($file_layout=="standard") {
|
||||
|
||||
@@ -990,7 +991,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
# }
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
} else if (filesize($leadfile)>8388608) {
|
||||
print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
#} else if (filesize($leadfile)>8388608) {
|
||||
# print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# - Fixed zero division bug
|
||||
# 71218-1155 - added end_date for multi-day reports
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80712-1007 - tally bug fixes and time display change
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -21,16 +22,18 @@ if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];}
|
||||
elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];}
|
||||
if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];}
|
||||
elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
|
||||
@@ -114,6 +117,7 @@ while ($i < $user_groups_to_print)
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Performance</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n";
|
||||
echo "<SELECT SIZE=1 NAME=group>\n";
|
||||
@@ -211,7 +215,7 @@ $i=0;
|
||||
while ($i < $rows_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
# $row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
|
||||
$calls[$i] = $row[0];
|
||||
$talk_sec[$i] = $row[1];
|
||||
@@ -328,8 +332,8 @@ while ($m < $k)
|
||||
}
|
||||
|
||||
$USERtime_M = ($Stime / 60);
|
||||
$USERtime_M = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M");
|
||||
$USERtime_M_int = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M_int");
|
||||
$USERtime_S = ($USERtime_M - $USERtime_M_int);
|
||||
$USERtime_S = ($USERtime_S * 60);
|
||||
$USERtime_S = round($USERtime_S, 0);
|
||||
@@ -338,8 +342,8 @@ while ($m < $k)
|
||||
$pfUSERtime_MS = sprintf("%7s", $USERtime_MS);
|
||||
|
||||
$USERtotTALK_M = ($Stalk_sec / 60);
|
||||
$USERtotTALK_M = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M");
|
||||
$USERtotTALK_M_int = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M_int");
|
||||
$USERtotTALK_S = ($USERtotTALK_M - $USERtotTALK_M_int);
|
||||
$USERtotTALK_S = ($USERtotTALK_S * 60);
|
||||
$USERtotTALK_S = round($USERtotTALK_S, 0);
|
||||
@@ -348,8 +352,8 @@ while ($m < $k)
|
||||
$pfUSERtotTALK_MS = sprintf("%6s", $USERtotTALK_MS);
|
||||
|
||||
$USERavgTALK_M = ($Stalk_avg / 60);
|
||||
$USERavgTALK_M = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M");
|
||||
$USERavgTALK_M_int = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M_int");
|
||||
$USERavgTALK_S = ($USERavgTALK_M - $USERavgTALK_M_int);
|
||||
$USERavgTALK_S = ($USERavgTALK_S * 60);
|
||||
$USERavgTALK_S = round($USERavgTALK_S, 0);
|
||||
@@ -358,8 +362,8 @@ while ($m < $k)
|
||||
$pfUSERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS);
|
||||
|
||||
$USERtotPAUSE_M = ($Spause_sec / 60);
|
||||
$USERtotPAUSE_M = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M");
|
||||
$USERtotPAUSE_M_int = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M_int");
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_M - $USERtotPAUSE_M_int);
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_S * 60);
|
||||
$USERtotPAUSE_S = round($USERtotPAUSE_S, 0);
|
||||
@@ -368,8 +372,8 @@ while ($m < $k)
|
||||
$pfUSERtotPAUSE_MS = sprintf("%6s", $USERtotPAUSE_MS);
|
||||
|
||||
$USERavgPAUSE_M = ($Spause_avg / 60);
|
||||
$USERavgPAUSE_M = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M");
|
||||
$USERavgPAUSE_M_int = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M_int");
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_M - $USERavgPAUSE_M_int);
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_S * 60);
|
||||
$USERavgPAUSE_S = round($USERavgPAUSE_S, 0);
|
||||
@@ -378,8 +382,8 @@ while ($m < $k)
|
||||
$pfUSERavgPAUSE_MS = sprintf("%6s", $USERavgPAUSE_MS);
|
||||
|
||||
$USERtotWAIT_M = ($Swait_sec / 60);
|
||||
$USERtotWAIT_M = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M");
|
||||
$USERtotWAIT_M_int = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M_int");
|
||||
$USERtotWAIT_S = ($USERtotWAIT_M - $USERtotWAIT_M_int);
|
||||
$USERtotWAIT_S = ($USERtotWAIT_S * 60);
|
||||
$USERtotWAIT_S = round($USERtotWAIT_S, 0);
|
||||
@@ -388,8 +392,8 @@ while ($m < $k)
|
||||
$pfUSERtotWAIT_MS = sprintf("%6s", $USERtotWAIT_MS);
|
||||
|
||||
$USERavgWAIT_M = ($Swait_avg / 60);
|
||||
$USERavgWAIT_M = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M");
|
||||
$USERavgWAIT_M_int = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M_int");
|
||||
$USERavgWAIT_S = ($USERavgWAIT_M - $USERavgWAIT_M_int);
|
||||
$USERavgWAIT_S = ($USERavgWAIT_S * 60);
|
||||
$USERavgWAIT_S = round($USERavgWAIT_S, 0);
|
||||
@@ -398,8 +402,8 @@ while ($m < $k)
|
||||
$pfUSERavgWAIT_MS = sprintf("%6s", $USERavgWAIT_MS);
|
||||
|
||||
$USERtotDISPO_M = ($Sdispo_sec / 60);
|
||||
$USERtotDISPO_M = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M");
|
||||
$USERtotDISPO_M_int = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M_int");
|
||||
$USERtotDISPO_S = ($USERtotDISPO_M - $USERtotDISPO_M_int);
|
||||
$USERtotDISPO_S = ($USERtotDISPO_S * 60);
|
||||
$USERtotDISPO_S = round($USERtotDISPO_S, 0);
|
||||
@@ -408,8 +412,8 @@ while ($m < $k)
|
||||
$pfUSERtotDISPO_MS = sprintf("%6s", $USERtotDISPO_MS);
|
||||
|
||||
$USERavgDISPO_M = ($Sdispo_avg / 60);
|
||||
$USERavgDISPO_M = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M");
|
||||
$USERavgDISPO_M_int = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M_int");
|
||||
$USERavgDISPO_S = ($USERavgDISPO_M - $USERavgDISPO_M_int);
|
||||
$USERavgDISPO_S = ($USERavgDISPO_S * 60);
|
||||
$USERavgDISPO_S = round($USERavgDISPO_S, 0);
|
||||
@@ -462,8 +466,8 @@ while ($n < $j)
|
||||
$TOT_AGENTS = sprintf("%-4s", $m);
|
||||
|
||||
$TOTtime_M = ($TOTtime / 60);
|
||||
$TOTtime_M = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M");
|
||||
$TOTtime_M_int = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M_int");
|
||||
$TOTtime_S = ($TOTtime_M - $TOTtime_M_int);
|
||||
$TOTtime_S = ($TOTtime_S * 60);
|
||||
$TOTtime_S = round($TOTtime_S, 0);
|
||||
@@ -473,8 +477,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtime_MS)>8) {$TOTtime_MS = substr("$TOTtime_MS", 0, -1);}
|
||||
|
||||
$TOTtotTALK_M = ($TOTtotTALK / 60);
|
||||
$TOTtotTALK_M = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M");
|
||||
$TOTtotTALK_M_int = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M_int");
|
||||
$TOTtotTALK_S = ($TOTtotTALK_M - $TOTtotTALK_M_int);
|
||||
$TOTtotTALK_S = ($TOTtotTALK_S * 60);
|
||||
$TOTtotTALK_S = round($TOTtotTALK_S, 0);
|
||||
@@ -484,8 +488,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotTALK_MS)>8) {$TOTtotTALK_MS = substr("$TOTtotTALK_MS", 0, -1);}
|
||||
|
||||
$TOTtotDISPO_M = ($TOTtotDISPO / 60);
|
||||
$TOTtotDISPO_M = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M");
|
||||
$TOTtotDISPO_M_int = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M_int");
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_M - $TOTtotDISPO_M_int);
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_S * 60);
|
||||
$TOTtotDISPO_S = round($TOTtotDISPO_S, 0);
|
||||
@@ -495,8 +499,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotDISPO_MS)>8) {$TOTtotDISPO_MS = substr("$TOTtotDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTtotPAUSE_M = ($TOTtotPAUSE / 60);
|
||||
$TOTtotPAUSE_M = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M");
|
||||
$TOTtotPAUSE_M_int = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M_int");
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_M - $TOTtotPAUSE_M_int);
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_S * 60);
|
||||
$TOTtotPAUSE_S = round($TOTtotPAUSE_S, 0);
|
||||
@@ -506,8 +510,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotPAUSE_MS)>8) {$TOTtotPAUSE_MS = substr("$TOTtotPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTtotWAIT_M = ($TOTtotWAIT / 60);
|
||||
$TOTtotWAIT_M = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M");
|
||||
$TOTtotWAIT_M_int = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M_int");
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_M - $TOTtotWAIT_M_int);
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_S * 60);
|
||||
$TOTtotWAIT_S = round($TOTtotWAIT_S, 0);
|
||||
@@ -518,8 +522,8 @@ while ($n < $j)
|
||||
|
||||
|
||||
$TOTavgTALK_M = ( ($TOTtotTALK / $TOTcalls) / 60);
|
||||
$TOTavgTALK_M = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M");
|
||||
$TOTavgTALK_M_int = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M_int");
|
||||
$TOTavgTALK_S = ($TOTavgTALK_M - $TOTavgTALK_M_int);
|
||||
$TOTavgTALK_S = ($TOTavgTALK_S * 60);
|
||||
$TOTavgTALK_S = round($TOTavgTALK_S, 0);
|
||||
@@ -529,8 +533,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgTALK_MS)>6) {$TOTavgTALK_MS = substr("$TOTavgTALK_MS", 0, -1);}
|
||||
|
||||
$TOTavgDISPO_M = ( ($TOTtotDISPO / $TOTcalls) / 60);
|
||||
$TOTavgDISPO_M = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M");
|
||||
$TOTavgDISPO_M_int = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M_int");
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_M - $TOTavgDISPO_M_int);
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_S * 60);
|
||||
$TOTavgDISPO_S = round($TOTavgDISPO_S, 0);
|
||||
@@ -540,8 +544,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgDISPO_MS)>6) {$TOTavgDISPO_MS = substr("$TOTavgDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTavgPAUSE_M = ( ($TOTtotPAUSE / $TOTcalls) / 60);
|
||||
$TOTavgPAUSE_M = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M");
|
||||
$TOTavgPAUSE_M_int = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M_int");
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_M - $TOTavgPAUSE_M_int);
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_S * 60);
|
||||
$TOTavgPAUSE_S = round($TOTavgPAUSE_S, 0);
|
||||
@@ -551,8 +555,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgPAUSE_MS)>6) {$TOTavgPAUSE_MS = substr("$TOTavgPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTavgWAIT_M = ( ($TOTtotWAIT / $TOTcalls) / 60);
|
||||
$TOTavgWAIT_M = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M");
|
||||
$TOTavgWAIT_M_int = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M_int");
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_M - $TOTavgWAIT_M_int);
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_S * 60);
|
||||
$TOTavgWAIT_S = round($TOTavgWAIT_S, 0);
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
# 70702-1259 - Added recording location link and truncation
|
||||
# 70906-2132 - Added closer_log records display
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80516-0936 - Cleanup of logging changes, added vicidial_agent_log display
|
||||
# 80701-0832 - Changed to allow for altering of main phone number
|
||||
# 80805-2106 - Changed comments to TEXTAREA
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -34,6 +37,8 @@ if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];}
|
||||
elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];}
|
||||
if (isset($_GET["phone"])) {$phone=$_GET["phone"];}
|
||||
elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];}
|
||||
if (isset($_GET["old_phone"])) {$old_phone=$_GET["old_phone"];}
|
||||
elseif (isset($_POST["old_phone"])) {$old_phone=$_POST["old_phone"];}
|
||||
if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];}
|
||||
elseif (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];}
|
||||
if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];}
|
||||
@@ -108,7 +113,12 @@ if (isset($_GET["CBuser"])) {$CBuser=$_GET["CBuser"];}
|
||||
elseif (isset($_POST["CBuser"])) {$CBuser=$_POST["CBuser"];}
|
||||
if (isset($_GET["modify_logs"])) {$modify_logs=$_GET["modify_logs"];}
|
||||
elseif (isset($_POST["modify_logs"])) {$modify_logs=$_POST["modify_logs"];}
|
||||
|
||||
if (isset($_GET["modify_closer_logs"])) {$modify_closer_logs=$_GET["modify_closer_logs"];}
|
||||
elseif (isset($_POST["modify_closer_logs"])) {$modify_closer_logs=$_POST["modify_closer_logs"];}
|
||||
if (isset($_GET["modify_agent_logs"])) {$modify_agent_logs=$_GET["modify_agent_logs"];}
|
||||
elseif (isset($_POST["modify_agent_logs"])) {$modify_agent_logs=$_POST["modify_agent_logs"];}
|
||||
if (isset($_GET["add_closer_record"])) {$add_closer_record=$_GET["add_closer_record"];}
|
||||
elseif (isset($_POST["add_closer_record"])) {$add_closer_record=$_POST["add_closer_record"];}
|
||||
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
@@ -133,6 +143,14 @@ while ($i < $qm_conf_ct)
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$old_phone = ereg_replace("[^0-9]","",$old_phone);
|
||||
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
||||
$alt_phone = ereg_replace("[^0-9]","",$alt_phone);
|
||||
}
|
||||
if (strlen($phone_number)<6) {$phone_number=$old_phone;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and modify_leads='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
@@ -195,15 +213,8 @@ echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Leitung notieren Ände
|
||||
if ($end_call > 0)
|
||||
{
|
||||
|
||||
$call_length = ($STARTtime - $call_began);
|
||||
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','" . mysql_real_escape_string($call_began) . "','$STARTtime','" . mysql_real_escape_string($call_length) . "','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### update the lead record in the vicidial_list table
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',phone_number='$phone_number',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
@@ -238,18 +249,39 @@ $call_length = ($STARTtime - $call_began);
|
||||
|
||||
echo "<BR>Lead added to DNC List: $lead_id - $phone_number<BR>\n";
|
||||
}
|
||||
### update last record in vicidial_agent_log and vicidial_log tables
|
||||
### update last record in vicidial_log table
|
||||
if (($dispo != $status) and ($modify_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_closer_log table
|
||||
if (($dispo != $status) and ($modify_closer_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_closer_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_agent_log table
|
||||
if (($dispo != $status) and ($modify_agent_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_agent_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
if ($add_closer_record > 0)
|
||||
{
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','$NOW_TIME','$STARTtime','1','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -293,6 +325,7 @@ else
|
||||
if ($lead_count > 0)
|
||||
{
|
||||
|
||||
##### grab vicidial_log records #####
|
||||
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
@@ -318,10 +351,47 @@ else
|
||||
$call_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td></tr>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[15] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_agent_log records #####
|
||||
$stmt="select * from vicidial_agent_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Alogs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
$y=0;
|
||||
$agent_log = '';
|
||||
$Alog_campaign = '';
|
||||
while ($Alogs_to_print > $y)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if (strlen($Alog_campaign)<1) {$Alog_campaign = $row[5];}
|
||||
if (eregi("1$|3$|5$|7$|9$", $y))
|
||||
{$bgcolor='bgcolor="#B9CBFD"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
$y++;
|
||||
$agent_log .= "<tr $bgcolor>";
|
||||
$agent_log .= "<td><font size=1>$y</td>";
|
||||
$agent_log .= "<td><font size=2>$row[3]</td>";
|
||||
$agent_log .= "<td align=left><font size=2> $row[5]</td>\n";
|
||||
$agent_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[1]</A> </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[7]</td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[9] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[11] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[13] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[15] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[5];
|
||||
}
|
||||
|
||||
##### grab vicidial_closer_log records #####
|
||||
$stmt="select * from vicidial_closer_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by closecallid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Clogs_to_print = mysql_num_rows($rslt);
|
||||
@@ -348,10 +418,13 @@ else
|
||||
$closer_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td></tr>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_list data for lead #####
|
||||
$stmt="SELECT * from vicidial_list where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -361,7 +434,7 @@ else
|
||||
$tsr = "$row[4]";
|
||||
$vendor_id = "$row[5]";
|
||||
$list_id = "$row[7]";
|
||||
$campaign_id = "$row[8]";
|
||||
$gmt_offset_now = "$row[8]";
|
||||
$phone_code = "$row[10]";
|
||||
$phone_number = "$row[11]";
|
||||
$title = "$row[12]";
|
||||
@@ -391,7 +464,7 @@ else
|
||||
echo "<input type=hidden name=list_id value=\"$list_id\">\n";
|
||||
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
||||
echo "<input type=hidden name=phone_code value=\"$phone_code\">\n";
|
||||
echo "<input type=hidden name=phone_number value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=old_phone value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
||||
echo "<input type=hidden name=extension value=\"$extension\">\n";
|
||||
echo "<input type=hidden name=channel value=\"$channel\">\n";
|
||||
@@ -411,10 +484,11 @@ else
|
||||
|
||||
echo "<tr><td align=rightProvinz: </td><td align=left><input type=text name=province size=30 maxlength=30 value=\"$province\"></td></tr>\n";
|
||||
echo "<tr><td align=rightLand: </td><td align=left><input type=text name=country_code size=3 maxlength=3 value=\"$country_code\"></td></tr>\n";
|
||||
echo "<tr><td align=rightAlt Telefon: </td><td align=left><input type=text name=alt_phone size=10 maxlength=10 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Main Phone : </td><td align=left><input type=text name=phone_number size=20 maxlength=20 value=\"$phone_number\"></td></tr>\n";
|
||||
echo "<tr><td align=rightAlt Telefon: </td><td align=left><input type=text name=alt_phone size=20 maxlength=20 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=rightEmail: </td><td align=left><input type=text name=email size=30 maxlength=50 value=\"$email\"></td></tr>\n";
|
||||
echo "<tr><td align=rightSicherheit: </td><td align=left><input type=text name=security size=30 maxlength=100 value=\"$security\"></td></tr>\n";
|
||||
echo "<tr><td align=rightAnmerkungen: </td><td align=left><input type=text name=comments size=30 maxlength=255 value=\"$comments\"></td></tr>\n";
|
||||
echo "<tr><td align=rightAnmerkungen: </td><td align=left><TEXTAREA name=comments ROWS=3 COLS=65>$comments</TEXTAREA></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=rightEinteilung: </td><td align=left><select size=1 name=status>\n";
|
||||
|
||||
$stmt="SELECT * from vicidial_statuses where selectable='Y' order by status";
|
||||
@@ -455,7 +529,11 @@ else
|
||||
echo "</select> <i>(with $log_campaign statuses)</i></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent and vicidial logs </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify vicidial log </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent log </td><td align=left><input type=checkbox name=modify_agent_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify closer log </td><td align=left><input type=checkbox name=modify_closer_logs value=\"1\"></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Add closer log record </td><td align=left><input type=checkbox name=add_closer_record value=\"1\"></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr><td colspan=2 align=center><input type=submit name=submit value=\"SUBMIT\"></td></tr>\n";
|
||||
echo "</table></form>\n";
|
||||
@@ -543,6 +621,16 @@ echo "</TABLE></center>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>MITTELLOG RECORDS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>CAMPAIGN</td><td align=left><font size=2> TSR</td><td align=left><font size=2> PAUSE</td><td align=right><font size=2> WAIT</td><td align=right><font size=2> TALK</td><td align=right><font size=2> DISPO</td><td align=right><font size=2> STATUS</td><td align=right><font size=2> GROUP</td><td align=right><font size=2> SUB</td></tr>\n";
|
||||
|
||||
echo "$agent_log\n";
|
||||
|
||||
echo "</TABLE>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=1 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
# 70417-1059 - Fixed default phone_code bug
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
#
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-24';
|
||||
$build = '80428-0417';
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -551,7 +552,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -766,7 +767,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -787,7 +788,7 @@ function ParseFileName() {
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
|
||||
if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
if ($file_layout=="standard") {
|
||||
|
||||
@@ -990,7 +991,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
# }
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
} else if (filesize($leadfile)>8388608) {
|
||||
print "<center><font face='arial, helvetica' size=3 color='#990000'><B>STÖRUNG: Akte übersteigt die Begrenzung 8MB.</B></font></center>";
|
||||
#} else if (filesize($leadfile)>8388608) {
|
||||
# print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# - Fixed zero division bug
|
||||
# 71218-1155 - added end_date for multi-day reports
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80712-1007 - tally bug fixes and time display change
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -21,16 +22,18 @@ if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];}
|
||||
elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];}
|
||||
if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];}
|
||||
elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_GET["ΕΠΙΒΕΒΑΙΩΣΗ"];}
|
||||
elseif (isset($_POST["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_POST["ΕΠΙΒΕΒΑΙΩΣΗ"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_GET["ΕΠΙΒΕΒΑΙΩΣΗ"];}
|
||||
elseif (isset($_POST["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_POST["ΕΠΙΒΕΒΑΙΩΣΗ"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
|
||||
@@ -114,6 +117,7 @@ while ($i < $user_groups_to_print)
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Performance</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n";
|
||||
echo "<SELECT SIZE=1 NAME=group>\n";
|
||||
@@ -211,7 +215,7 @@ $i=0;
|
||||
while ($i < $rows_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
# $row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
|
||||
$calls[$i] = $row[0];
|
||||
$talk_sec[$i] = $row[1];
|
||||
@@ -328,8 +332,8 @@ while ($m < $k)
|
||||
}
|
||||
|
||||
$USERtime_M = ($Stime / 60);
|
||||
$USERtime_M = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M");
|
||||
$USERtime_M_int = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M_int");
|
||||
$USERtime_S = ($USERtime_M - $USERtime_M_int);
|
||||
$USERtime_S = ($USERtime_S * 60);
|
||||
$USERtime_S = round($USERtime_S, 0);
|
||||
@@ -338,8 +342,8 @@ while ($m < $k)
|
||||
$pfUSERtime_MS = sprintf("%7s", $USERtime_MS);
|
||||
|
||||
$USERtotTALK_M = ($Stalk_sec / 60);
|
||||
$USERtotTALK_M = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M");
|
||||
$USERtotTALK_M_int = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M_int");
|
||||
$USERtotTALK_S = ($USERtotTALK_M - $USERtotTALK_M_int);
|
||||
$USERtotTALK_S = ($USERtotTALK_S * 60);
|
||||
$USERtotTALK_S = round($USERtotTALK_S, 0);
|
||||
@@ -348,8 +352,8 @@ while ($m < $k)
|
||||
$pfUSERtotTALK_MS = sprintf("%6s", $USERtotTALK_MS);
|
||||
|
||||
$USERavgTALK_M = ($Stalk_avg / 60);
|
||||
$USERavgTALK_M = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M");
|
||||
$USERavgTALK_M_int = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M_int");
|
||||
$USERavgTALK_S = ($USERavgTALK_M - $USERavgTALK_M_int);
|
||||
$USERavgTALK_S = ($USERavgTALK_S * 60);
|
||||
$USERavgTALK_S = round($USERavgTALK_S, 0);
|
||||
@@ -358,8 +362,8 @@ while ($m < $k)
|
||||
$pfUSERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS);
|
||||
|
||||
$USERtotPAUSE_M = ($Spause_sec / 60);
|
||||
$USERtotPAUSE_M = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M");
|
||||
$USERtotPAUSE_M_int = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M_int");
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_M - $USERtotPAUSE_M_int);
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_S * 60);
|
||||
$USERtotPAUSE_S = round($USERtotPAUSE_S, 0);
|
||||
@@ -368,8 +372,8 @@ while ($m < $k)
|
||||
$pfUSERtotPAUSE_MS = sprintf("%6s", $USERtotPAUSE_MS);
|
||||
|
||||
$USERavgPAUSE_M = ($Spause_avg / 60);
|
||||
$USERavgPAUSE_M = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M");
|
||||
$USERavgPAUSE_M_int = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M_int");
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_M - $USERavgPAUSE_M_int);
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_S * 60);
|
||||
$USERavgPAUSE_S = round($USERavgPAUSE_S, 0);
|
||||
@@ -378,8 +382,8 @@ while ($m < $k)
|
||||
$pfUSERavgPAUSE_MS = sprintf("%6s", $USERavgPAUSE_MS);
|
||||
|
||||
$USERtotWAIT_M = ($Swait_sec / 60);
|
||||
$USERtotWAIT_M = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M");
|
||||
$USERtotWAIT_M_int = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M_int");
|
||||
$USERtotWAIT_S = ($USERtotWAIT_M - $USERtotWAIT_M_int);
|
||||
$USERtotWAIT_S = ($USERtotWAIT_S * 60);
|
||||
$USERtotWAIT_S = round($USERtotWAIT_S, 0);
|
||||
@@ -388,8 +392,8 @@ while ($m < $k)
|
||||
$pfUSERtotWAIT_MS = sprintf("%6s", $USERtotWAIT_MS);
|
||||
|
||||
$USERavgWAIT_M = ($Swait_avg / 60);
|
||||
$USERavgWAIT_M = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M");
|
||||
$USERavgWAIT_M_int = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M_int");
|
||||
$USERavgWAIT_S = ($USERavgWAIT_M - $USERavgWAIT_M_int);
|
||||
$USERavgWAIT_S = ($USERavgWAIT_S * 60);
|
||||
$USERavgWAIT_S = round($USERavgWAIT_S, 0);
|
||||
@@ -398,8 +402,8 @@ while ($m < $k)
|
||||
$pfUSERavgWAIT_MS = sprintf("%6s", $USERavgWAIT_MS);
|
||||
|
||||
$USERtotDISPO_M = ($Sdispo_sec / 60);
|
||||
$USERtotDISPO_M = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M");
|
||||
$USERtotDISPO_M_int = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M_int");
|
||||
$USERtotDISPO_S = ($USERtotDISPO_M - $USERtotDISPO_M_int);
|
||||
$USERtotDISPO_S = ($USERtotDISPO_S * 60);
|
||||
$USERtotDISPO_S = round($USERtotDISPO_S, 0);
|
||||
@@ -408,8 +412,8 @@ while ($m < $k)
|
||||
$pfUSERtotDISPO_MS = sprintf("%6s", $USERtotDISPO_MS);
|
||||
|
||||
$USERavgDISPO_M = ($Sdispo_avg / 60);
|
||||
$USERavgDISPO_M = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M");
|
||||
$USERavgDISPO_M_int = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M_int");
|
||||
$USERavgDISPO_S = ($USERavgDISPO_M - $USERavgDISPO_M_int);
|
||||
$USERavgDISPO_S = ($USERavgDISPO_S * 60);
|
||||
$USERavgDISPO_S = round($USERavgDISPO_S, 0);
|
||||
@@ -462,8 +466,8 @@ while ($n < $j)
|
||||
$TOT_AGENTS = sprintf("%-4s", $m);
|
||||
|
||||
$TOTtime_M = ($TOTtime / 60);
|
||||
$TOTtime_M = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M");
|
||||
$TOTtime_M_int = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M_int");
|
||||
$TOTtime_S = ($TOTtime_M - $TOTtime_M_int);
|
||||
$TOTtime_S = ($TOTtime_S * 60);
|
||||
$TOTtime_S = round($TOTtime_S, 0);
|
||||
@@ -473,8 +477,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtime_MS)>8) {$TOTtime_MS = substr("$TOTtime_MS", 0, -1);}
|
||||
|
||||
$TOTtotTALK_M = ($TOTtotTALK / 60);
|
||||
$TOTtotTALK_M = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M");
|
||||
$TOTtotTALK_M_int = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M_int");
|
||||
$TOTtotTALK_S = ($TOTtotTALK_M - $TOTtotTALK_M_int);
|
||||
$TOTtotTALK_S = ($TOTtotTALK_S * 60);
|
||||
$TOTtotTALK_S = round($TOTtotTALK_S, 0);
|
||||
@@ -484,8 +488,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotTALK_MS)>8) {$TOTtotTALK_MS = substr("$TOTtotTALK_MS", 0, -1);}
|
||||
|
||||
$TOTtotDISPO_M = ($TOTtotDISPO / 60);
|
||||
$TOTtotDISPO_M = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M");
|
||||
$TOTtotDISPO_M_int = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M_int");
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_M - $TOTtotDISPO_M_int);
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_S * 60);
|
||||
$TOTtotDISPO_S = round($TOTtotDISPO_S, 0);
|
||||
@@ -495,8 +499,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotDISPO_MS)>8) {$TOTtotDISPO_MS = substr("$TOTtotDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTtotPAUSE_M = ($TOTtotPAUSE / 60);
|
||||
$TOTtotPAUSE_M = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M");
|
||||
$TOTtotPAUSE_M_int = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M_int");
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_M - $TOTtotPAUSE_M_int);
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_S * 60);
|
||||
$TOTtotPAUSE_S = round($TOTtotPAUSE_S, 0);
|
||||
@@ -506,8 +510,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotPAUSE_MS)>8) {$TOTtotPAUSE_MS = substr("$TOTtotPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTtotWAIT_M = ($TOTtotWAIT / 60);
|
||||
$TOTtotWAIT_M = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M");
|
||||
$TOTtotWAIT_M_int = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M_int");
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_M - $TOTtotWAIT_M_int);
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_S * 60);
|
||||
$TOTtotWAIT_S = round($TOTtotWAIT_S, 0);
|
||||
@@ -518,8 +522,8 @@ while ($n < $j)
|
||||
|
||||
|
||||
$TOTavgTALK_M = ( ($TOTtotTALK / $TOTcalls) / 60);
|
||||
$TOTavgTALK_M = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M");
|
||||
$TOTavgTALK_M_int = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M_int");
|
||||
$TOTavgTALK_S = ($TOTavgTALK_M - $TOTavgTALK_M_int);
|
||||
$TOTavgTALK_S = ($TOTavgTALK_S * 60);
|
||||
$TOTavgTALK_S = round($TOTavgTALK_S, 0);
|
||||
@@ -529,8 +533,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgTALK_MS)>6) {$TOTavgTALK_MS = substr("$TOTavgTALK_MS", 0, -1);}
|
||||
|
||||
$TOTavgDISPO_M = ( ($TOTtotDISPO / $TOTcalls) / 60);
|
||||
$TOTavgDISPO_M = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M");
|
||||
$TOTavgDISPO_M_int = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M_int");
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_M - $TOTavgDISPO_M_int);
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_S * 60);
|
||||
$TOTavgDISPO_S = round($TOTavgDISPO_S, 0);
|
||||
@@ -540,8 +544,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgDISPO_MS)>6) {$TOTavgDISPO_MS = substr("$TOTavgDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTavgPAUSE_M = ( ($TOTtotPAUSE / $TOTcalls) / 60);
|
||||
$TOTavgPAUSE_M = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M");
|
||||
$TOTavgPAUSE_M_int = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M_int");
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_M - $TOTavgPAUSE_M_int);
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_S * 60);
|
||||
$TOTavgPAUSE_S = round($TOTavgPAUSE_S, 0);
|
||||
@@ -551,8 +555,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgPAUSE_MS)>6) {$TOTavgPAUSE_MS = substr("$TOTavgPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTavgWAIT_M = ( ($TOTtotWAIT / $TOTcalls) / 60);
|
||||
$TOTavgWAIT_M = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M");
|
||||
$TOTavgWAIT_M_int = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M_int");
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_M - $TOTavgWAIT_M_int);
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_S * 60);
|
||||
$TOTavgWAIT_S = round($TOTavgWAIT_S, 0);
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
# 70702-1259 - Added recording location link and truncation
|
||||
# 70906-2132 - Added closer_log records display
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80516-0936 - Cleanup of logging changes, added vicidial_agent_log display
|
||||
# 80701-0832 - Changed to allow for altering of main phone number
|
||||
# 80805-2106 - Changed comments to TEXTAREA
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -34,6 +37,8 @@ if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];}
|
||||
elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];}
|
||||
if (isset($_GET["phone"])) {$phone=$_GET["phone"];}
|
||||
elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];}
|
||||
if (isset($_GET["old_phone"])) {$old_phone=$_GET["old_phone"];}
|
||||
elseif (isset($_POST["old_phone"])) {$old_phone=$_POST["old_phone"];}
|
||||
if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];}
|
||||
elseif (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];}
|
||||
if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];}
|
||||
@@ -108,7 +113,12 @@ if (isset($_GET["CBuser"])) {$CBuser=$_GET["CBuser"];}
|
||||
elseif (isset($_POST["CBuser"])) {$CBuser=$_POST["CBuser"];}
|
||||
if (isset($_GET["modify_logs"])) {$modify_logs=$_GET["modify_logs"];}
|
||||
elseif (isset($_POST["modify_logs"])) {$modify_logs=$_POST["modify_logs"];}
|
||||
|
||||
if (isset($_GET["modify_closer_logs"])) {$modify_closer_logs=$_GET["modify_closer_logs"];}
|
||||
elseif (isset($_POST["modify_closer_logs"])) {$modify_closer_logs=$_POST["modify_closer_logs"];}
|
||||
if (isset($_GET["modify_agent_logs"])) {$modify_agent_logs=$_GET["modify_agent_logs"];}
|
||||
elseif (isset($_POST["modify_agent_logs"])) {$modify_agent_logs=$_POST["modify_agent_logs"];}
|
||||
if (isset($_GET["add_closer_record"])) {$add_closer_record=$_GET["add_closer_record"];}
|
||||
elseif (isset($_POST["add_closer_record"])) {$add_closer_record=$_POST["add_closer_record"];}
|
||||
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
@@ -133,6 +143,14 @@ while ($i < $qm_conf_ct)
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$old_phone = ereg_replace("[^0-9]","",$old_phone);
|
||||
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
||||
$alt_phone = ereg_replace("[^0-9]","",$alt_phone);
|
||||
}
|
||||
if (strlen($phone_number)<6) {$phone_number=$old_phone;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and modify_leads='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
@@ -195,15 +213,8 @@ echo "<a href=\"./admin.php?ADD=100\">ΔΙΑΧΕΙΡΙΣΗ</a>: Τροποποί
|
||||
if ($end_call > 0)
|
||||
{
|
||||
|
||||
$call_length = ($STARTtime - $call_began);
|
||||
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','" . mysql_real_escape_string($call_began) . "','$STARTtime','" . mysql_real_escape_string($call_length) . "','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### update the lead record in the vicidial_list table
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',phone_number='$phone_number',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
@@ -238,18 +249,39 @@ $call_length = ($STARTtime - $call_began);
|
||||
|
||||
echo "<BR>Lead added to DNC List: $lead_id - $phone_number<BR>\n";
|
||||
}
|
||||
### update last record in vicidial_agent_log and vicidial_log tables
|
||||
### update last record in vicidial_log table
|
||||
if (($dispo != $status) and ($modify_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_closer_log table
|
||||
if (($dispo != $status) and ($modify_closer_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_closer_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_agent_log table
|
||||
if (($dispo != $status) and ($modify_agent_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_agent_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
if ($add_closer_record > 0)
|
||||
{
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','$NOW_TIME','$STARTtime','1','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -293,6 +325,7 @@ else
|
||||
if ($lead_count > 0)
|
||||
{
|
||||
|
||||
##### grab vicidial_log records #####
|
||||
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
@@ -318,10 +351,47 @@ else
|
||||
$call_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td></tr>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[15] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_agent_log records #####
|
||||
$stmt="select * from vicidial_agent_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Alogs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
$y=0;
|
||||
$agent_log = '';
|
||||
$Alog_campaign = '';
|
||||
while ($Alogs_to_print > $y)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if (strlen($Alog_campaign)<1) {$Alog_campaign = $row[5];}
|
||||
if (eregi("1$|3$|5$|7$|9$", $y))
|
||||
{$bgcolor='bgcolor="#B9CBFD"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
$y++;
|
||||
$agent_log .= "<tr $bgcolor>";
|
||||
$agent_log .= "<td><font size=1>$y</td>";
|
||||
$agent_log .= "<td><font size=2>$row[3]</td>";
|
||||
$agent_log .= "<td align=left><font size=2> $row[5]</td>\n";
|
||||
$agent_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[1]</A> </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[7]</td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[9] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[11] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[13] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[15] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[5];
|
||||
}
|
||||
|
||||
##### grab vicidial_closer_log records #####
|
||||
$stmt="select * from vicidial_closer_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by closecallid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Clogs_to_print = mysql_num_rows($rslt);
|
||||
@@ -348,10 +418,13 @@ else
|
||||
$closer_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td></tr>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_list data for lead #####
|
||||
$stmt="SELECT * from vicidial_list where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -361,7 +434,7 @@ else
|
||||
$tsr = "$row[4]";
|
||||
$vendor_id = "$row[5]";
|
||||
$list_id = "$row[7]";
|
||||
$campaign_id = "$row[8]";
|
||||
$gmt_offset_now = "$row[8]";
|
||||
$phone_code = "$row[10]";
|
||||
$phone_number = "$row[11]";
|
||||
$title = "$row[12]";
|
||||
@@ -391,7 +464,7 @@ else
|
||||
echo "<input type=hidden name=list_id value=\"$list_id\">\n";
|
||||
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
||||
echo "<input type=hidden name=phone_code value=\"$phone_code\">\n";
|
||||
echo "<input type=hidden name=phone_number value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=old_phone value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
||||
echo "<input type=hidden name=extension value=\"$extension\">\n";
|
||||
echo "<input type=hidden name=channel value=\"$channel\">\n";
|
||||
@@ -411,10 +484,11 @@ else
|
||||
|
||||
echo "<tr><td align=rightΕπαρχία: </td><td align=left><input type=text name=province size=30 maxlength=30 value=\"$province\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Χώρα : </td><td align=left><input type=text name=country_code size=3 maxlength=3 value=\"$country_code\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Εναλ Τηλέφωνο : </td><td align=left><input type=text name=alt_phone size=10 maxlength=10 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Main Phone : </td><td align=left><input type=text name=phone_number size=20 maxlength=20 value=\"$phone_number\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Εναλ Τηλέφωνο : </td><td align=left><input type=text name=alt_phone size=20 maxlength=20 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=rightΗλεκτρονικό ταχυδρομείο: </td><td align=left><input type=text name=email size=30 maxlength=50 value=\"$email\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Ασφάλεια : </td><td align=left><input type=text name=security size=30 maxlength=100 value=\"$security\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Σχόλια : </td><td align=left><input type=text name=comments size=30 maxlength=255 value=\"$comments\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Σχόλια : </td><td align=left><TEXTAREA name=comments ROWS=3 COLS=65>$comments</TEXTAREA></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Τερματισμός: </td><td align=left><select size=1 name=status>\n";
|
||||
|
||||
$stmt="SELECT * from vicidial_statuses where selectable='Y' order by status";
|
||||
@@ -455,7 +529,11 @@ else
|
||||
echo "</select> <i>(with $log_campaign statuses)</i></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent and vicidial logs </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify vicidial log </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent log </td><td align=left><input type=checkbox name=modify_agent_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify closer log </td><td align=left><input type=checkbox name=modify_closer_logs value=\"1\"></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Add closer log record </td><td align=left><input type=checkbox name=add_closer_record value=\"1\"></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr><td colspan=2 align=center><input type=submit name=submit value=\"ΕΠΙΒΕΒΑΙΩΣΗ\"></td></tr>\n";
|
||||
echo "</table></form>\n";
|
||||
@@ -543,6 +621,16 @@ echo "</TABLE></center>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>ΧΕΙΡΙΣΤΗΣLOG RECORDS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>CAMPAIGN</td><td align=left><font size=2> TSR</td><td align=left><font size=2> PAUSE</td><td align=right><font size=2> WAIT</td><td align=right><font size=2> TALK</td><td align=right><font size=2> DISPO</td><td align=right><font size=2> STATUS</td><td align=right><font size=2> GROUP</td><td align=right><font size=2> SUB</td></tr>\n";
|
||||
|
||||
echo "$agent_log\n";
|
||||
|
||||
echo "</TABLE>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=1 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
# 70417-1059 - Fixed default phone_code bug
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
#
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-24';
|
||||
$build = '80428-0417';
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -551,7 +552,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -766,7 +767,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -787,7 +788,7 @@ function ParseFileName() {
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
|
||||
if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
if ($file_layout=="standard") {
|
||||
|
||||
@@ -990,7 +991,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
# }
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
} else if (filesize($leadfile)>8388608) {
|
||||
print "<center><font face='arial, helvetica' size=3 color='#990000'><B>Λάθος: Το αρχείο ξεπέρασε το όριο των 8ΜΒ.</B></font></center>";
|
||||
#} else if (filesize($leadfile)>8388608) {
|
||||
# print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# - Fixed zero division bug
|
||||
# 71218-1155 - added end_date for multi-day reports
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80712-1007 - tally bug fixes and time display change
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -21,16 +22,18 @@ if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];}
|
||||
elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];}
|
||||
if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];}
|
||||
elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
|
||||
@@ -114,6 +117,7 @@ while ($i < $user_groups_to_print)
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Performance</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n";
|
||||
echo "<SELECT SIZE=1 NAME=group>\n";
|
||||
@@ -211,7 +215,7 @@ $i=0;
|
||||
while ($i < $rows_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
# $row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
|
||||
$calls[$i] = $row[0];
|
||||
$talk_sec[$i] = $row[1];
|
||||
@@ -328,8 +332,8 @@ while ($m < $k)
|
||||
}
|
||||
|
||||
$USERtime_M = ($Stime / 60);
|
||||
$USERtime_M = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M");
|
||||
$USERtime_M_int = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M_int");
|
||||
$USERtime_S = ($USERtime_M - $USERtime_M_int);
|
||||
$USERtime_S = ($USERtime_S * 60);
|
||||
$USERtime_S = round($USERtime_S, 0);
|
||||
@@ -338,8 +342,8 @@ while ($m < $k)
|
||||
$pfUSERtime_MS = sprintf("%7s", $USERtime_MS);
|
||||
|
||||
$USERtotTALK_M = ($Stalk_sec / 60);
|
||||
$USERtotTALK_M = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M");
|
||||
$USERtotTALK_M_int = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M_int");
|
||||
$USERtotTALK_S = ($USERtotTALK_M - $USERtotTALK_M_int);
|
||||
$USERtotTALK_S = ($USERtotTALK_S * 60);
|
||||
$USERtotTALK_S = round($USERtotTALK_S, 0);
|
||||
@@ -348,8 +352,8 @@ while ($m < $k)
|
||||
$pfUSERtotTALK_MS = sprintf("%6s", $USERtotTALK_MS);
|
||||
|
||||
$USERavgTALK_M = ($Stalk_avg / 60);
|
||||
$USERavgTALK_M = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M");
|
||||
$USERavgTALK_M_int = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M_int");
|
||||
$USERavgTALK_S = ($USERavgTALK_M - $USERavgTALK_M_int);
|
||||
$USERavgTALK_S = ($USERavgTALK_S * 60);
|
||||
$USERavgTALK_S = round($USERavgTALK_S, 0);
|
||||
@@ -358,8 +362,8 @@ while ($m < $k)
|
||||
$pfUSERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS);
|
||||
|
||||
$USERtotPAUSE_M = ($Spause_sec / 60);
|
||||
$USERtotPAUSE_M = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M");
|
||||
$USERtotPAUSE_M_int = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M_int");
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_M - $USERtotPAUSE_M_int);
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_S * 60);
|
||||
$USERtotPAUSE_S = round($USERtotPAUSE_S, 0);
|
||||
@@ -368,8 +372,8 @@ while ($m < $k)
|
||||
$pfUSERtotPAUSE_MS = sprintf("%6s", $USERtotPAUSE_MS);
|
||||
|
||||
$USERavgPAUSE_M = ($Spause_avg / 60);
|
||||
$USERavgPAUSE_M = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M");
|
||||
$USERavgPAUSE_M_int = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M_int");
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_M - $USERavgPAUSE_M_int);
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_S * 60);
|
||||
$USERavgPAUSE_S = round($USERavgPAUSE_S, 0);
|
||||
@@ -378,8 +382,8 @@ while ($m < $k)
|
||||
$pfUSERavgPAUSE_MS = sprintf("%6s", $USERavgPAUSE_MS);
|
||||
|
||||
$USERtotWAIT_M = ($Swait_sec / 60);
|
||||
$USERtotWAIT_M = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M");
|
||||
$USERtotWAIT_M_int = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M_int");
|
||||
$USERtotWAIT_S = ($USERtotWAIT_M - $USERtotWAIT_M_int);
|
||||
$USERtotWAIT_S = ($USERtotWAIT_S * 60);
|
||||
$USERtotWAIT_S = round($USERtotWAIT_S, 0);
|
||||
@@ -388,8 +392,8 @@ while ($m < $k)
|
||||
$pfUSERtotWAIT_MS = sprintf("%6s", $USERtotWAIT_MS);
|
||||
|
||||
$USERavgWAIT_M = ($Swait_avg / 60);
|
||||
$USERavgWAIT_M = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M");
|
||||
$USERavgWAIT_M_int = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M_int");
|
||||
$USERavgWAIT_S = ($USERavgWAIT_M - $USERavgWAIT_M_int);
|
||||
$USERavgWAIT_S = ($USERavgWAIT_S * 60);
|
||||
$USERavgWAIT_S = round($USERavgWAIT_S, 0);
|
||||
@@ -398,8 +402,8 @@ while ($m < $k)
|
||||
$pfUSERavgWAIT_MS = sprintf("%6s", $USERavgWAIT_MS);
|
||||
|
||||
$USERtotDISPO_M = ($Sdispo_sec / 60);
|
||||
$USERtotDISPO_M = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M");
|
||||
$USERtotDISPO_M_int = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M_int");
|
||||
$USERtotDISPO_S = ($USERtotDISPO_M - $USERtotDISPO_M_int);
|
||||
$USERtotDISPO_S = ($USERtotDISPO_S * 60);
|
||||
$USERtotDISPO_S = round($USERtotDISPO_S, 0);
|
||||
@@ -408,8 +412,8 @@ while ($m < $k)
|
||||
$pfUSERtotDISPO_MS = sprintf("%6s", $USERtotDISPO_MS);
|
||||
|
||||
$USERavgDISPO_M = ($Sdispo_avg / 60);
|
||||
$USERavgDISPO_M = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M");
|
||||
$USERavgDISPO_M_int = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M_int");
|
||||
$USERavgDISPO_S = ($USERavgDISPO_M - $USERavgDISPO_M_int);
|
||||
$USERavgDISPO_S = ($USERavgDISPO_S * 60);
|
||||
$USERavgDISPO_S = round($USERavgDISPO_S, 0);
|
||||
@@ -462,8 +466,8 @@ while ($n < $j)
|
||||
$TOT_AGENTS = sprintf("%-4s", $m);
|
||||
|
||||
$TOTtime_M = ($TOTtime / 60);
|
||||
$TOTtime_M = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M");
|
||||
$TOTtime_M_int = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M_int");
|
||||
$TOTtime_S = ($TOTtime_M - $TOTtime_M_int);
|
||||
$TOTtime_S = ($TOTtime_S * 60);
|
||||
$TOTtime_S = round($TOTtime_S, 0);
|
||||
@@ -473,8 +477,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtime_MS)>8) {$TOTtime_MS = substr("$TOTtime_MS", 0, -1);}
|
||||
|
||||
$TOTtotTALK_M = ($TOTtotTALK / 60);
|
||||
$TOTtotTALK_M = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M");
|
||||
$TOTtotTALK_M_int = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M_int");
|
||||
$TOTtotTALK_S = ($TOTtotTALK_M - $TOTtotTALK_M_int);
|
||||
$TOTtotTALK_S = ($TOTtotTALK_S * 60);
|
||||
$TOTtotTALK_S = round($TOTtotTALK_S, 0);
|
||||
@@ -484,8 +488,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotTALK_MS)>8) {$TOTtotTALK_MS = substr("$TOTtotTALK_MS", 0, -1);}
|
||||
|
||||
$TOTtotDISPO_M = ($TOTtotDISPO / 60);
|
||||
$TOTtotDISPO_M = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M");
|
||||
$TOTtotDISPO_M_int = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M_int");
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_M - $TOTtotDISPO_M_int);
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_S * 60);
|
||||
$TOTtotDISPO_S = round($TOTtotDISPO_S, 0);
|
||||
@@ -495,8 +499,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotDISPO_MS)>8) {$TOTtotDISPO_MS = substr("$TOTtotDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTtotPAUSE_M = ($TOTtotPAUSE / 60);
|
||||
$TOTtotPAUSE_M = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M");
|
||||
$TOTtotPAUSE_M_int = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M_int");
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_M - $TOTtotPAUSE_M_int);
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_S * 60);
|
||||
$TOTtotPAUSE_S = round($TOTtotPAUSE_S, 0);
|
||||
@@ -506,8 +510,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotPAUSE_MS)>8) {$TOTtotPAUSE_MS = substr("$TOTtotPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTtotWAIT_M = ($TOTtotWAIT / 60);
|
||||
$TOTtotWAIT_M = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M");
|
||||
$TOTtotWAIT_M_int = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M_int");
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_M - $TOTtotWAIT_M_int);
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_S * 60);
|
||||
$TOTtotWAIT_S = round($TOTtotWAIT_S, 0);
|
||||
@@ -518,8 +522,8 @@ while ($n < $j)
|
||||
|
||||
|
||||
$TOTavgTALK_M = ( ($TOTtotTALK / $TOTcalls) / 60);
|
||||
$TOTavgTALK_M = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M");
|
||||
$TOTavgTALK_M_int = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M_int");
|
||||
$TOTavgTALK_S = ($TOTavgTALK_M - $TOTavgTALK_M_int);
|
||||
$TOTavgTALK_S = ($TOTavgTALK_S * 60);
|
||||
$TOTavgTALK_S = round($TOTavgTALK_S, 0);
|
||||
@@ -529,8 +533,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgTALK_MS)>6) {$TOTavgTALK_MS = substr("$TOTavgTALK_MS", 0, -1);}
|
||||
|
||||
$TOTavgDISPO_M = ( ($TOTtotDISPO / $TOTcalls) / 60);
|
||||
$TOTavgDISPO_M = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M");
|
||||
$TOTavgDISPO_M_int = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M_int");
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_M - $TOTavgDISPO_M_int);
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_S * 60);
|
||||
$TOTavgDISPO_S = round($TOTavgDISPO_S, 0);
|
||||
@@ -540,8 +544,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgDISPO_MS)>6) {$TOTavgDISPO_MS = substr("$TOTavgDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTavgPAUSE_M = ( ($TOTtotPAUSE / $TOTcalls) / 60);
|
||||
$TOTavgPAUSE_M = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M");
|
||||
$TOTavgPAUSE_M_int = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M_int");
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_M - $TOTavgPAUSE_M_int);
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_S * 60);
|
||||
$TOTavgPAUSE_S = round($TOTavgPAUSE_S, 0);
|
||||
@@ -551,8 +555,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgPAUSE_MS)>6) {$TOTavgPAUSE_MS = substr("$TOTavgPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTavgWAIT_M = ( ($TOTtotWAIT / $TOTcalls) / 60);
|
||||
$TOTavgWAIT_M = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M");
|
||||
$TOTavgWAIT_M_int = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M_int");
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_M - $TOTavgWAIT_M_int);
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_S * 60);
|
||||
$TOTavgWAIT_S = round($TOTavgWAIT_S, 0);
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
# 70702-1259 - Added recording location link and truncation
|
||||
# 70906-2132 - Added closer_log records display
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80516-0936 - Cleanup of logging changes, added vicidial_agent_log display
|
||||
# 80701-0832 - Changed to allow for altering of main phone number
|
||||
# 80805-2106 - Changed comments to TEXTAREA
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -34,6 +37,8 @@ if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];}
|
||||
elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];}
|
||||
if (isset($_GET["phone"])) {$phone=$_GET["phone"];}
|
||||
elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];}
|
||||
if (isset($_GET["old_phone"])) {$old_phone=$_GET["old_phone"];}
|
||||
elseif (isset($_POST["old_phone"])) {$old_phone=$_POST["old_phone"];}
|
||||
if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];}
|
||||
elseif (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];}
|
||||
if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];}
|
||||
@@ -108,7 +113,12 @@ if (isset($_GET["CBuser"])) {$CBuser=$_GET["CBuser"];}
|
||||
elseif (isset($_POST["CBuser"])) {$CBuser=$_POST["CBuser"];}
|
||||
if (isset($_GET["modify_logs"])) {$modify_logs=$_GET["modify_logs"];}
|
||||
elseif (isset($_POST["modify_logs"])) {$modify_logs=$_POST["modify_logs"];}
|
||||
|
||||
if (isset($_GET["modify_closer_logs"])) {$modify_closer_logs=$_GET["modify_closer_logs"];}
|
||||
elseif (isset($_POST["modify_closer_logs"])) {$modify_closer_logs=$_POST["modify_closer_logs"];}
|
||||
if (isset($_GET["modify_agent_logs"])) {$modify_agent_logs=$_GET["modify_agent_logs"];}
|
||||
elseif (isset($_POST["modify_agent_logs"])) {$modify_agent_logs=$_POST["modify_agent_logs"];}
|
||||
if (isset($_GET["add_closer_record"])) {$add_closer_record=$_GET["add_closer_record"];}
|
||||
elseif (isset($_POST["add_closer_record"])) {$add_closer_record=$_POST["add_closer_record"];}
|
||||
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
@@ -133,6 +143,14 @@ while ($i < $qm_conf_ct)
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$old_phone = ereg_replace("[^0-9]","",$old_phone);
|
||||
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
||||
$alt_phone = ereg_replace("[^0-9]","",$alt_phone);
|
||||
}
|
||||
if (strlen($phone_number)<6) {$phone_number=$old_phone;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and modify_leads='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
@@ -195,15 +213,8 @@ echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Lead record modificati
|
||||
if ($end_call > 0)
|
||||
{
|
||||
|
||||
$call_length = ($STARTtime - $call_began);
|
||||
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','" . mysql_real_escape_string($call_began) . "','$STARTtime','" . mysql_real_escape_string($call_length) . "','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### update the lead record in the vicidial_list table
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',phone_number='$phone_number',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
@@ -238,18 +249,39 @@ $call_length = ($STARTtime - $call_began);
|
||||
|
||||
echo "<BR>Lead added to DNC List: $lead_id - $phone_number<BR>\n";
|
||||
}
|
||||
### update last record in vicidial_agent_log and vicidial_log tables
|
||||
### update last record in vicidial_log table
|
||||
if (($dispo != $status) and ($modify_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_closer_log table
|
||||
if (($dispo != $status) and ($modify_closer_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_closer_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_agent_log table
|
||||
if (($dispo != $status) and ($modify_agent_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_agent_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
if ($add_closer_record > 0)
|
||||
{
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','$NOW_TIME','$STARTtime','1','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -293,6 +325,7 @@ else
|
||||
if ($lead_count > 0)
|
||||
{
|
||||
|
||||
##### grab vicidial_log records #####
|
||||
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
@@ -318,10 +351,47 @@ else
|
||||
$call_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td></tr>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[15] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_agent_log records #####
|
||||
$stmt="select * from vicidial_agent_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Alogs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
$y=0;
|
||||
$agent_log = '';
|
||||
$Alog_campaign = '';
|
||||
while ($Alogs_to_print > $y)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if (strlen($Alog_campaign)<1) {$Alog_campaign = $row[5];}
|
||||
if (eregi("1$|3$|5$|7$|9$", $y))
|
||||
{$bgcolor='bgcolor="#B9CBFD"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
$y++;
|
||||
$agent_log .= "<tr $bgcolor>";
|
||||
$agent_log .= "<td><font size=1>$y</td>";
|
||||
$agent_log .= "<td><font size=2>$row[3]</td>";
|
||||
$agent_log .= "<td align=left><font size=2> $row[5]</td>\n";
|
||||
$agent_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[1]</A> </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[7]</td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[9] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[11] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[13] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[15] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[5];
|
||||
}
|
||||
|
||||
##### grab vicidial_closer_log records #####
|
||||
$stmt="select * from vicidial_closer_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by closecallid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Clogs_to_print = mysql_num_rows($rslt);
|
||||
@@ -348,10 +418,13 @@ else
|
||||
$closer_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td></tr>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_list data for lead #####
|
||||
$stmt="SELECT * from vicidial_list where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -361,7 +434,7 @@ else
|
||||
$tsr = "$row[4]";
|
||||
$vendor_id = "$row[5]";
|
||||
$list_id = "$row[7]";
|
||||
$campaign_id = "$row[8]";
|
||||
$gmt_offset_now = "$row[8]";
|
||||
$phone_code = "$row[10]";
|
||||
$phone_number = "$row[11]";
|
||||
$title = "$row[12]";
|
||||
@@ -391,7 +464,7 @@ else
|
||||
echo "<input type=hidden name=list_id value=\"$list_id\">\n";
|
||||
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
||||
echo "<input type=hidden name=phone_code value=\"$phone_code\">\n";
|
||||
echo "<input type=hidden name=phone_number value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=old_phone value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
||||
echo "<input type=hidden name=extension value=\"$extension\">\n";
|
||||
echo "<input type=hidden name=channel value=\"$channel\">\n";
|
||||
@@ -411,10 +484,11 @@ else
|
||||
|
||||
echo "<tr><td align=right>Province : </td><td align=left><input type=text name=province size=30 maxlength=30 value=\"$province\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Country : </td><td align=left><input type=text name=country_code size=3 maxlength=3 value=\"$country_code\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Alt Phone : </td><td align=left><input type=text name=alt_phone size=10 maxlength=10 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Main Phone : </td><td align=left><input type=text name=phone_number size=20 maxlength=20 value=\"$phone_number\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Alt Phone : </td><td align=left><input type=text name=alt_phone size=20 maxlength=20 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Email : </td><td align=left><input type=text name=email size=30 maxlength=50 value=\"$email\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Security : </td><td align=left><input type=text name=security size=30 maxlength=100 value=\"$security\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Comments : </td><td align=left><input type=text name=comments size=30 maxlength=255 value=\"$comments\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Comments : </td><td align=left><TEXTAREA name=comments ROWS=3 COLS=65>$comments</TEXTAREA></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Disposition: </td><td align=left><select size=1 name=status>\n";
|
||||
|
||||
$stmt="SELECT * from vicidial_statuses where selectable='Y' order by status";
|
||||
@@ -455,7 +529,11 @@ else
|
||||
echo "</select> <i>(with $log_campaign statuses)</i></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent and vicidial logs </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify vicidial log </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent log </td><td align=left><input type=checkbox name=modify_agent_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify closer log </td><td align=left><input type=checkbox name=modify_closer_logs value=\"1\"></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Add closer log record </td><td align=left><input type=checkbox name=add_closer_record value=\"1\"></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr><td colspan=2 align=center><input type=submit name=submit value=\"SUBMIT\"></td></tr>\n";
|
||||
echo "</table></form>\n";
|
||||
@@ -543,6 +621,16 @@ echo "</TABLE></center>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>AGENT LOG RECORDS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>CAMPAIGN</td><td align=left><font size=2> TSR</td><td align=left><font size=2> PAUSE</td><td align=right><font size=2> WAIT</td><td align=right><font size=2> TALK</td><td align=right><font size=2> DISPO</td><td align=right><font size=2> STATUS</td><td align=right><font size=2> GROUP</td><td align=right><font size=2> SUB</td></tr>\n";
|
||||
|
||||
echo "$agent_log\n";
|
||||
|
||||
echo "</TABLE>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=1 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
# 70417-1059 - Fixed default phone_code bug
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
#
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-24';
|
||||
$build = '80428-0417';
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -551,7 +552,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -766,7 +767,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -787,7 +788,7 @@ function ParseFileName() {
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
|
||||
if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
if ($file_layout=="standard") {
|
||||
|
||||
@@ -990,7 +991,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
# }
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
} else if (filesize($leadfile)>8388608) {
|
||||
print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
#} else if (filesize($leadfile)>8388608) {
|
||||
# print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# - Fixed zero division bug
|
||||
# 71218-1155 - added end_date for multi-day reports
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80712-1007 - tally bug fixes and time display change
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -21,16 +22,18 @@ if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];}
|
||||
elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];}
|
||||
if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];}
|
||||
elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["ENVIAR"])) {$ENVIAR=$_GET["ENVIAR"];}
|
||||
elseif (isset($_POST["ENVIAR"])) {$ENVIAR=$_POST["ENVIAR"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["ENVIAR"])) {$ENVIAR=$_GET["ENVIAR"];}
|
||||
elseif (isset($_POST["ENVIAR"])) {$ENVIAR=$_POST["ENVIAR"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
|
||||
@@ -114,6 +117,7 @@ while ($i < $user_groups_to_print)
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Performance</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n";
|
||||
echo "<SELECT SIZE=1 NAME=group>\n";
|
||||
@@ -211,7 +215,7 @@ $i=0;
|
||||
while ($i < $rows_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
# $row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
|
||||
$calls[$i] = $row[0];
|
||||
$talk_sec[$i] = $row[1];
|
||||
@@ -328,8 +332,8 @@ while ($m < $k)
|
||||
}
|
||||
|
||||
$USERtime_M = ($Stime / 60);
|
||||
$USERtime_M = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M");
|
||||
$USERtime_M_int = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M_int");
|
||||
$USERtime_S = ($USERtime_M - $USERtime_M_int);
|
||||
$USERtime_S = ($USERtime_S * 60);
|
||||
$USERtime_S = round($USERtime_S, 0);
|
||||
@@ -338,8 +342,8 @@ while ($m < $k)
|
||||
$pfUSERtime_MS = sprintf("%7s", $USERtime_MS);
|
||||
|
||||
$USERtotTALK_M = ($Stalk_sec / 60);
|
||||
$USERtotTALK_M = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M");
|
||||
$USERtotTALK_M_int = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M_int");
|
||||
$USERtotTALK_S = ($USERtotTALK_M - $USERtotTALK_M_int);
|
||||
$USERtotTALK_S = ($USERtotTALK_S * 60);
|
||||
$USERtotTALK_S = round($USERtotTALK_S, 0);
|
||||
@@ -348,8 +352,8 @@ while ($m < $k)
|
||||
$pfUSERtotTALK_MS = sprintf("%6s", $USERtotTALK_MS);
|
||||
|
||||
$USERavgTALK_M = ($Stalk_avg / 60);
|
||||
$USERavgTALK_M = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M");
|
||||
$USERavgTALK_M_int = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M_int");
|
||||
$USERavgTALK_S = ($USERavgTALK_M - $USERavgTALK_M_int);
|
||||
$USERavgTALK_S = ($USERavgTALK_S * 60);
|
||||
$USERavgTALK_S = round($USERavgTALK_S, 0);
|
||||
@@ -358,8 +362,8 @@ while ($m < $k)
|
||||
$pfUSERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS);
|
||||
|
||||
$USERtotPAUSE_M = ($Spause_sec / 60);
|
||||
$USERtotPAUSE_M = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M");
|
||||
$USERtotPAUSE_M_int = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M_int");
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_M - $USERtotPAUSE_M_int);
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_S * 60);
|
||||
$USERtotPAUSE_S = round($USERtotPAUSE_S, 0);
|
||||
@@ -368,8 +372,8 @@ while ($m < $k)
|
||||
$pfUSERtotPAUSE_MS = sprintf("%6s", $USERtotPAUSE_MS);
|
||||
|
||||
$USERavgPAUSE_M = ($Spause_avg / 60);
|
||||
$USERavgPAUSE_M = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M");
|
||||
$USERavgPAUSE_M_int = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M_int");
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_M - $USERavgPAUSE_M_int);
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_S * 60);
|
||||
$USERavgPAUSE_S = round($USERavgPAUSE_S, 0);
|
||||
@@ -378,8 +382,8 @@ while ($m < $k)
|
||||
$pfUSERavgPAUSE_MS = sprintf("%6s", $USERavgPAUSE_MS);
|
||||
|
||||
$USERtotWAIT_M = ($Swait_sec / 60);
|
||||
$USERtotWAIT_M = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M");
|
||||
$USERtotWAIT_M_int = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M_int");
|
||||
$USERtotWAIT_S = ($USERtotWAIT_M - $USERtotWAIT_M_int);
|
||||
$USERtotWAIT_S = ($USERtotWAIT_S * 60);
|
||||
$USERtotWAIT_S = round($USERtotWAIT_S, 0);
|
||||
@@ -388,8 +392,8 @@ while ($m < $k)
|
||||
$pfUSERtotWAIT_MS = sprintf("%6s", $USERtotWAIT_MS);
|
||||
|
||||
$USERavgWAIT_M = ($Swait_avg / 60);
|
||||
$USERavgWAIT_M = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M");
|
||||
$USERavgWAIT_M_int = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M_int");
|
||||
$USERavgWAIT_S = ($USERavgWAIT_M - $USERavgWAIT_M_int);
|
||||
$USERavgWAIT_S = ($USERavgWAIT_S * 60);
|
||||
$USERavgWAIT_S = round($USERavgWAIT_S, 0);
|
||||
@@ -398,8 +402,8 @@ while ($m < $k)
|
||||
$pfUSERavgWAIT_MS = sprintf("%6s", $USERavgWAIT_MS);
|
||||
|
||||
$USERtotDISPO_M = ($Sdispo_sec / 60);
|
||||
$USERtotDISPO_M = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M");
|
||||
$USERtotDISPO_M_int = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M_int");
|
||||
$USERtotDISPO_S = ($USERtotDISPO_M - $USERtotDISPO_M_int);
|
||||
$USERtotDISPO_S = ($USERtotDISPO_S * 60);
|
||||
$USERtotDISPO_S = round($USERtotDISPO_S, 0);
|
||||
@@ -408,8 +412,8 @@ while ($m < $k)
|
||||
$pfUSERtotDISPO_MS = sprintf("%6s", $USERtotDISPO_MS);
|
||||
|
||||
$USERavgDISPO_M = ($Sdispo_avg / 60);
|
||||
$USERavgDISPO_M = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M");
|
||||
$USERavgDISPO_M_int = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M_int");
|
||||
$USERavgDISPO_S = ($USERavgDISPO_M - $USERavgDISPO_M_int);
|
||||
$USERavgDISPO_S = ($USERavgDISPO_S * 60);
|
||||
$USERavgDISPO_S = round($USERavgDISPO_S, 0);
|
||||
@@ -462,8 +466,8 @@ while ($n < $j)
|
||||
$TOT_AGENTS = sprintf("%-4s", $m);
|
||||
|
||||
$TOTtime_M = ($TOTtime / 60);
|
||||
$TOTtime_M = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M");
|
||||
$TOTtime_M_int = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M_int");
|
||||
$TOTtime_S = ($TOTtime_M - $TOTtime_M_int);
|
||||
$TOTtime_S = ($TOTtime_S * 60);
|
||||
$TOTtime_S = round($TOTtime_S, 0);
|
||||
@@ -473,8 +477,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtime_MS)>8) {$TOTtime_MS = substr("$TOTtime_MS", 0, -1);}
|
||||
|
||||
$TOTtotTALK_M = ($TOTtotTALK / 60);
|
||||
$TOTtotTALK_M = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M");
|
||||
$TOTtotTALK_M_int = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M_int");
|
||||
$TOTtotTALK_S = ($TOTtotTALK_M - $TOTtotTALK_M_int);
|
||||
$TOTtotTALK_S = ($TOTtotTALK_S * 60);
|
||||
$TOTtotTALK_S = round($TOTtotTALK_S, 0);
|
||||
@@ -484,8 +488,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotTALK_MS)>8) {$TOTtotTALK_MS = substr("$TOTtotTALK_MS", 0, -1);}
|
||||
|
||||
$TOTtotDISPO_M = ($TOTtotDISPO / 60);
|
||||
$TOTtotDISPO_M = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M");
|
||||
$TOTtotDISPO_M_int = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M_int");
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_M - $TOTtotDISPO_M_int);
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_S * 60);
|
||||
$TOTtotDISPO_S = round($TOTtotDISPO_S, 0);
|
||||
@@ -495,8 +499,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotDISPO_MS)>8) {$TOTtotDISPO_MS = substr("$TOTtotDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTtotPAUSE_M = ($TOTtotPAUSE / 60);
|
||||
$TOTtotPAUSE_M = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M");
|
||||
$TOTtotPAUSE_M_int = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M_int");
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_M - $TOTtotPAUSE_M_int);
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_S * 60);
|
||||
$TOTtotPAUSE_S = round($TOTtotPAUSE_S, 0);
|
||||
@@ -506,8 +510,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotPAUSE_MS)>8) {$TOTtotPAUSE_MS = substr("$TOTtotPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTtotWAIT_M = ($TOTtotWAIT / 60);
|
||||
$TOTtotWAIT_M = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M");
|
||||
$TOTtotWAIT_M_int = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M_int");
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_M - $TOTtotWAIT_M_int);
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_S * 60);
|
||||
$TOTtotWAIT_S = round($TOTtotWAIT_S, 0);
|
||||
@@ -518,8 +522,8 @@ while ($n < $j)
|
||||
|
||||
|
||||
$TOTavgTALK_M = ( ($TOTtotTALK / $TOTcalls) / 60);
|
||||
$TOTavgTALK_M = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M");
|
||||
$TOTavgTALK_M_int = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M_int");
|
||||
$TOTavgTALK_S = ($TOTavgTALK_M - $TOTavgTALK_M_int);
|
||||
$TOTavgTALK_S = ($TOTavgTALK_S * 60);
|
||||
$TOTavgTALK_S = round($TOTavgTALK_S, 0);
|
||||
@@ -529,8 +533,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgTALK_MS)>6) {$TOTavgTALK_MS = substr("$TOTavgTALK_MS", 0, -1);}
|
||||
|
||||
$TOTavgDISPO_M = ( ($TOTtotDISPO / $TOTcalls) / 60);
|
||||
$TOTavgDISPO_M = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M");
|
||||
$TOTavgDISPO_M_int = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M_int");
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_M - $TOTavgDISPO_M_int);
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_S * 60);
|
||||
$TOTavgDISPO_S = round($TOTavgDISPO_S, 0);
|
||||
@@ -540,8 +544,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgDISPO_MS)>6) {$TOTavgDISPO_MS = substr("$TOTavgDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTavgPAUSE_M = ( ($TOTtotPAUSE / $TOTcalls) / 60);
|
||||
$TOTavgPAUSE_M = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M");
|
||||
$TOTavgPAUSE_M_int = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M_int");
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_M - $TOTavgPAUSE_M_int);
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_S * 60);
|
||||
$TOTavgPAUSE_S = round($TOTavgPAUSE_S, 0);
|
||||
@@ -551,8 +555,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgPAUSE_MS)>6) {$TOTavgPAUSE_MS = substr("$TOTavgPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTavgWAIT_M = ( ($TOTtotWAIT / $TOTcalls) / 60);
|
||||
$TOTavgWAIT_M = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M");
|
||||
$TOTavgWAIT_M_int = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M_int");
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_M - $TOTavgWAIT_M_int);
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_S * 60);
|
||||
$TOTavgWAIT_S = round($TOTavgWAIT_S, 0);
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
# 70702-1259 - Added recording location link and truncation
|
||||
# 70906-2132 - Added closer_log records display
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80516-0936 - Cleanup of logging changes, added vicidial_agent_log display
|
||||
# 80701-0832 - Changed to allow for altering of main phone number
|
||||
# 80805-2106 - Changed comments to TEXTAREA
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -34,6 +37,8 @@ if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];}
|
||||
elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];}
|
||||
if (isset($_GET["phone"])) {$phone=$_GET["phone"];}
|
||||
elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];}
|
||||
if (isset($_GET["old_phone"])) {$old_phone=$_GET["old_phone"];}
|
||||
elseif (isset($_POST["old_phone"])) {$old_phone=$_POST["old_phone"];}
|
||||
if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];}
|
||||
elseif (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];}
|
||||
if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];}
|
||||
@@ -108,7 +113,12 @@ if (isset($_GET["CBuser"])) {$CBuser=$_GET["CBuser"];}
|
||||
elseif (isset($_POST["CBuser"])) {$CBuser=$_POST["CBuser"];}
|
||||
if (isset($_GET["modify_logs"])) {$modify_logs=$_GET["modify_logs"];}
|
||||
elseif (isset($_POST["modify_logs"])) {$modify_logs=$_POST["modify_logs"];}
|
||||
|
||||
if (isset($_GET["modify_closer_logs"])) {$modify_closer_logs=$_GET["modify_closer_logs"];}
|
||||
elseif (isset($_POST["modify_closer_logs"])) {$modify_closer_logs=$_POST["modify_closer_logs"];}
|
||||
if (isset($_GET["modify_agent_logs"])) {$modify_agent_logs=$_GET["modify_agent_logs"];}
|
||||
elseif (isset($_POST["modify_agent_logs"])) {$modify_agent_logs=$_POST["modify_agent_logs"];}
|
||||
if (isset($_GET["add_closer_record"])) {$add_closer_record=$_GET["add_closer_record"];}
|
||||
elseif (isset($_POST["add_closer_record"])) {$add_closer_record=$_POST["add_closer_record"];}
|
||||
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
@@ -133,6 +143,14 @@ while ($i < $qm_conf_ct)
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$old_phone = ereg_replace("[^0-9]","",$old_phone);
|
||||
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
||||
$alt_phone = ereg_replace("[^0-9]","",$alt_phone);
|
||||
}
|
||||
if (strlen($phone_number)<6) {$phone_number=$old_phone;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and modify_leads='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
@@ -195,15 +213,8 @@ echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Registro del Lead modi
|
||||
if ($end_call > 0)
|
||||
{
|
||||
|
||||
$call_length = ($STARTtime - $call_began);
|
||||
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','" . mysql_real_escape_string($call_began) . "','$STARTtime','" . mysql_real_escape_string($call_length) . "','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### update the lead record in the vicidial_list table
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',phone_number='$phone_number',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
@@ -238,18 +249,39 @@ $call_length = ($STARTtime - $call_began);
|
||||
|
||||
echo "<BR>Lead added to DNC List: $lead_id - $phone_number<BR>\n";
|
||||
}
|
||||
### update last record in vicidial_agent_log and vicidial_log tables
|
||||
### update last record in vicidial_log table
|
||||
if (($dispo != $status) and ($modify_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_closer_log table
|
||||
if (($dispo != $status) and ($modify_closer_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_closer_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_agent_log table
|
||||
if (($dispo != $status) and ($modify_agent_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_agent_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
if ($add_closer_record > 0)
|
||||
{
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','$NOW_TIME','$STARTtime','1','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -293,6 +325,7 @@ else
|
||||
if ($lead_count > 0)
|
||||
{
|
||||
|
||||
##### grab vicidial_log records #####
|
||||
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
@@ -318,10 +351,47 @@ else
|
||||
$call_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td></tr>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[15] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_agent_log records #####
|
||||
$stmt="select * from vicidial_agent_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Alogs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
$y=0;
|
||||
$agent_log = '';
|
||||
$Alog_campaign = '';
|
||||
while ($Alogs_to_print > $y)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if (strlen($Alog_campaign)<1) {$Alog_campaign = $row[5];}
|
||||
if (eregi("1$|3$|5$|7$|9$", $y))
|
||||
{$bgcolor='bgcolor="#B9CBFD"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
$y++;
|
||||
$agent_log .= "<tr $bgcolor>";
|
||||
$agent_log .= "<td><font size=1>$y</td>";
|
||||
$agent_log .= "<td><font size=2>$row[3]</td>";
|
||||
$agent_log .= "<td align=left><font size=2> $row[5]</td>\n";
|
||||
$agent_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[1]</A> </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[7]</td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[9] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[11] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[13] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[15] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[5];
|
||||
}
|
||||
|
||||
##### grab vicidial_closer_log records #####
|
||||
$stmt="select * from vicidial_closer_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by closecallid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Clogs_to_print = mysql_num_rows($rslt);
|
||||
@@ -348,10 +418,13 @@ else
|
||||
$closer_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td></tr>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_list data for lead #####
|
||||
$stmt="SELECT * from vicidial_list where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -361,7 +434,7 @@ else
|
||||
$tsr = "$row[4]";
|
||||
$vendor_id = "$row[5]";
|
||||
$list_id = "$row[7]";
|
||||
$campaign_id = "$row[8]";
|
||||
$gmt_offset_now = "$row[8]";
|
||||
$phone_code = "$row[10]";
|
||||
$phone_number = "$row[11]";
|
||||
$title = "$row[12]";
|
||||
@@ -391,7 +464,7 @@ else
|
||||
echo "<input type=hidden name=list_id value=\"$list_id\">\n";
|
||||
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
||||
echo "<input type=hidden name=phone_code value=\"$phone_code\">\n";
|
||||
echo "<input type=hidden name=phone_number value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=old_phone value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
||||
echo "<input type=hidden name=extension value=\"$extension\">\n";
|
||||
echo "<input type=hidden name=channel value=\"$channel\">\n";
|
||||
@@ -411,10 +484,11 @@ else
|
||||
|
||||
echo "<tr><td align=right>Provincia: </td><td align=left><input type=text name=province size=30 maxlength=30 value=\"$province\"></td></tr>\n";
|
||||
echo "<tr><td align=right>País : </td><td align=left><input type=text name=country_code size=3 maxlength=3 value=\"$country_code\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Alt Phone : </td><td align=left><input type=text name=alt_phone size=10 maxlength=10 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Main Phone : </td><td align=left><input type=text name=phone_number size=20 maxlength=20 value=\"$phone_number\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Alt Phone : </td><td align=left><input type=text name=alt_phone size=20 maxlength=20 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Email : </td><td align=left><input type=text name=email size=30 maxlength=50 value=\"$email\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Seguridad: </td><td align=left><input type=text name=security size=30 maxlength=100 value=\"$security\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Comentarios : </td><td align=left><input type=text name=comments size=30 maxlength=255 value=\"$comments\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Comentarios : </td><td align=left><TEXTAREA name=comments ROWS=3 COLS=65>$comments</TEXTAREA></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Disposición: </td><td align=left><select size=1 name=status>\n";
|
||||
|
||||
$stmt="SELECT * from vicidial_statuses where selectable='Y' order by status";
|
||||
@@ -455,7 +529,11 @@ else
|
||||
echo "</select> <i>(with $log_campaign statuses)</i></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent and vicidial logs </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify vicidial log </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent log </td><td align=left><input type=checkbox name=modify_agent_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify closer log </td><td align=left><input type=checkbox name=modify_closer_logs value=\"1\"></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Add closer log record </td><td align=left><input type=checkbox name=add_closer_record value=\"1\"></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr><td colspan=2 align=center><input type=submit name=submit value=\"ENVIAR\"></td></tr>\n";
|
||||
echo "</table></form>\n";
|
||||
@@ -543,6 +621,16 @@ echo "</TABLE></center>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>AGENTE LOG RECORDS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>CAMPAIGN</td><td align=left><font size=2> TSR</td><td align=left><font size=2> PAUSE</td><td align=right><font size=2> WAIT</td><td align=right><font size=2> TALK</td><td align=right><font size=2> DISPO</td><td align=right><font size=2> STATUS</td><td align=right><font size=2> GROUP</td><td align=right><font size=2> SUB</td></tr>\n";
|
||||
|
||||
echo "$agent_log\n";
|
||||
|
||||
echo "</TABLE>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=1 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
# 70417-1059 - Fixed default phone_code bug
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
#
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-24';
|
||||
$build = '80428-0417';
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -551,7 +552,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -766,7 +767,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -787,7 +788,7 @@ function ParseFileName() {
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
|
||||
if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
if ($file_layout=="standard") {
|
||||
|
||||
@@ -990,7 +991,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
# }
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
} else if (filesize($leadfile)>8388608) {
|
||||
print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: El archivo excede el límite 8MB.</B></font></center>";
|
||||
#} else if (filesize($leadfile)>8388608) {
|
||||
# print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
# - Fixed zero division bug
|
||||
# 71218-1155 - added end_date for multi-day reports
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80712-1007 - tally bug fixes and time display change
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -21,16 +22,18 @@ if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];}
|
||||
elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];}
|
||||
if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];}
|
||||
elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
||||
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
||||
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
||||
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["INVIA"])) {$INVIA=$_GET["INVIA"];}
|
||||
elseif (isset($_POST["INVIA"])) {$INVIA=$_POST["INVIA"];}
|
||||
if (isset($_GET["shift"])) {$shift=$_GET["shift"];}
|
||||
elseif (isset($_POST["shift"])) {$shift=$_POST["shift"];}
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["INVIA"])) {$INVIA=$_GET["INVIA"];}
|
||||
elseif (isset($_POST["INVIA"])) {$INVIA=$_POST["INVIA"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
|
||||
@@ -114,6 +117,7 @@ while ($i < $user_groups_to_print)
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>VICIDIAL: Agent Performance</TITLE></HEAD><BODY BGCOLOR=WHITE>\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET>\n";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n";
|
||||
echo "<SELECT SIZE=1 NAME=group>\n";
|
||||
@@ -211,7 +215,7 @@ $i=0;
|
||||
while ($i < $rows_to_print)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
# $row[0] = ($row[0] - 1); # subtract 1 for login/logout event compensation
|
||||
|
||||
$calls[$i] = $row[0];
|
||||
$talk_sec[$i] = $row[1];
|
||||
@@ -328,8 +332,8 @@ while ($m < $k)
|
||||
}
|
||||
|
||||
$USERtime_M = ($Stime / 60);
|
||||
$USERtime_M = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M");
|
||||
$USERtime_M_int = round($USERtime_M, 2);
|
||||
$USERtime_M_int = intval("$USERtime_M_int");
|
||||
$USERtime_S = ($USERtime_M - $USERtime_M_int);
|
||||
$USERtime_S = ($USERtime_S * 60);
|
||||
$USERtime_S = round($USERtime_S, 0);
|
||||
@@ -338,8 +342,8 @@ while ($m < $k)
|
||||
$pfUSERtime_MS = sprintf("%7s", $USERtime_MS);
|
||||
|
||||
$USERtotTALK_M = ($Stalk_sec / 60);
|
||||
$USERtotTALK_M = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M");
|
||||
$USERtotTALK_M_int = round($USERtotTALK_M, 2);
|
||||
$USERtotTALK_M_int = intval("$USERtotTALK_M_int");
|
||||
$USERtotTALK_S = ($USERtotTALK_M - $USERtotTALK_M_int);
|
||||
$USERtotTALK_S = ($USERtotTALK_S * 60);
|
||||
$USERtotTALK_S = round($USERtotTALK_S, 0);
|
||||
@@ -348,8 +352,8 @@ while ($m < $k)
|
||||
$pfUSERtotTALK_MS = sprintf("%6s", $USERtotTALK_MS);
|
||||
|
||||
$USERavgTALK_M = ($Stalk_avg / 60);
|
||||
$USERavgTALK_M = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M");
|
||||
$USERavgTALK_M_int = round($USERavgTALK_M, 2);
|
||||
$USERavgTALK_M_int = intval("$USERavgTALK_M_int");
|
||||
$USERavgTALK_S = ($USERavgTALK_M - $USERavgTALK_M_int);
|
||||
$USERavgTALK_S = ($USERavgTALK_S * 60);
|
||||
$USERavgTALK_S = round($USERavgTALK_S, 0);
|
||||
@@ -358,8 +362,8 @@ while ($m < $k)
|
||||
$pfUSERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS);
|
||||
|
||||
$USERtotPAUSE_M = ($Spause_sec / 60);
|
||||
$USERtotPAUSE_M = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M");
|
||||
$USERtotPAUSE_M_int = round($USERtotPAUSE_M, 2);
|
||||
$USERtotPAUSE_M_int = intval("$USERtotPAUSE_M_int");
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_M - $USERtotPAUSE_M_int);
|
||||
$USERtotPAUSE_S = ($USERtotPAUSE_S * 60);
|
||||
$USERtotPAUSE_S = round($USERtotPAUSE_S, 0);
|
||||
@@ -368,8 +372,8 @@ while ($m < $k)
|
||||
$pfUSERtotPAUSE_MS = sprintf("%6s", $USERtotPAUSE_MS);
|
||||
|
||||
$USERavgPAUSE_M = ($Spause_avg / 60);
|
||||
$USERavgPAUSE_M = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M");
|
||||
$USERavgPAUSE_M_int = round($USERavgPAUSE_M, 2);
|
||||
$USERavgPAUSE_M_int = intval("$USERavgPAUSE_M_int");
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_M - $USERavgPAUSE_M_int);
|
||||
$USERavgPAUSE_S = ($USERavgPAUSE_S * 60);
|
||||
$USERavgPAUSE_S = round($USERavgPAUSE_S, 0);
|
||||
@@ -378,8 +382,8 @@ while ($m < $k)
|
||||
$pfUSERavgPAUSE_MS = sprintf("%6s", $USERavgPAUSE_MS);
|
||||
|
||||
$USERtotWAIT_M = ($Swait_sec / 60);
|
||||
$USERtotWAIT_M = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M");
|
||||
$USERtotWAIT_M_int = round($USERtotWAIT_M, 2);
|
||||
$USERtotWAIT_M_int = intval("$USERtotWAIT_M_int");
|
||||
$USERtotWAIT_S = ($USERtotWAIT_M - $USERtotWAIT_M_int);
|
||||
$USERtotWAIT_S = ($USERtotWAIT_S * 60);
|
||||
$USERtotWAIT_S = round($USERtotWAIT_S, 0);
|
||||
@@ -388,8 +392,8 @@ while ($m < $k)
|
||||
$pfUSERtotWAIT_MS = sprintf("%6s", $USERtotWAIT_MS);
|
||||
|
||||
$USERavgWAIT_M = ($Swait_avg / 60);
|
||||
$USERavgWAIT_M = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M");
|
||||
$USERavgWAIT_M_int = round($USERavgWAIT_M, 2);
|
||||
$USERavgWAIT_M_int = intval("$USERavgWAIT_M_int");
|
||||
$USERavgWAIT_S = ($USERavgWAIT_M - $USERavgWAIT_M_int);
|
||||
$USERavgWAIT_S = ($USERavgWAIT_S * 60);
|
||||
$USERavgWAIT_S = round($USERavgWAIT_S, 0);
|
||||
@@ -398,8 +402,8 @@ while ($m < $k)
|
||||
$pfUSERavgWAIT_MS = sprintf("%6s", $USERavgWAIT_MS);
|
||||
|
||||
$USERtotDISPO_M = ($Sdispo_sec / 60);
|
||||
$USERtotDISPO_M = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M");
|
||||
$USERtotDISPO_M_int = round($USERtotDISPO_M, 2);
|
||||
$USERtotDISPO_M_int = intval("$USERtotDISPO_M_int");
|
||||
$USERtotDISPO_S = ($USERtotDISPO_M - $USERtotDISPO_M_int);
|
||||
$USERtotDISPO_S = ($USERtotDISPO_S * 60);
|
||||
$USERtotDISPO_S = round($USERtotDISPO_S, 0);
|
||||
@@ -408,8 +412,8 @@ while ($m < $k)
|
||||
$pfUSERtotDISPO_MS = sprintf("%6s", $USERtotDISPO_MS);
|
||||
|
||||
$USERavgDISPO_M = ($Sdispo_avg / 60);
|
||||
$USERavgDISPO_M = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M");
|
||||
$USERavgDISPO_M_int = round($USERavgDISPO_M, 2);
|
||||
$USERavgDISPO_M_int = intval("$USERavgDISPO_M_int");
|
||||
$USERavgDISPO_S = ($USERavgDISPO_M - $USERavgDISPO_M_int);
|
||||
$USERavgDISPO_S = ($USERavgDISPO_S * 60);
|
||||
$USERavgDISPO_S = round($USERavgDISPO_S, 0);
|
||||
@@ -462,8 +466,8 @@ while ($n < $j)
|
||||
$TOT_AGENTS = sprintf("%-4s", $m);
|
||||
|
||||
$TOTtime_M = ($TOTtime / 60);
|
||||
$TOTtime_M = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M");
|
||||
$TOTtime_M_int = round($TOTtime_M, 2);
|
||||
$TOTtime_M_int = intval("$TOTtime_M_int");
|
||||
$TOTtime_S = ($TOTtime_M - $TOTtime_M_int);
|
||||
$TOTtime_S = ($TOTtime_S * 60);
|
||||
$TOTtime_S = round($TOTtime_S, 0);
|
||||
@@ -473,8 +477,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtime_MS)>8) {$TOTtime_MS = substr("$TOTtime_MS", 0, -1);}
|
||||
|
||||
$TOTtotTALK_M = ($TOTtotTALK / 60);
|
||||
$TOTtotTALK_M = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M");
|
||||
$TOTtotTALK_M_int = round($TOTtotTALK_M, 2);
|
||||
$TOTtotTALK_M_int = intval("$TOTtotTALK_M_int");
|
||||
$TOTtotTALK_S = ($TOTtotTALK_M - $TOTtotTALK_M_int);
|
||||
$TOTtotTALK_S = ($TOTtotTALK_S * 60);
|
||||
$TOTtotTALK_S = round($TOTtotTALK_S, 0);
|
||||
@@ -484,8 +488,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotTALK_MS)>8) {$TOTtotTALK_MS = substr("$TOTtotTALK_MS", 0, -1);}
|
||||
|
||||
$TOTtotDISPO_M = ($TOTtotDISPO / 60);
|
||||
$TOTtotDISPO_M = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M");
|
||||
$TOTtotDISPO_M_int = round($TOTtotDISPO_M, 2);
|
||||
$TOTtotDISPO_M_int = intval("$TOTtotDISPO_M_int");
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_M - $TOTtotDISPO_M_int);
|
||||
$TOTtotDISPO_S = ($TOTtotDISPO_S * 60);
|
||||
$TOTtotDISPO_S = round($TOTtotDISPO_S, 0);
|
||||
@@ -495,8 +499,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotDISPO_MS)>8) {$TOTtotDISPO_MS = substr("$TOTtotDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTtotPAUSE_M = ($TOTtotPAUSE / 60);
|
||||
$TOTtotPAUSE_M = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M");
|
||||
$TOTtotPAUSE_M_int = round($TOTtotPAUSE_M, 2);
|
||||
$TOTtotPAUSE_M_int = intval("$TOTtotPAUSE_M_int");
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_M - $TOTtotPAUSE_M_int);
|
||||
$TOTtotPAUSE_S = ($TOTtotPAUSE_S * 60);
|
||||
$TOTtotPAUSE_S = round($TOTtotPAUSE_S, 0);
|
||||
@@ -506,8 +510,8 @@ while ($n < $j)
|
||||
while(strlen($TOTtotPAUSE_MS)>8) {$TOTtotPAUSE_MS = substr("$TOTtotPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTtotWAIT_M = ($TOTtotWAIT / 60);
|
||||
$TOTtotWAIT_M = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M");
|
||||
$TOTtotWAIT_M_int = round($TOTtotWAIT_M, 2);
|
||||
$TOTtotWAIT_M_int = intval("$TOTtotWAIT_M_int");
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_M - $TOTtotWAIT_M_int);
|
||||
$TOTtotWAIT_S = ($TOTtotWAIT_S * 60);
|
||||
$TOTtotWAIT_S = round($TOTtotWAIT_S, 0);
|
||||
@@ -518,8 +522,8 @@ while ($n < $j)
|
||||
|
||||
|
||||
$TOTavgTALK_M = ( ($TOTtotTALK / $TOTcalls) / 60);
|
||||
$TOTavgTALK_M = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M");
|
||||
$TOTavgTALK_M_int = round($TOTavgTALK_M, 2);
|
||||
$TOTavgTALK_M_int = intval("$TOTavgTALK_M_int");
|
||||
$TOTavgTALK_S = ($TOTavgTALK_M - $TOTavgTALK_M_int);
|
||||
$TOTavgTALK_S = ($TOTavgTALK_S * 60);
|
||||
$TOTavgTALK_S = round($TOTavgTALK_S, 0);
|
||||
@@ -529,8 +533,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgTALK_MS)>6) {$TOTavgTALK_MS = substr("$TOTavgTALK_MS", 0, -1);}
|
||||
|
||||
$TOTavgDISPO_M = ( ($TOTtotDISPO / $TOTcalls) / 60);
|
||||
$TOTavgDISPO_M = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M");
|
||||
$TOTavgDISPO_M_int = round($TOTavgDISPO_M, 2);
|
||||
$TOTavgDISPO_M_int = intval("$TOTavgDISPO_M_int");
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_M - $TOTavgDISPO_M_int);
|
||||
$TOTavgDISPO_S = ($TOTavgDISPO_S * 60);
|
||||
$TOTavgDISPO_S = round($TOTavgDISPO_S, 0);
|
||||
@@ -540,8 +544,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgDISPO_MS)>6) {$TOTavgDISPO_MS = substr("$TOTavgDISPO_MS", 0, -1);}
|
||||
|
||||
$TOTavgPAUSE_M = ( ($TOTtotPAUSE / $TOTcalls) / 60);
|
||||
$TOTavgPAUSE_M = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M");
|
||||
$TOTavgPAUSE_M_int = round($TOTavgPAUSE_M, 2);
|
||||
$TOTavgPAUSE_M_int = intval("$TOTavgPAUSE_M_int");
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_M - $TOTavgPAUSE_M_int);
|
||||
$TOTavgPAUSE_S = ($TOTavgPAUSE_S * 60);
|
||||
$TOTavgPAUSE_S = round($TOTavgPAUSE_S, 0);
|
||||
@@ -551,8 +555,8 @@ while ($n < $j)
|
||||
while(strlen($TOTavgPAUSE_MS)>6) {$TOTavgPAUSE_MS = substr("$TOTavgPAUSE_MS", 0, -1);}
|
||||
|
||||
$TOTavgWAIT_M = ( ($TOTtotWAIT / $TOTcalls) / 60);
|
||||
$TOTavgWAIT_M = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M");
|
||||
$TOTavgWAIT_M_int = round($TOTavgWAIT_M, 2);
|
||||
$TOTavgWAIT_M_int = intval("$TOTavgWAIT_M_int");
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_M - $TOTavgWAIT_M_int);
|
||||
$TOTavgWAIT_S = ($TOTavgWAIT_S * 60);
|
||||
$TOTavgWAIT_S = round($TOTavgWAIT_S, 0);
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
# 70702-1259 - Added recording location link and truncation
|
||||
# 70906-2132 - Added closer_log records display
|
||||
# 80428-0144 - UTF8 cleanup
|
||||
# 80516-0936 - Cleanup of logging changes, added vicidial_agent_log display
|
||||
# 80701-0832 - Changed to allow for altering of main phone number
|
||||
# 80805-2106 - Changed comments to TEXTAREA
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -34,6 +37,8 @@ if (isset($_GET["vendor_id"])) {$vendor_id=$_GET["vendor_id"];}
|
||||
elseif (isset($_POST["vendor_id"])) {$vendor_id=$_POST["vendor_id"];}
|
||||
if (isset($_GET["phone"])) {$phone=$_GET["phone"];}
|
||||
elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];}
|
||||
if (isset($_GET["old_phone"])) {$old_phone=$_GET["old_phone"];}
|
||||
elseif (isset($_POST["old_phone"])) {$old_phone=$_POST["old_phone"];}
|
||||
if (isset($_GET["lead_id"])) {$lead_id=$_GET["lead_id"];}
|
||||
elseif (isset($_POST["lead_id"])) {$lead_id=$_POST["lead_id"];}
|
||||
if (isset($_GET["first_name"])) {$first_name=$_GET["first_name"];}
|
||||
@@ -108,7 +113,12 @@ if (isset($_GET["CBuser"])) {$CBuser=$_GET["CBuser"];}
|
||||
elseif (isset($_POST["CBuser"])) {$CBuser=$_POST["CBuser"];}
|
||||
if (isset($_GET["modify_logs"])) {$modify_logs=$_GET["modify_logs"];}
|
||||
elseif (isset($_POST["modify_logs"])) {$modify_logs=$_POST["modify_logs"];}
|
||||
|
||||
if (isset($_GET["modify_closer_logs"])) {$modify_closer_logs=$_GET["modify_closer_logs"];}
|
||||
elseif (isset($_POST["modify_closer_logs"])) {$modify_closer_logs=$_POST["modify_closer_logs"];}
|
||||
if (isset($_GET["modify_agent_logs"])) {$modify_agent_logs=$_GET["modify_agent_logs"];}
|
||||
elseif (isset($_POST["modify_agent_logs"])) {$modify_agent_logs=$_POST["modify_agent_logs"];}
|
||||
if (isset($_GET["add_closer_record"])) {$add_closer_record=$_GET["add_closer_record"];}
|
||||
elseif (isset($_POST["add_closer_record"])) {$add_closer_record=$_POST["add_closer_record"];}
|
||||
|
||||
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
||||
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
||||
@@ -133,6 +143,14 @@ while ($i < $qm_conf_ct)
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$old_phone = ereg_replace("[^0-9]","",$old_phone);
|
||||
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
||||
$alt_phone = ereg_replace("[^0-9]","",$alt_phone);
|
||||
}
|
||||
if (strlen($phone_number)<6) {$phone_number=$old_phone;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and modify_leads='1';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
@@ -195,15 +213,8 @@ echo "<a href=\"./admin.php?ADD=100\">VICIDIAL ADMIN</a>: Registro del Lead modi
|
||||
if ($end_call > 0)
|
||||
{
|
||||
|
||||
$call_length = ($STARTtime - $call_began);
|
||||
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','" . mysql_real_escape_string($call_began) . "','$STARTtime','" . mysql_real_escape_string($call_length) . "','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### update the lead record in the vicidial_list table
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$stmt="UPDATE vicidial_list set status='" . mysql_real_escape_string($status) . "',first_name='" . mysql_real_escape_string($first_name) . "',last_name='" . mysql_real_escape_string($last_name) . "',address1='" . mysql_real_escape_string($address1) . "',address2='" . mysql_real_escape_string($address2) . "',address3='" . mysql_real_escape_string($address3) . "',city='" . mysql_real_escape_string($city) . "',state='" . mysql_real_escape_string($state) . "',province='" . mysql_real_escape_string($province) . "',postal_code='" . mysql_real_escape_string($postal_code) . "',country_code='" . mysql_real_escape_string($country_code) . "',alt_phone='" . mysql_real_escape_string($alt_phone) . "',phone_number='$phone_number',email='" . mysql_real_escape_string($email) . "',security_phrase='" . mysql_real_escape_string($security) . "',comments='" . mysql_real_escape_string($comments) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
@@ -238,18 +249,39 @@ $call_length = ($STARTtime - $call_began);
|
||||
|
||||
echo "<BR>Lead added to DNC List: $lead_id - $phone_number<BR>\n";
|
||||
}
|
||||
### update last record in vicidial_agent_log and vicidial_log tables
|
||||
### update last record in vicidial_log table
|
||||
if (($dispo != $status) and ($modify_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_closer_log table
|
||||
if (($dispo != $status) and ($modify_closer_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_closer_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by call_date desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
### update last record in vicidial_agent_log table
|
||||
if (($dispo != $status) and ($modify_agent_logs > 0))
|
||||
{
|
||||
$stmt="UPDATE vicidial_agent_log set status='" . mysql_real_escape_string($status) . "' where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 1";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
if ($add_closer_record > 0)
|
||||
{
|
||||
### insert a NEW record to the vicidial_closer_log table
|
||||
$stmt="INSERT INTO vicidial_closer_log (lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed) values('" . mysql_real_escape_string($lead_id) . "','" . mysql_real_escape_string($list_id) . "','" . mysql_real_escape_string($campaign_id) . "','" . mysql_real_escape_string($parked_time) . "','$NOW_TIME','$STARTtime','1','" . mysql_real_escape_string($status) . "','" . mysql_real_escape_string($phone_code) . "','" . mysql_real_escape_string($phone_number) . "','$PHP_AUTH_USER','" . mysql_real_escape_string($comments) . "','Y')";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -293,6 +325,7 @@ else
|
||||
if ($lead_count > 0)
|
||||
{
|
||||
|
||||
##### grab vicidial_log records #####
|
||||
$stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$logs_to_print = mysql_num_rows($rslt);
|
||||
@@ -318,10 +351,47 @@ else
|
||||
$call_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[11]</A> </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td></tr>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$call_log .= "<td align=right><font size=2> $row[15] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_agent_log records #####
|
||||
$stmt="select * from vicidial_agent_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by agent_log_id desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Alogs_to_print = mysql_num_rows($rslt);
|
||||
|
||||
$y=0;
|
||||
$agent_log = '';
|
||||
$Alog_campaign = '';
|
||||
while ($Alogs_to_print > $y)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if (strlen($Alog_campaign)<1) {$Alog_campaign = $row[5];}
|
||||
if (eregi("1$|3$|5$|7$|9$", $y))
|
||||
{$bgcolor='bgcolor="#B9CBFD"';}
|
||||
else
|
||||
{$bgcolor='bgcolor="#9BB9FB"';}
|
||||
|
||||
$y++;
|
||||
$agent_log .= "<tr $bgcolor>";
|
||||
$agent_log .= "<td><font size=1>$y</td>";
|
||||
$agent_log .= "<td><font size=2>$row[3]</td>";
|
||||
$agent_log .= "<td align=left><font size=2> $row[5]</td>\n";
|
||||
$agent_log .= "<td align=left><font size=2> <A HREF=\"user_stats.php?user=$row[11]\" target=\"_blank\">$row[1]</A> </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[7]</td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[9] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[11] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[13] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[15] </td>\n";
|
||||
$agent_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[5];
|
||||
}
|
||||
|
||||
##### grab vicidial_closer_log records #####
|
||||
$stmt="select * from vicidial_closer_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by closecallid desc limit 500;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$Clogs_to_print = mysql_num_rows($rslt);
|
||||
@@ -348,10 +418,13 @@ else
|
||||
$closer_log .= "<td align=right><font size=2> $row[3] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[2] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[1] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td></tr>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[14] </td>\n";
|
||||
$closer_log .= "<td align=right><font size=2> $row[17] </td></tr>\n";
|
||||
|
||||
$campaign_id = $row[3];
|
||||
}
|
||||
|
||||
##### grab vicidial_list data for lead #####
|
||||
$stmt="SELECT * from vicidial_list where lead_id='" . mysql_real_escape_string($lead_id) . "'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -361,7 +434,7 @@ else
|
||||
$tsr = "$row[4]";
|
||||
$vendor_id = "$row[5]";
|
||||
$list_id = "$row[7]";
|
||||
$campaign_id = "$row[8]";
|
||||
$gmt_offset_now = "$row[8]";
|
||||
$phone_code = "$row[10]";
|
||||
$phone_number = "$row[11]";
|
||||
$title = "$row[12]";
|
||||
@@ -391,7 +464,7 @@ else
|
||||
echo "<input type=hidden name=list_id value=\"$list_id\">\n";
|
||||
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
||||
echo "<input type=hidden name=phone_code value=\"$phone_code\">\n";
|
||||
echo "<input type=hidden name=phone_number value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=old_phone value=\"$phone_number\">\n";
|
||||
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
||||
echo "<input type=hidden name=extension value=\"$extension\">\n";
|
||||
echo "<input type=hidden name=channel value=\"$channel\">\n";
|
||||
@@ -411,10 +484,11 @@ else
|
||||
|
||||
echo "<tr><td align=right>Provincia : </td><td align=left><input type=text name=province size=30 maxlength=30 value=\"$province\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Stato : </td><td align=left><input type=text name=country_code size=3 maxlength=3 value=\"$country_code\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Numero Alt : </td><td align=left><input type=text name=alt_phone size=10 maxlength=10 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Main Phone : </td><td align=left><input type=text name=phone_number size=20 maxlength=20 value=\"$phone_number\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Numero Alt : </td><td align=left><input type=text name=alt_phone size=20 maxlength=20 value=\"$alt_phone\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Email : </td><td align=left><input type=text name=email size=30 maxlength=50 value=\"$email\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Seguridad: </td><td align=left><input type=text name=security size=30 maxlength=100 value=\"$security\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Note : </td><td align=left><input type=text name=comments size=30 maxlength=255 value=\"$comments\"></td></tr>\n";
|
||||
echo "<tr><td align=right>Note : </td><td align=left><TEXTAREA name=comments ROWS=3 COLS=65>$comments</TEXTAREA></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Esito: </td><td align=left><select size=1 name=status>\n";
|
||||
|
||||
$stmt="SELECT * from vicidial_statuses where selectable='Y' order by status";
|
||||
@@ -455,7 +529,11 @@ else
|
||||
echo "</select> <i>(with $log_campaign statuses)</i></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent and vicidial logs </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify vicidial log </td><td align=left><input type=checkbox name=modify_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify agent log </td><td align=left><input type=checkbox name=modify_agent_logs value=\"1\" CHECKED></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Modify closer log </td><td align=left><input type=checkbox name=modify_closer_logs value=\"1\"></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=left>Add closer log record </td><td align=left><input type=checkbox name=add_closer_record value=\"1\"></td></tr>\n";
|
||||
|
||||
|
||||
echo "<tr><td colspan=2 align=center><input type=submit name=submit value=\"INVIA\"></td></tr>\n";
|
||||
echo "</table></form>\n";
|
||||
@@ -543,6 +621,16 @@ echo "</TABLE></center>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>AGENT LOG RECORDS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td><font size=2>DATE/TIME </td><td align=left><font size=2>CAMPAGNA</td><td align=left><font size=2> TSR</td><td align=left><font size=2> PAUSE</td><td align=right><font size=2> WAIT</td><td align=right><font size=2> TALK</td><td align=right><font size=2> DISPO</td><td align=right><font size=2> STATUS</td><td align=right><font size=2> GROUP</td><td align=right><font size=2> SUB</td></tr>\n";
|
||||
|
||||
echo "$agent_log\n";
|
||||
|
||||
echo "</TABLE>\n";
|
||||
echo "<BR><BR>\n";
|
||||
|
||||
|
||||
echo "<B>RECORDINGS FOR THIS LEAD:</B>\n";
|
||||
echo "<TABLE width=750 cellspacing=1 cellpadding=1>\n";
|
||||
echo "<tr><td><font size=1># </td><td align=left><font size=2> LEAD</td><td><font size=2>DATE/TIME </td><td align=left><font size=2>SECONDS </td><td align=left><font size=2> RECID</td><td align=center><font size=2>FILENAME</td><td align=left><font size=2>LOCATION</td><td align=left><font size=2>TSR</td></tr>\n";
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
# 70417-1059 - Fixed default phone_code bug
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
#
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-24';
|
||||
$build = '80428-0417';
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -551,7 +552,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -766,7 +767,7 @@ function ParseFileName() {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -787,7 +788,7 @@ function ParseFileName() {
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
|
||||
if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
if ($file_layout=="standard") {
|
||||
|
||||
@@ -990,7 +991,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
|
||||
$good++;
|
||||
} else {
|
||||
if ($bad < 10000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
if ($bad < 1000000) {print "<BR></b><font size=1 color=red>record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead</font><b>\n";}
|
||||
$bad++;
|
||||
}
|
||||
$total++;
|
||||
@@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) {
|
||||
# }
|
||||
print "<script language='JavaScript1.2'>document.forms[0].leadfile.disabled=false; document.forms[0].submit_file.disabled=false; document.forms[0].reload_page.disabled=false;</script>";
|
||||
}
|
||||
} else if (filesize($leadfile)>8388608) {
|
||||
print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: Il file supera il limite di 8 MB.</B></font></center>";
|
||||
#} else if (filesize($leadfile)>8388608) {
|
||||
# print "<center><font face='arial, helvetica' size=3 color='#990000'><B>ERROR: File exceeds the 8MB limit.</B></font></center>";
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user