From 5980b8de38a776fd65b3181c05dc10ad2d68967a Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 14 Aug 2008 06:38:53 +0000 Subject: [PATCH] LANG_www builds for 2.0.4.1rc4 release git-svn-id: svn://192.168.202.10@942 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../LANG_www/agc/conf_exten_check.php | 30 +- .../agc_2.0.4/LANG_www/agc/manager_send.php | 4 + .../agc_2.0.4/LANG_www/agc/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc/vicidial.php | 64 ++- .../LANG_www/agc_br/astguiclient.php | 2 +- .../LANG_www/agc_br/conf_exten_check.php | 30 +- .../LANG_www/agc_br/manager_send.php | 4 + .../LANG_www/agc_br/vdc_db_query.php | 16 +- .../agc_2.0.4/LANG_www/agc_br/vicidial.php | 74 ++- .../LANG_www/agc_de/conf_exten_check.php | 30 +- .../LANG_www/agc_de/manager_send.php | 4 + .../LANG_www/agc_de/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc_de/vicidial.php | 64 ++- .../LANG_www/agc_el/conf_exten_check.php | 30 +- .../LANG_www/agc_el/manager_send.php | 4 + .../LANG_www/agc_el/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc_el/vicidial.php | 64 ++- .../LANG_www/agc_en/conf_exten_check.php | 30 +- .../LANG_www/agc_en/manager_send.php | 4 + .../LANG_www/agc_en/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc_en/vicidial.php | 64 ++- .../LANG_www/agc_es/conf_exten_check.php | 30 +- .../LANG_www/agc_es/manager_send.php | 4 + .../LANG_www/agc_es/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc_es/vicidial.php | 64 ++- .../LANG_www/agc_fr/conf_exten_check.php | 30 +- .../LANG_www/agc_fr/manager_send.php | 4 + .../LANG_www/agc_fr/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc_fr/vicidial.php | 64 ++- .../LANG_www/agc_it/active_list_refresh.php | 18 +- .../LANG_www/agc_it/astguiclient.php | 138 ++--- .../LANG_www/agc_it/call_log_display.php | 10 +- .../LANG_www/agc_it/conf_exten_check.php | 44 +- .../LANG_www/agc_it/inbound_popup.php | 18 +- .../LANG_www/agc_it/live_exten_check.php | 10 +- .../LANG_www/agc_it/manager_send.php | 218 ++++---- .../LANG_www/agc_it/park_calls_display.php | 12 +- .../LANG_www/agc_it/vdc_db_query.php | 66 +-- .../agc_2.0.4/LANG_www/agc_it/vicidial.php | 514 ++++++++++-------- .../LANG_www/agc_it/voicemail_check.php | 10 +- .../LANG_www/agc_pl/conf_exten_check.php | 30 +- .../LANG_www/agc_pl/manager_send.php | 4 + .../LANG_www/agc_pl/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc_pl/vicidial.php | 64 ++- .../LANG_www/agc_pt/conf_exten_check.php | 30 +- .../LANG_www/agc_pt/manager_send.php | 4 + .../LANG_www/agc_pt/vdc_db_query.php | 6 +- .../agc_2.0.4/LANG_www/agc_pt/vicidial.php | 64 ++- .../vicidial/AST_agent_performance_detail.php | 94 ++-- .../LANG_www/vicidial/admin_modify_lead.php | 122 ++++- .../agc_2.0.4/LANG_www/vicidial/dbconnect.php | 5 +- .../vicidial/new_listloader_superL.php | 19 +- .../AST_agent_performance_detail.php | 94 ++-- .../vicidial_de/admin_modify_lead.php | 122 ++++- .../vicidial_de/new_listloader_superL.php | 19 +- .../AST_agent_performance_detail.php | 94 ++-- .../vicidial_el/admin_modify_lead.php | 122 ++++- .../vicidial_el/new_listloader_superL.php | 19 +- .../AST_agent_performance_detail.php | 94 ++-- .../vicidial_en/admin_modify_lead.php | 122 ++++- .../vicidial_en/new_listloader_superL.php | 19 +- .../AST_agent_performance_detail.php | 94 ++-- .../vicidial_es/admin_modify_lead.php | 122 ++++- .../vicidial_es/new_listloader_superL.php | 19 +- .../AST_agent_performance_detail.php | 94 ++-- .../vicidial_it/admin_modify_lead.php | 122 ++++- .../vicidial_it/new_listloader_superL.php | 19 +- 67 files changed, 2326 insertions(+), 1105 deletions(-) diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/conf_exten_check.php index 47ec7fe6..474ce8a4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/manager_send.php index e3e53530..6b322a41 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vdc_db_query.php index 2cf95474..253ec880 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vicidial.php index 0d24d76e..862f2936 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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: MAIN PHONE or ALT PHONE or ADDRESS3 or FINISH LEAD"; 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 = "" + var CB_HTML = "
# CALLBACK DATE/TIMENUMBERNAMESTATUSCAMPAIGNLAST CALL DATE/TIME COMMENTS
" 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 = "\"Dial"; } 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 = "" + textname + "\n\n

\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 = "\"Hangup"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# CALLBACK DATE/TIMENUMBERNAME STATUSCAMPAIGNLAST CALL DATE/TIME COMMENTS
VICIDIAL SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     session ID: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     session ID:     Live Call
@@ -6519,7 +6557,7 @@ echo "\n"; -Your Status:
Calls Dialing: +Your Status:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/astguiclient.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/astguiclient.php index 6d1ace39..1fe0f403 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/astguiclient.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/astguiclient.php @@ -2837,7 +2837,7 @@ echo "\n";
-PAUSE | INICIAR     Atualizar a taxa: 1000 ms Mais rápido | Mais devagar

+PAUSAR | INICIAR     Atualizar a taxa: 1000 ms Mais rápido | Mais devagar

Inicializando..
Extensões Ativas
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/conf_exten_check.php index 4a7cef73..300a6850 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/manager_send.php index 06b04925..380ac67b 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vdc_db_query.php index 528bf209..89d7f75e 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vdc_db_query.php @@ -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); diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vicidial.php index 666e214f..a29d6984 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_br/vicidial.php @@ -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 "\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 "\n"; + print "\n"; mysql_close($linkB); mysql_select_db("$VARDB_database", $link); @@ -1308,11 +1312,11 @@ else $affected_rows = mysql_affected_rows($linkB); print "\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 "\n"; + print "\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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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: TELEFONE PRINCIPAL or TELEFONE ALTERNATIVO or ENDERECO3 or FINALIZAR CONTATO"; 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 = "" + var CB_HTML = "
# CHAMADABACK DATE/TIMENUMERONAMESTATUSCAMPAIGNLAST DATA/HORA DA CHAMADA COMMENTS
" 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 = "\"Discar"; } 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 = "" + textname + "\n\n

\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 = "\"Desligar"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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 = "
# CHAMADABACK DATE/TIMENUMERONAME STATUSCAMPAIGNLAST DATA/HORA DA CHAMADA COMMENTS
PAUSE CODE
"; + PausaCode_HTML = " - +
PAUSAR CODE
"; 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: px; width: 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 "\n";
VICIDISCAR SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE    ID da sessão: VALIGN=MIDDLE ALIGN=CENTER>   LIVE    ID da sessão:     Chamadas Ativas
@@ -6519,7 +6557,7 @@ echo "\n"; -Your Status:
Calls Dialing: +Your Status:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/conf_exten_check.php index 0ce96242..081198aa 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/manager_send.php index 4291cb62..be478aa4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vdc_db_query.php index a0e46884..448d3272 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vicidial.php index e0f6d472..dc549ea5 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_de/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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: TELEFONNUMMER or ALTERNATIVE TELEFONNUMMER or ADRESSE3 or ADRESSE BEENDEN"; 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 = "" + var CB_HTML = "
# ANRUFBACK DATE/TIMENUMMERNAMESTATUSCAMPAIGNLAST ANRUF DATUM\/ZEIT COMMENTS
" 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 = "\"Nächste"; } 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 = "" + textname + "\n\n

\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 = "\"Kunden"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# ANRUFBACK DATE/TIMENUMMERNAME STATUSCAMPAIGNLAST ANRUF DATUM\/ZEIT COMMENTS
VICIWÄHLEN SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     Session ID: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     Session ID:     Live Anruf
@@ -6519,7 +6557,7 @@ echo "\n"; -Ihr Status:
Calls Dialing: +Ihr Status:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/conf_exten_check.php index ab22f031..61ce207b 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/manager_send.php index 4aaf05ff..e86de9a4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vdc_db_query.php index aafb9b69..30401901 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vicidial.php index cd2b7a73..f9c10869 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_el/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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 = "Κλήση εναλκού αριθμού: ΚΥΡΙΟ ΤΗΛΕΦΩΝΟ or ΕΝΑΛΛΑΚΤΙΚΟ ΤΗΛΕΦΩΝΟ or 3ΔΙΕΥΘΥΝΣΗ or ΤΕΛΕΙΩΣΤΕ"; 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 = "" + var CB_HTML = "
# ΚΛΗΣΗBACK DATE/TIMEΑΡΙΘΜΟΣNAMEΚΑΤΑΣΤΑΣΗCAMPAIGNLAST ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ COMMENTS
" 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 = "\"Κλήση"; } 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 = "" + textname + "\n\n

\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 = "\"Κλείσιμο"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# ΚΛΗΣΗBACK DATE/TIMEΑΡΙΘΜΟΣNAME ΚΑΤΑΣΤΑΣΗCAMPAIGNLAST ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ COMMENTS
VICIΚΛΗΣΗ SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     ID εργασίας: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     ID εργασίας:     Ενεργή κλήση
@@ -6519,7 +6557,7 @@ echo "\n"; -Your Κατάσταση:
Calls Dialing: +Your Κατάσταση:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/conf_exten_check.php index 47ec7fe6..474ce8a4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/manager_send.php index e3e53530..6b322a41 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vdc_db_query.php index 2cf95474..253ec880 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vicidial.php index fecd03d5..edcd4521 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_en/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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: MAIN PHONE or ALT PHONE or ADDRESS3 or FINISH LEAD"; 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 = "" + var CB_HTML = "
# CALLBACK DATE/TIMENUMBERNAMESTATUSCAMPAIGNLAST CALL DATE/TIME COMMENTS
" 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 = "\"Dial"; } 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 = "" + textname + "\n\n

\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 = "\"Hangup"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# CALLBACK DATE/TIMENUMBERNAME STATUSCAMPAIGNLAST CALL DATE/TIME COMMENTS
VICIDIAL SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     session ID: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     session ID:     Live Call
@@ -6519,7 +6557,7 @@ echo "\n"; -Your Status:
Calls Dialing: +Your Status:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/conf_exten_check.php index ff227722..94e2c887 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/manager_send.php index 53ee5dbb..47d99a70 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vdc_db_query.php index bf76b9b6..42a93d8d 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vicidial.php index 92ffffce..0e86d7d7 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_es/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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: TELÉFONO PRINCIPAL or TELÉFONO ALT or DIRECCIÓN3 or ACABAR LEAD"; 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 = "" + var CB_HTML = "
# LLAMADABACK DATE/TIMENÚMERONAMEESTADOCAMPAIGNLAST FECHA/HORA DE LA LLAMADA COMMENTS
" 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 = "\"Marcar"; } 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 = "" + textname + "\n\n

\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 = "\"Colgar"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# LLAMADABACK DATE/TIMENÚMERONAME ESTADOCAMPAIGNLAST FECHA/HORA DE LA LLAMADA COMMENTS
VICIDIAL SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     sesión ID: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     sesión ID:     Llamada Activa
@@ -6519,7 +6557,7 @@ echo "\n"; -Su Estado:
Calls Dialing: +Su Estado:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/conf_exten_check.php index e9e8f198..cc91b7f4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/manager_send.php index 27c2b508..e0ed1ce2 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vdc_db_query.php index e54939e0..302c9ebf 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vicidial.php index dcbb703e..dc40d7d7 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_fr/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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.: TÉLÉPHONE PRINCIPAL or TELEPHONE 2nd. or ADRESSE3 or TERMINER LA SAISIE"; 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 = "" + var CB_HTML = "
# APPELBACK DATE/TIMENOMBRENAMESTATUTCAMPAIGNLAST APPEL DATE/TIME COMMENTS
" 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 = "\"Appel"; } 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 = "" + textname + "\n\n

\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 = "\"Raccrocher\""; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# APPELBACK DATE/TIMENOMBRENAME STATUTCAMPAIGNLAST APPEL DATE/TIME COMMENTS
VICICOMPOSER SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     Id de session: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     Id de session:     Appel en cours
@@ -6519,7 +6557,7 @@ echo "\n"; -Votre Statut:
Calls Dialing: +Votre Statut:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/active_list_refresh.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/active_list_refresh.php index f66df010..ba71cd44 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/active_list_refresh.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/active_list_refresh.php @@ -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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "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"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/astguiclient.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/astguiclient.php index c525d932..94d90a1e 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/astguiclient.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/astguiclient.php @@ -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\n"; + echo "web client astGUIclient: Inizio attività\n"; echo "\n"; echo "\n"; echo "\n"; @@ -153,19 +153,19 @@ echo "
\n"; echo "


"; echo ""; - echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Login Inizio attività
 
Login Utente:
Inizio attività dell`Utente:
Password Utente:
Parola d`accesso Dell`Utente:
Login Telefono:
Inizio attività Telefono:
Password Telefono:
Parola d`accesso del Telefono:

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -185,7 +185,7 @@ echo "
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 " 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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) ) { -echo "web client astGUIclient: Login Telefono\n"; +echo "web client astGUIclient: Inizio attività Telefono\n"; echo "\n"; echo "\n"; echo "\n"; @@ -220,15 +220,15 @@ echo "\n"; echo "\n"; echo "


"; echo ""; -echo ""; +echo ""; echo "\n"; echo "\n"; -echo ""; +echo ""; echo "\n"; -echo ""; +echo ""; echo "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "
Login Telefono Inizio attività Telefono
 
Login Telefono:
Inizio attività Telefono:
Password Telefono:
Parola d`accesso del Telefono:

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -245,7 +245,7 @@ $row=mysql_fetch_row($rslt); $authphone=$row[0]; if (!$authphone) { - echo "web client astGUIclient: Login Telefono\n"; + echo "web client astGUIclient: Inizio attività Telefono\n"; echo "\n"; echo "\n"; echo "\n"; @@ -257,15 +257,15 @@ echo "
\n"; echo "


"; echo ""; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo ""; + echo "\n"; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Login Telefono Inizio attività Telefono
 
Spiacente, il telefono inserito non e` attivo in questo sistema, riprova di nuovo:
 
Login Telefono:
 
Spiacente, la vostra password e login non sono attivi in questo sistema, riprova di nuovo:
 
Inizio attività Telefono:
Password Telefono:
Parola d`accesso del Telefono:

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -390,7 +390,7 @@ else } else { - echo "\n"; + echo "\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 = "
Ferma Registrazione"; + var rec_start_html = "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 = "Ferma Registrazione"; + var conf_rec_start_html = "Stop Registrazione"; 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 = "CHIAMATE IN CORSO SU QUESTO TELEFONO:
"; + var live_calls_HTML = "CHIAMATE ATTIVE SU QUESTO TELEFONO:
#CANALE CLIENTCANALE REMOTORegistrazioneRIAGGANCIATRASFATTESA
"; 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 + "Ferma Registrazione";} + {live_calls_HTML = live_calls_HTML + "Stop Registrazione";} else {live_calls_HTML = live_calls_HTML + "Registrazione";} - live_calls_HTML = live_calls_HTML + ""; + live_calls_HTML = live_calls_HTML + ""; 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 = "
#CANALE CLIENTCANALE REMOTORegistrazioneATTACCATRASFPARK
RIAGGANCIATRASFATTESA
ATTACCATRASFPARK
" + var out_log_HTML = "
# DATA/ORA CHIAMATANUMEROLUNGHEZZA (M:SS)
" 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 = "
# DATE/TIME DI CHIAMATANUMEROLUNGHEZZA (M:SS)
" + var in_log_HTML = "
# DATA/ORA CHIAMATAIN-NUMEROCALLERIDLUNGHEZZA
" 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 = "
# DATE/TIME DI CHIAMATAIN-NUMEROCALLERIDLUNGHEZZA
" + var park_HTML = "
#CHANNEL
  CHIAMATA ID
MESSO IN ATTESA DA
  TEMPO IN ATTESA
RIAGGANCIATRASFRIPRENDI
" 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 + ""; + park_HTML = park_HTML + ""; } park_HTML = park_HTML + "
#CHANNEL
  CHIAMATA ID
PARCHEGGIATO DA
  TEMPO PARCHEGGIATO
ATTACCATRASFRIPRENDI
" + loop_ct + "" + park_channel + "
  " + park_call_id + "
" + parked_by + "
  " + parked_time + "
RIAGGANCIATRASFRIPRENDI
" + loop_ct + "" + park_channel + "
  " + park_call_id + "
" + parked_by + "
  " + parked_time + "
ATTACCATRASFRIPRENDI
"; @@ -1762,7 +1762,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";} show_reglink=1; reglink = "Register"; } - var conf_head_HTML = "CONFERENZA " + head_conf + "    Registrato a: " + head_reg + "   " + reglink + "         Entra in Conferenza
Aggiorna     Registrazione         Trasmetti Tono Tastiera         Chiama dalla Conferenza
"; + var conf_head_HTML = "CONFERENZA " + head_conf + "    Registrato a: " + head_reg + "   " + reglink + "         Entra in Conferenza
Aggiorna     Registrazione         Trasmetta DTMF         Chiama dalla Conferenza
"; 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 = "CHIAMATE IN CORSO IN QUESTA CONFERENZA:
"; + var live_conf_HTML = "CHIAMATE ATTIVE IN QUESTA CONFERENZA:
#CANALE REMOTORIAGGANCIATRASF
"; 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 + ""; + live_conf_HTML = live_conf_HTML + ""; 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 = "
#CANALE REMOTOATTACCATRASF
" + loop_ct + "" + channelfieldA + "RIAGGANCIATRASF
" + loop_ct + "" + channelfieldA + "ATTACCATRASF
INTERNI DISPONIBILI PREFERITI
"; + var favedit_HTML = "
- + - - + +
INTERNI DISPONIBILI FAVORITI
"; 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 = "FAI CLICK QUI PER AUTENTICARTI DI NUOVO\n"; + document.getElementById("LogouTBoxLink").innerHTML = "FAI CLICK QUI PER LOGGARTI DI NUOVO \n"; logout_stop_timeouts = 1; @@ -2716,14 +2716,14 @@ echo "\n";
-LOGOUT
\n"; ?> +LOGOUT
\n"; ?>
Pannello PrincipalePannello Linee AttivePannello Linee Attive Pannello ConferenzeControlla Posta VocaleChimata in corsoControlla la VoicemailChimate Attive
@@ -2732,59 +2732,59 @@ echo "\n"; -
TRUNK RIAGGANCIA

+
TRUNK ATTACCA

Active Trunks Menu
Disconnetti il Trunk   |   Dirotta il Trunk   |   Ascolta il Trunk   |   Aggiorna   |   - Torna alla schermata principale + Tornate alla schermata principale
-
DISCONNETTI LOCALE

+
DISCONNETTI LOCALI

Menu Locale Attivo
Disconnetti locale   |   - Dirotta Locale   |   - Ascolta locale   |   + Dirotta il Locale   |   + Ascolta il locale   |   Aggiorna   |   - Torna alla schermata principale + Tornate alla schermata principale
- - +
TRASFERIMENTO CHIAMATA IN CORSO
Canale trasferito: Canale
Interni:
Menu Interni
+ -
TRASFERIMENTO CHIAMATA ATTIVA
Canale trasferito: Canale
Interni:
Menu degli Interni

Invia all` interno selezionato

Invia alla VoiceMail selezionata

Invia a questo numero :


Aggiorna


- Torna alla schermata principale

+ Tornate alla schermata principale

Conferenze:
(Seleziona un numero per inviarlo ad una conferenza)
Invia anche il mio canale
Menu Conferenze
+
Conferenze:
(Seleziona il numero sopra per inviarlo ad una conferenza)
Invia anche il mio canale
Menu Conferenza
- +
Chiamata Interni locali
Chiamata proveniente da: Canale
Interni:
Menu Interni
Interni:
Menu degli Interni

Chiama l` interno selezionato

- Chiama la VoiceMail selezionata

+ Chiama la Voice Mail selezionata

Aggiorna


- Torna alla schermata principale

+ Tornate alla schermata principale

- - + - +
CHIAMATE IN ATTESA:
- Torna alla schermata principale

+
CHIAMATE PARCHEGGIATE:
+ Tornate alla schermata principale

@@ -2796,17 +2796,17 @@ echo "\n";
VOICEMAIL     NUOVO:     VECCHIO:             Chiamata Manuale       CHIAMA
CHIAMATE IN ATTESA: 0                INTERNI DI CHIAMATA LOCALE
CHIAMATE PARCHEGGIATE: 0                INTERNI DI CHIAMATA LOCALE
CHIAMATE OUTBOUND:
CHIAMATE INBOUND:
Versione di astGUIclient web-client: BUILD:
VERSIONEE web del astGUIclient: CONFIGURAZIONE:
- +
PREFERITI       modifica
$h) @@ -2824,10 +2824,10 @@ echo "\n"; -
FAVORITI       modifica
+
PREFERITI
- - + +
FAVORITI

 
SALVA I CAMBIAMENTI AI PREFERITI - richiede Logout
TORNA ALLA SCHERMATA PRECEDENTE- ignora i cambiamenti fatti
SALVA I CAMBIAMENTI - richiede Logout
TORNA SCHERMATA PRECEDENTE- ignora i cambiamenti fatti
@@ -2837,7 +2837,7 @@ echo "\n"; @@ -2877,7 +2877,7 @@ echo "\n";
-Seleziona una conferenza sulla sinistra per informazioni su di essa +Seleziona una stanza sulla sinistra per informazioni sulla conferenza
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/call_log_display.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/call_log_display.php index 62b06cf6..b05f0b42 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/call_log_display.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/call_log_display.php @@ -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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "Visualizza il Call Log"; echo "\n"; echo "\n"; @@ -120,7 +120,7 @@ echo " 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 diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/conf_exten_check.php index 5ea9909b..b237de3c 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/conf_exten_check.php @@ -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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "Controllo interni della conferenza"; echo "\n"; echo "\n"; @@ -160,7 +169,7 @@ echo " 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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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 " 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 " if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); } - echo "Conferenza $conf_exten e` stato registrato a $exten\n"; + echo "Conferenza $conf_exten è stato registrato $exten\n"; } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/inbound_popup.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/inbound_popup.php index 29f6b6d9..c80ce26b 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/inbound_popup.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/inbound_popup.php @@ -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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; ?> CHIAMATA INBOUND IN CORSO"; +echo "CHIAMATA INBOUND ATTIVA"; echo "\n"; echo "\n"; echo "\n"; -echo "

CHIAMATA INBOUND IN CORSO

\n"; +echo "

CHIAMATA INBOUND ATTIVA

\n"; echo "$NOW_TIME

\n"; } @@ -265,7 +265,7 @@ echo "$NOW_TIME

\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 "$NOW_TIME

\n"; echo "
\n"; echo "\n"; echo "\n"; echo "
-PAUSE | INIZIO     Frequenza di aggiornamento: 1000 ms Piu` veloce | Piu` lento

+PAUSA | INIZIO     Aggiorna i tempi: 1000 ms Più velocemente | Più lento

Inizializzazione..
Interni Attivi
@@ -2858,7 +2858,7 @@ echo "\n";
I Dati vanno inseriti qui

- I Dati vanno inseriti qui

Azione Trunk + I Dati vanno inseriti qui

Azione Del Trunk
I Dati vanno inseriti qui

Azione Locale
Numero chiamato: $row[8]
Note: $row[9]|$row[10]|$row[11]|$row[12]|$row[13]|
\n"; - echo "RIAGGANCIA - \n"; - echo "INVIA ALLA MIA VOICEMAIL\n"; + echo "ATTACCA - \n"; + echo "INVIA AL MIO VOICEMAIL\n"; echo "
\n"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/live_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/live_exten_check.php index 7cd4e78e..7c71701d 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/live_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/live_exten_check.php @@ -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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "Controllo Interni Attivi "; echo "\n"; echo "\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 diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/manager_send.php index 3ef71c4b..b8970154 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/manager_send.php @@ -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 "\n"; echo "\n"; -echo "\n"; -echo "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"; } } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/park_calls_display.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/park_calls_display.php index 704cbbc5..5d246559 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/park_calls_display.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/park_calls_display.php @@ -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 "\n"; echo "\n"; echo "\n"; @@ -110,7 +110,7 @@ echo " 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 diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/vdc_db_query.php index 9f6e0341..82ee3b7a 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/vdc_db_query.php @@ -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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "VICIDiaL Script per query su Database"; echo "\n"; echo "\n"; @@ -400,7 +400,7 @@ if ($ACTION == 'LogiNCamPaigns') else { echo "\n"; @@ -470,21 +474,21 @@ echo " echo "\n"; echo "


"; echo ""; -echo ""; +echo ""; echo "\n"; echo "\n"; -echo ""; +echo ""; echo "\n"; -echo ""; +echo ""; echo "\n"; -echo ""; +echo ""; echo "\n"; -echo ""; +echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "
Re-Login Re-login attività
 
Login Telefono:
Inizio attività Telefono:
Password Telefono:
Parola d`accesso del Telefono:
Login Utente:
Inizio attività dell`Utente:
Password Utente:
Parola d`accesso Dell`Utente:
Campagna: $camp_form_code

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -496,7 +500,7 @@ if ($user_login_first == 1) { if ( (strlen($VD_login)<1) or (strlen($VD_pass)<1) or (strlen($VD_campaign)<1) ) { - echo "VICIDial web client: Login Campagna\n"; + echo "Web client di VICICHIAMA: Inizio attività della Campagna\n"; echo "\n"; echo "\n"; echo "\n"; @@ -506,21 +510,21 @@ echo "
\n"; #echo "\n"; #echo "\n"; - echo "

Login Utente

"; + echo "

Inizio attività dell`Utente

"; echo ""; echo ""; - echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Login Campagna Inizio attività della Campagna
 
Login Utente:
Inizio attività dell`Utente:
Password Utente:
Parola d`accesso Dell`Utente:
Campagna: $camp_form_code
  \n"; echo "

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -538,7 +542,7 @@ echo "
VICIDial web client: Login\n"; + echo "Web client di VICICHIAMA: Inizio attività\n"; echo "\n"; echo "\n"; echo "\n"; @@ -548,22 +552,22 @@ echo "
\n"; echo "


"; echo ""; - echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Login Inizio attività
 
Login Telefono:
Inizio attività Telefono:
Password Telefono:
Parola d`accesso del Telefono:
Login Utente:
Inizio attività dell`Utente:
Password Utente:
Parola d`accesso Dell`Utente:
Campagna: $camp_form_code
  \n"; echo "

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -576,7 +580,7 @@ echo "
VICIDial web client: Login Telefono\n"; +echo "Web client di VICICHIAMA: Inizio attività Telefono\n"; echo "\n"; echo "\n"; echo "\n"; @@ -586,16 +590,16 @@ echo "\n"; echo "


"; echo ""; -echo ""; +echo ""; echo "\n"; echo "\n"; -echo ""; +echo ""; echo "\n"; -echo ""; +echo ""; echo "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "
Login Telefono Inizio attività Telefono
 
Login Telefono:
Inizio attività Telefono:
Password Telefono:
Parola d`accesso del Telefono:
  \n"; echo "

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -657,7 +661,7 @@ $VDloginDISPLAY=0; if ( (!eregi(" $VD_campaign ",$LOGallowed_campaigns)) and (!eregi("ALL-CAMPAIGNS",$LOGallowed_campaigns)) ) { - echo "VICIDial web client: VICIDial Login Campagna\n"; + echo "Web client di VICICHIAMA: VICICHIAMA Inizio attività della Campagna\n"; echo "\n"; echo "\n"; echo "\n"; @@ -668,8 +672,8 @@ echo "
\n"; echo "\n"; echo "\n"; - echo "Login: \n
"; - echo "Password:
\n"; + echo "Inizio attività: \n
"; + echo "Parola d`accesso:
\n"; echo "Campagna: $camp_form_code
\n"; echo "   \n"; echo "\n"; @@ -887,13 +891,13 @@ echo "
\n"; + print "\n"; } else { $VDloginDISPLAY=1; - $VDdisplayMESSAGE = "Campagna non attiva, prova di nuovo
"; + $VDdisplayMESSAGE = "La campagna non attiva, prova di nuovo
"; } } else @@ -904,12 +908,12 @@ echo "
VICIDial web client: Login Campagna\n"; + echo "Web client di VICICHIAMA: Inizio attività della Campagna\n"; echo "\n"; echo "\n"; echo "\n"; @@ -922,18 +926,18 @@ echo "

$VDdisplayMESSAGE

"; echo ""; echo ""; - echo ""; + echo ""; echo "\n"; echo "\n"; - echo ""; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Login Campagna Inizio attività della Campagna
 
Login Utente:
Inizio attività dell`Utente:
Password Utente:
Parola d`accesso Dell`Utente:
Campagna: $camp_form_code
  \n"; echo "

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -949,7 +953,7 @@ $row=mysql_fetch_row($rslt); $authphone=$row[0]; if (!$authphone) { - echo "VICIDial web client: Login Telefono Error\n"; + echo "Web client di VICICHIAMA: Inizio attività Telefono Error\n"; echo "\n"; echo "\n"; echo "\n"; @@ -962,15 +966,15 @@ echo "
\n"; echo "


"; echo ""; - echo ""; + echo ""; echo "\n"; - echo "\n"; - echo ""; + echo "\n"; + echo ""; echo "\n"; - echo ""; + echo ""; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "
Login Error Inizio attività Error
 
Spiacente, il telefono inserito non e` attivo in questo sistema, riprova di nuovo:
 
Login Telefono:
 
Spiacente, la vostra password e login non sono attivi in questo sistema, riprova di nuovo:
 
Inizio attività Telefono:
Password Telefono:
Parola d`accesso del Telefono:

VERSIONE: $version       BUILD: $build

VERSIONE: $version       CONFIGURAZIONE: $build
\n"; echo "\n\n"; echo "\n\n"; @@ -979,7 +983,7 @@ echo "
VICIDial web client\n"; + echo "Web client di VICICHIAMA\n"; $stmt="SELECT * from phones where login='$phone_login' and pass='$phone_pass' and active = 'Y';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_query($stmt, $link); @@ -1068,20 +1072,20 @@ else { $VICIDiaL_park_on_extension = "$park_ext"; $VICIDiaL_park_on_filename = "$park_file_name"; - print "\n"; + print "\n"; } - print "\n"; + print "\n"; # If a web form address is not set, use the default one if (strlen($web_form_address)>0) { $VICIDiaL_web_form_address = "$web_form_address"; - print "\n"; + print "\n"; } else { $VICIDiaL_web_form_address = "$VICIDiaL_web_URL"; - print "\n"; + print "\n"; $VICIDiaL_web_form_address_enc = rawurlencode($VICIDiaL_web_form_address); } @@ -1163,13 +1167,13 @@ else if ($DB) {echo "$stmt\n";} $rslt=mysql_query($stmt, $link); $affected_rows = mysql_affected_rows($link); - print "\n"; + print "\n"; $stmt="DELETE from vicidial_hopper where status IN('QUEUE','INCALL','DONE') and user ='$VD_login';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_query($stmt, $link); $affected_rows = mysql_affected_rows($link); - print "\n"; + print "\n"; $stmt="DELETE from vicidial_live_agents where user ='$VD_login';"; if ($DB) {echo "$stmt\n";} @@ -1183,7 +1187,7 @@ else $affected_rows = mysql_affected_rows($link); print "\n"; - # print "You have logged in as user: $VD_login su phone: $SIP_user nella campagna: $VD_campaign
\n"; + # print "You have logged in as user: $VD_login su phone: $SIP_user vai alla campagna: $VD_campaign
\n"; $VICIDiaL_is_logged_in=1; ### set the callerID for manager middleware-app to connect the phone to the user @@ -1229,7 +1233,7 @@ else if ($auto_dial_level > 0) { - print "\n"; + print "\n"; ##### grab the campaign_weight and number of calls today su that campaign for the agent $stmt="SELECT campaign_weight,calls_today FROM vicidial_campaign_agents where user='$VD_login' and campaign_id = '$VD_campaign';"; @@ -1271,11 +1275,11 @@ else $affected_rows = mysql_affected_rows($linkB); print "\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='PAUSAALL',serverid='$queuemetrics_log_id';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_query($stmt, $linkB); $affected_rows = mysql_affected_rows($linkB); - print "\n"; + print "\n"; mysql_close($linkB); mysql_select_db("$VARDB_database", $link); @@ -1289,7 +1293,7 @@ else } else { - print "\n"; + print "\n"; $stmt="INSERT INTO vicidial_live_agents (user,server_ip,conf_exten,extension,status,lead_id,campaign_id,uniqueid,callerid,channel,random_id,last_call_time,last_update_time,last_call_finish,user_level) values('$VD_login','$server_ip','$session_id','$SIP_user','PAUSED','','$VD_campaign','','','','$random','$NOW_TIME','$tsNOW_TIME','$NOW_TIME','$user_level');"; if ($DB) {echo "$stmt\n";} @@ -1308,11 +1312,11 @@ else $affected_rows = mysql_affected_rows($linkB); print "\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='PAUSAALL',serverid='$queuemetrics_log_id';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_query($stmt, $linkB); $affected_rows = mysql_affected_rows($linkB); - print "\n"; + print "\n"; mysql_close($linkB); mysql_select_db("$VARDB_database", $link); @@ -1321,19 +1325,19 @@ else } else { - echo "VICIDial web client: VICIDial Login Campagna\n"; + echo "Web client di VICICHIAMA: VICICHIAMA Inizio attività della Campagna\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n";echo "\n"; echo "
English Italiano
\n"; - echo "Spiacenti, non ci sono contatti da chiamare per questa campagna\n"; + echo "Spiacenti, non contatti da richiamare per questa campagna\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; - echo "Login: \n
"; - echo "Password:
\n"; + echo "Inizio attività: \n
"; + echo "Parola d`accesso:
\n"; echo "Campagna: $camp_form_code
\n"; echo "   \n"; echo "\n"; @@ -1344,7 +1348,7 @@ echo "
VICIDial web client: VICIDial Login Campagna\n"; + echo "Web client di VICICHIAMA: VICICHIAMA Inizio attività della Campagna\n"; echo "\n"; echo "\n"; echo "\n"; @@ -1355,8 +1359,8 @@ echo "
\n"; echo "\n"; echo "\n"; - echo "Login: \n
"; - echo "Password:
\n"; + echo "Inizio attività: \n
"; + echo "Parola d`accesso:
\n"; echo "Campagna: $camp_form_code
\n"; echo "   \n"; echo "\n"; @@ -1434,7 +1438,7 @@ $CTODAY = date("Y-m"); $CTODAYmday = date("j"); $CINC=0; -$Cmonths = Array('Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', +$Cmonths = Array('Gennaio','February','Marzo','Aprile','Può','Giugno', 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'); $Cdays = Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat'); @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var agentonly_callbacks = ''; @@ -2145,7 +2151,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} MD_channel_look=1; XDcheck = 'YES'; - // document.getElementById("HangupXferLine").innerHTML ="
\"Aggancia"; + // document.getElementById("HangupXferLine").innerHTML ="\"Attacca"; } } } @@ -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,19 +2272,25 @@ 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("AgentStatoStato").innerHTML = AGLogiN; + document.getElementById("AgentStatusStatus").innerHTML = AGLogiN; } if (CamPCalLs != 'N') { - document.getElementById("AgentStatoCalls").innerHTML = CamPCalLs; + 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') ) ) { @@ -2289,7 +2301,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} showDiv('AgenTDisablEBoX'); } } - var VLAStatuS_array = check_time_array[4].split("Stato: "); + var VLAStatuS_array = check_time_array[4].split("Status: "); var VLAStatuS = VLAStatuS_array[1]; if ( (VLAStatuS == 'PAUSED') && (AutoDialWaiting == 1) ) { @@ -2316,7 +2328,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var LMAcontent_change=0; var LMAcontent_match=0; var conv_start=-1; - var live_conf_HTML = "CHIAMATE ATTIVE NELLA VOSTRA SESSIONE:
>"; + var live_conf_HTML = "CHIAMATE ATTIVE NELLA VOSTRA SESSIONE:
#CANALE REMOTORIAGGANCIAVOLUME
>"; if ( (LMAcount > live_conf_calls) || (LMAcount < live_conf_calls) || (LMAforce > 0)) { LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; @@ -2349,11 +2361,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if (volumecontrol_active!=1) { - live_conf_HTML = live_conf_HTML + ""; + live_conf_HTML = live_conf_HTML + ""; } else { - live_conf_HTML = live_conf_HTML + ""; + live_conf_HTML = live_conf_HTML + ""; } } // var debugspan = document.getElementById("debugbottomspan").innerHTML; @@ -2492,11 +2504,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // filename = filedate + "_" + user_abb; var query_recording_exten = recording_exten; var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context; - var conf_rec_start_html = "\"Ferma"; + var conf_rec_start_html = "\"Stop"; if (campaign_recording == 'ALLFORCE') { - document.getElementById("RecorDControl").innerHTML = "\"Inizia"; + document.getElementById("RecorDControl").innerHTML = "\"Inizia"; } else { @@ -2508,10 +2520,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} filename = taskconffile; var query_recording_exten = session_id; var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context; - var conf_rec_start_html = "\"Inizia"; + var conf_rec_start_html = "\"Inizia"; if (campaign_recording == 'ALLFORCE') { - document.getElementById("RecorDControl").innerHTML = "\"Inizia"; + document.getElementById("RecorDControl").innerHTML = "\"Inizia"; } else { @@ -2554,7 +2566,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Redirect command for live call to Manager sends phone name where call is going to -// Covers the following types: XFER, VMAIL, ENTRY, CONF, ATTESA, FROMATTESA, XfeRLOCAL, XfeRINTERNAL, XfeRBLIND, VfeRVMAIL +// Covers the following types: XFER, VMAIL, ENTRY, CONF, PARK, FROMPARK, XfeRLOCAL, XfeRINTERNAL, XfeRBLIND, VfeRVMAIL function mainxfer_send_redirect(taskvar,taskxferconf,taskserverip,taskdebugnote) { if (auto_dial_level == 0) {RedirecTxFEr = 1;} @@ -2626,7 +2638,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { xferredirect_query=''; taskvar = 'NOTHING'; - alert("Il numero per il trasferimento deve avere piu` di 1 carattere:" + blindxferdialstring); + alert("Il numero per il trasferimento deve avere più di 1 carattere:" + blindxferdialstring); } else { @@ -2704,7 +2716,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var parkedby = protocol + "/" + extension; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectToPark&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + park_on_extension + "&ext_context=" + ext_context + "&ext_priority=1&extenName=park&parkedby=" + parkedby + "&session_id=" + session_id; - document.getElementById("ParkControl").innerHTML ="\"Riprendi"; + document.getElementById("ParkControl").innerHTML ="\"Riprendi"; customerparked=1; } if (taskvar == 'FROMParK') @@ -2725,7 +2737,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectFromPark&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + dest_dialstring + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id; - document.getElementById("ParkControl").innerHTML ="\"Metti"; + document.getElementById("ParkControl").innerHTML ="\"Parcheggia"; customerparked=0; } @@ -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 = "Chiama il numero seguente"; } @@ -2820,7 +2833,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { reselect_alt_dial = 1; alt_dial_active = 1; - var man_status = "Chiama Numero Altern.: NUMERO PRINCIPALE or NUMERO ALTERNATIVO or INDIRIZZO3 or Termina Contatto"; + alt_dial_status_display = 1; + var man_status = "Chiama Alt Numero: TELEFONO PRINCIPALE or ALT TELEFONO or INDIRIZZO3 or CONTATTO FINITO"; document.getElementById("MainStatuSSpan").innerHTML = man_status; } } @@ -2873,13 +2887,13 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} else { MDlogEPOCH = MDlogResponse_array[1]; - // alert("VICIDial Call log entered:\n" + document.vicidial_form.uniqueid.value); + // alert("VICICHIAMA Call log entered:\n" + document.vicidial_form.uniqueid.value); if ( (taskMDstage != "start") && (VDstop_rec_after_each_call == 1) ) { - var conf_rec_start_html = "\"Inizia"; + var conf_rec_start_html = "\"Inizia"; if ( (campaign_recording == 'NEVER') || (campaign_recording == 'ALLFORCE') ) { - document.getElementById("RecorDControl").innerHTML = "\"Inizia"; + document.getElementById("RecorDControl").innerHTML = "\"Inizia"; } else {document.getElementById("RecorDControl").innerHTML = conf_rec_start_html;} @@ -2944,7 +2958,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var CBcounT = xmlhttp.responseText; if (CBcounT == 0) {var CBprint = "NO";} else {var CBprint = CBcounT;} - document.getElementById("CBstatusSpan").innerHTML ="" + CBprint + " RICHIAMI ATTIVI"; + document.getElementById("CBstatusSpan").innerHTML ="" + CBprint + " RICHIAMATE ATTIVE"; } } @@ -2959,7 +2973,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) ) { - alert("DEVI ESSERE IN PAUSA PER CONTROLLARE I RICHIAMI IN MODALITA AUTOCHIAMA"); + alert("DOVETE ESSERE IN PAUSA PER CONTROLLARE LE RICHIAMATE IN MODALITA AUTOMATICA"); } else { @@ -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 = "
#CANALE REMOTOATTACCAVOLUME
" + loop_ct + "" + channelfieldA + "RIAGGANCIA
" + loop_ct + "" + channelfieldA + "ATTACCA
" + loop_ct + "" + channelfieldA + "RIAGGANCIA          
" + loop_ct + "" + channelfieldA + "ATTACCA          
" + var CB_HTML = "
# DATA/ORA RICHIAMONUMERONAMESTATOCAMPAIGNDATA/ORA ULTIMA CHIAMATA NOTE
" while (loop_ct < CB_calls) { loop_ct++; @@ -3069,7 +3083,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) ) { - alert("DEVI ESSERE IN PAUSA PER EFFETTUARE UNA CHIAMATA MANUALE QUANDO SEI IN MODALITA` AUTOCHIAMA"); + alert("DEVI METTERE IN PAUSA LA CHIAMATA MANUALE PER ESEGUIRE UNA CHIAMATA DEL CONTATTO IN AUTOMATICO"); } else { @@ -3127,7 +3141,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if ( (MDDiaLCodEform.length < 1) || (MDPhonENumbeRform.length < 5) ) { - alert("DEVI INSERIRE UN NUMERO DI TELEFONO E UN CODICE PER USARE LA CHIAMATA VELOCE"); + alert("DOVETE IMPOSTARE Un NUMERO DI TELEFONO E Un CODICE Della MANOPOLA PERUTILIZZARE La MANOPOLA VELOCE"); } else { @@ -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 = " In Chiamata: " + status_display_number + " UID: " + CIDcheck + "   In attesa dello Squillo... " + MD_ring_secondS + " secondi"; - // alert("channel not found yet:\n" + campaign); + if (alt_dial_status_display=='0') + { + // alert(document.getElementById("MainStatuSSpan").innerHTML); + document.getElementById("MainStatuSSpan").innerHTML = " In Chiamata: " + status_display_number + " UID: " + CIDcheck + "   Attendi lo squillo... " + MD_ring_secondS + " secondi"; + // alert("channel not found yet:\n" + campaign); + } } else { @@ -3225,17 +3243,17 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} XD_live_call_secondS = 0; MD_channel_look=0; - document.getElementById("MainStatuSSpan").innerHTML = " Chiamata la terza parte della conferenza a 3: " + document.vicidial_form.xfernumber.value + " UID: " + CIDcheck; + document.getElementById("MainStatuSSpan").innerHTML = " Chiamata l`altro chiamante: " + document.vicidial_form.xfernumber.value + " UID: " + CIDcheck; - document.getElementById("Leave3WayCall").innerHTML ="\"LASCIA"; + document.getElementById("Leave3WayCall").innerHTML ="\"LASCIA"; document.getElementById("DialWithCustomer").innerHTML ="\"Chiama"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Metti"; + document.getElementById("ParkCustomerDial").innerHTML ="\"Parcheggia"; - document.getElementById("HangupXferLine").innerHTML ="\"Aggancia"; + document.getElementById("HangupXferLine").innerHTML ="\"Attacca"; - document.getElementById("HangupBothLines").innerHTML ="\"Aggancia"; + document.getElementById("HangupBothLines").innerHTML ="\"Attacca"; xferchannellive=1; XDcheck = ''; @@ -3269,15 +3287,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("MainStatuSSpan").innerHTML = " Chiamato: " + status_display_number + " UID: " + CIDcheck + "  "; - document.getElementById("ParkControl").innerHTML ="\"Metti"; + document.getElementById("ParkControl").innerHTML ="\"Parcheggia"; - document.getElementById("HangupControl").innerHTML = "\"Aggancia"; + document.getElementById("HangupControl").innerHTML = "\"Disconnetti"; document.getElementById("XferControl").innerHTML = "\"Trasferimento"; - document.getElementById("LocalCloser").innerHTML = "\"OPERATORE"; + document.getElementById("LocalCloser").innerHTML = "\"LOCALE"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Effettua"; + document.getElementById("DialBlindTransfer").innerHTML = "\"Effettua"; document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; @@ -3285,7 +3303,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("VolumeDownSpan").innerHTML = ""; - // INSERT VICIDial_LOG ENTRY FOR THIS CHIAMATA PROCESS + // INSERT VICICHIAMA_LOG ENTRY FOR THIS CHIAMATA PROCESS DialLog("start"); custchannellive=1; @@ -3301,7 +3319,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { MD_channel_look=0; MD_ring_secondS=0; - alert("Tempo di chiamata scaduto, contatta l`amministratore di sistema\n"); + alert("Tempo di chiamata scaduto, contatta l`amministratore del sistema\n"); } } @@ -3317,13 +3335,13 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { reselect_preview_dial = 1; var man_preview = 'YES'; - var man_status = "Anteprima del contatto, quindi CHIAMA CONTATTO or SALTA CONTATTO"; + var man_status = "Anteprima del contatto CHIAMA CONTATTO or SALTA CONTATTO"; } else { reselect_preview_dial = 0; var man_preview = 'NO'; - var man_status = "In attesa dello Squillo..."; + var man_status = "Attendi lo squillo..."; } var xmlhttp=false; @@ -3364,9 +3382,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if ( (MDnextCID == "LISTA DI CHIAMATA VUOTA") || (MDnextCID == "DNC NUMERO") ) { if (MDnextCID == "LISTA DI CHIAMATA VUOTA") - {alert("Non ci sono contatti da chiamare per la campagna:\n" + campaign);} + {alert("Non ci sono contatti nella lista per la campagna:\n" + campaign);} else {alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);} + + document.getElementById("DiaLControl").innerHTML = "\"Chiama"; } 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; @@ -3465,8 +3486,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} "&source_id=" + source_id + '' + webform_session; -// $VICIDial_web_QUERY_STRING =~ s/ /+/gi; -// $VICIDial_web_QUERY_STRING =~ s/\`|\~|\:|\;|\#|\'|\"|\{|\}|\(|\)|\*|\^|\%|\$|\!|\%|\r|\t|\n//gi; +// $VICICHIAMA_web_QUERY_STRING =~ s/ /+/gi; +// $VICICHIAMA_web_QUERY_STRING =~ s/\`|\~|\:|\;|\#|\'|\"|\{|\}|\(|\)|\*|\^|\%|\$|\!|\%|\r|\t|\n//gi; var regWFspace = new RegExp(" ","ig"); web_form_vars = web_form_vars.replace(regWF, ''); @@ -3481,9 +3502,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CHIAMATABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; document.getElementById("CBcommentsBoxA").innerHTML = "Ultima Chiamata:" + CBentry_time; - document.getElementById("CBcommentsBoxB").innerHTML = "Richiamo:" + CBcallback_time; - document.getElementById("CBcommentsBoxC").innerHTML = "Operatore:" + CBuser; - document.getElementById("CBcommentsBoxD").innerHTML = "Note:
" + CBcomments; + document.getElementById("CBcommentsBoxB").innerHTML = "Chiamata ripetuta:" + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agente:" + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Osservazioni:
" + CBcomments; showDiv('CBcommentsBox'); } @@ -3493,7 +3514,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} else {web_form_vars = '?' + web_form_vars} - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\"Interfacccia\n"; if (document.vicidial_form.LeadPreview.checked==false) { @@ -3501,7 +3522,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} MD_channel_look=1; custchannellive=1; - document.getElementById("HangupControl").innerHTML = "\"Aggancia"; + document.getElementById("HangupControl").innerHTML = "\"Disconnetti"; if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') ) {all_record = 'YES';} @@ -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 = "" + textname + "\n\n

\n\n" + texttext; document.getElementById("ScriptContents").innerHTML = testscript; } @@ -3546,7 +3570,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if (manual_dial_in_progress==1) { - alert('NON PUOI SALTARE UN RICHIAMO O UNA CHIAMATA. DEVI CHIAMARE IL CONTATTO'); + alert('NON PUOI SALTARE UNA RICHIAMATA O FARE UNA CHIAMATA. DEVI CHIAMARE IL CONTATTO'); } else { @@ -3590,7 +3614,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} MDSnextCID = MDSnextResponse_array[0]; if (MDSnextCID == "LEAD NOT REVERTED") { - alert("Il contatto non e` ritornato, c`e` un errore:\n" + MDSnextResponse); + alert("Il contatto non è ritornato, c`è un errore :\n" + MDSnextResponse); } else { @@ -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 == 'ALTTelefonoE') { var manDiaLonly_num = document.vicidial_form.alt_phone.value; @@ -3707,7 +3733,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} MDnextCID = MDOnextResponse_array[0]; if (MDnextCID == " CHIAMATA NOT PLACED") { - alert("chiamata non effettuata, c`e` un errore:\n" + MDOnextResponse); + alert("chiamata non effettuata, c`è un errore:\n" + MDOnextResponse); } else { @@ -3717,9 +3743,11 @@ 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 = " In Chiamata: " + status_display_number + " UID: " + MDnextCID + "   In attesa dello Squillo..."; - - document.getElementById("HangupControl").innerHTML = "\"Aggancia"; + if (alt_dial_status_display=='0') + { + document.getElementById("MainStatuSSpan").innerHTML = " In Chiamata: " + status_display_number + " UID: " + MDnextCID + "   Attendi lo squillo..."; + } + document.getElementById("HangupControl").innerHTML = "\"Disconnetti"; if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') ) {all_record = 'YES';} @@ -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 = "" + textname + "\n\n

\n\n" + texttext; document.getElementById("ScriptContents").innerHTML = testscript; } @@ -3968,7 +3999,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} VD_live_customer_call = 1; VD_live_call_secondS = 0; - // INSERT VICIDial_LOG ENTRY FOR THIS CHIAMATA PROCESS + // INSERT VICICHIAMA_LOG ENTRY FOR THIS CHIAMATA PROCESS // DialLog("start"); custchannellive=1; @@ -4021,9 +4052,9 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CHIAMATABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; document.getElementById("CBcommentsBoxA").innerHTML = "Ultima Chiamata:" + CBentry_time; - document.getElementById("CBcommentsBoxB").innerHTML = "Richiamo:" + CBcallback_time; - document.getElementById("CBcommentsBoxC").innerHTML = "Operatore:" + CBuser; - document.getElementById("CBcommentsBoxD").innerHTML = "Note:
" + CBcomments; + document.getElementById("CBcommentsBoxB").innerHTML = "Chiamata ripetuta:" + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agente:" + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Osservazioni:
" + CBcomments; showDiv('CBcommentsBox'); } @@ -4039,15 +4070,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("MainStatuSSpan").innerHTML = " In entrata: " + status_display_number + " Group- " + VDIC_data_VDIG[1] + "   " + VDIC_fronter; } - document.getElementById("ParkControl").innerHTML ="\"Metti"; + document.getElementById("ParkControl").innerHTML ="\"Parcheggia"; - document.getElementById("HangupControl").innerHTML = "\"Aggancia"; + document.getElementById("HangupControl").innerHTML = "\"Disconnetti"; document.getElementById("XferControl").innerHTML = "\"Trasferimento"; - document.getElementById("LocalCloser").innerHTML = "\"OPERATORE"; + document.getElementById("LocalCloser").innerHTML = "\"LOCALE"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Effettua"; + document.getElementById("DialBlindTransfer").innerHTML = "\"Effettua"; document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; @@ -4127,7 +4158,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} else {web_form_vars = '?' + web_form_vars} - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\"Interfacccia\n"; if ( (campaign_recording == 'ALLCALLS') || (campaign_recording == 'ALLFORCE') ) {all_record = 'YES';} @@ -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 = "" + textname + "\n\n

\n\n" + texttext; document.getElementById("ScriptContents").innerHTML = testscript; } @@ -4241,11 +4275,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (taskrefresh == 'OUT') { - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\"Interfacccia\n"; } else { - document.getElementById("WebFormSpan").innerHTML = "\"Web\n"; + document.getElementById("WebFormSpan").innerHTML = "\"Interfacccia\n"; } } @@ -4375,7 +4409,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} MD_ring_secondS = 0; CalLCID = ''; - // UPDATE VICIDial_LOG ENTRY FOR THIS CHIAMATA PROCESS + // UPDATE VICICHIAMA_LOG ENTRY FOR THIS CHIAMATA PROCESS DialLog("end"); if (dispowindow == 'NO') { @@ -4421,12 +4455,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} lastcustserverip=''; if( document.images ) { document.images['livecall'].src = image_livecall_OFF.src;} - document.getElementById("WebFormSpan").innerHTML = "\"Web"; - document.getElementById("ParkControl").innerHTML = "\"Metti"; - document.getElementById("HangupControl").innerHTML = "\"Aggancia"; + document.getElementById("WebFormSpan").innerHTML = "\"Interfacccia"; + document.getElementById("ParkControl").innerHTML = "\"Parcheggia"; + document.getElementById("HangupControl").innerHTML = "\"Disconnetti"; document.getElementById("XferControl").innerHTML = "\"Trasferimento"; - document.getElementById("LocalCloser").innerHTML = "\"OPERATORE"; - document.getElementById("DialBlindTransfer").innerHTML = "\"Effettua"; + document.getElementById("LocalCloser").innerHTML = "\"LOCALE"; + document.getElementById("DialBlindTransfer").innerHTML = "\"Effettua"; document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; document.getElementById("VolumeUpSpan").innerHTML = ""; document.getElementById("VolumeDownSpan").innerHTML = ""; @@ -4581,15 +4615,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.xferchannel.value = ""; lastxferchannel=''; - document.getElementById("Leave3WayCall").innerHTML ="\"LASCIA"; + document.getElementById("Leave3WayCall").innerHTML ="\"LASCIA"; document.getElementById("DialWithCustomer").innerHTML ="\"Chiama"; - document.getElementById("ParkCustomerDial").innerHTML ="\"Metti"; + document.getElementById("ParkCustomerDial").innerHTML ="\"Parcheggia"; - document.getElementById("HangupXferLine").innerHTML ="\"Aggancia"; + document.getElementById("HangupXferLine").innerHTML ="\"Attacca"; - document.getElementById("HangupBothLines").innerHTML ="\"Aggancia"; + document.getElementById("HangupBothLines").innerHTML ="\"Attacca"; } } @@ -4718,7 +4752,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { AgentDispoing = 1; var VD_statuses_ct_half = parseInt(VD_statuses_ct / 2); - var dispo_HTML = "
# CHIAMATABACK DATE/TIMENUMERONAME STATUSCAMPAIGNLAST DATE/TIME DI CHIAMATA COMMENTS
ESITO CHIAMATA
"; + var dispo_HTML = "
CHIAMATA DISPOSITION
"; var loop_ct = 0; while (loop_ct < VD_statuses_ct) { @@ -4748,7 +4782,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) ) { - alert("DEVI ESSERE IN PAUSA PER INSERIRE UN CODICE PAUSA IN MODALITA` AUTOCHIAMA"); + alert("DOVETE ESSERE FATTI UNA PAUSA PER IMPOSTARE Un CODICE Di PAUSA NelMODO Di AUTO-CHIAMA"); } else { @@ -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 = "
PAUSE CODE
"; + PausaCode_HTML = "
PAUSA CODE
"; var loop_ct = 0; while (loop_ct < VD_pause_codes_ct) { @@ -4777,7 +4811,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { var DispoChoice = document.vicidial_form.DispoSelection.value; - if (DispoChoice.length < 1) {alert("Devi selezionare un esito");} + if (DispoChoice.length < 1) {alert("Selezionare una Disposizione");} else { document.getElementById("CusTInfOSpaN").innerHTML = ""; @@ -4801,7 +4835,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var DispoChoice = document.vicidial_form.DispoSelection.value; - if (DispoChoice.length < 1) {alert("Devi selezionare un esito");} + if (DispoChoice.length < 1) {alert("Selezionare una Disposizione");} else { document.getElementById("CusTInfOSpaN").innerHTML = ""; @@ -4890,7 +4924,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} hideDiv('DispoButtonHideC'); document.getElementById("DispoSelectBox").style.top = 1; document.getElementById("DispoSelectMaxMin").innerHTML = "minimizza"; - document.getElementById("DispoSelectHAspan").innerHTML = "Aggancia di nuovo"; + document.getElementById("DispoSelectHAspan").innerHTML = "Attacca ancora"; CBcommentsBoxhide(); @@ -5034,7 +5068,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} dialedcall_send_hangup(); } // ################################################################################ -// Mostra message that there are no voice channels in the VICIDial session +// Mostra message that there are no voice channels in the VICICHIAMA session function NoneInSession() { showDiv('NoneInSessionBox'); @@ -5257,12 +5291,12 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} function LogouT() { if (MD_channel_look==1) - {alert("Non puoi disconnetterti durante un tentativo di chiamata. \nAttendere 50 secondi se non c`e` risposta");} + {alert("Non potete disconnettervi durante una chiamata in attesa. \nAttendere 50 secondi finchè la chiamata non è risposta");} else { if (VD_live_customer_call==1) { - alert("CHIAMATA ATTIVA IN CORSO! Riaggancia e quindi puoi disconnetterti.\n" + VD_live_customer_call); + alert("CHIAMATA ATTIVA IN CORSO! Attaccate e poi sconettetevi.\n" + VD_live_customer_call); } else { @@ -5305,7 +5339,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} hideDiv('MainPanel'); showDiv('LogouTBox'); - document.getElementById("LogouTBoxLink").innerHTML = "FAI CLICK QUI PER AUTENTICARTI DI NUOVO\n"; + document.getElementById("LogouTBoxLink").innerHTML = "FAI CLICK QUI PER LOGGARTI DI NUOVO \n"; logout_stop_timeouts = 1; @@ -5732,7 +5766,7 @@ function utf8_decode(utftext) { CallBackDatEForM = document.vicidial_form.CallBackDatESelectioN.value; CallBackCommenTs = document.vicidial_form.CallBackCommenTsField.value; if (CallBackDatEForM.length < 2) - {alert("Devi scegliere una data");} + {alert("Dovete scegliere una data");} else { @@ -5801,7 +5835,7 @@ else { CallBackrecipient = 'ANYONE'; } - document.getElementById("CallBackDatEPrinT").innerHTML = "Seleziona una data qui sotto"; + document.getElementById("CallBackDatEPrinT").innerHTML = "Selezioni una data sotto"; document.vicidial_form.CallBackOnlyMe.checked=false; document.vicidial_form.CallBackDatESelectioN.value = ''; document.vicidial_form.CallBackCommenTsField.value = ''; @@ -5860,8 +5894,10 @@ else // if ( (agentcall_manual != '1') && (starting_dial_level > 0) ) if (agentcall_manual != '1') {hideDiv('ManuaLDiaLButtons');} + if (callholdstatus != '1') + {hideDiv('AgentStatusCalls');} if (agentcallsstatus != '1') - {hideDiv('AgentStatoSpan');} + {hideDiv('AgentStatusSpan');} if ( (auto_dial_level != 0) || (manual_dial_preview != 1) ) {clearDiv('DiaLLeaDPrevieW');} if (alt_phone_dialing != 1) @@ -5872,7 +5908,7 @@ else if (agent_pause_codes_active=='Y') { - document.getElementById("PausaCodeLinkSpan").innerHTML = "INSERIRE UN CODICE PAUSA"; + document.getElementById("PausaCodeLinkSpan").innerHTML = "IMPOSTI Un CODICE Di PAUSA"; } if (VICIDiaL_allow_closers < 1) { @@ -5881,7 +5917,7 @@ else document.getElementById("sessionIDspan").innerHTML = session_id; if ( (campaign_recording == 'NEVER') || (campaign_recording == 'ALLFORCE') ) { - document.getElementById("RecorDControl").innerHTML = "\"Inizia"; + document.getElementById("RecorDControl").innerHTML = "\"Inizia"; } if (INgroupCOUNT > 0) { @@ -6107,7 +6143,7 @@ else if (Cmon == 1) {Cmon = "FEB";} if (Cmon == 2) {Cmon = "MAR";} if (Cmon == 3) {Cmon = "APR";} - if (Cmon == 4) {Cmon = "MAG";} + if (Cmon == 4) {Cmon = "POS";} if (Cmon == 5) {Cmon = "GIU";} if (Cmon == 6) {Cmon = "LUG";} if (Cmon == 7) {Cmon = "AGO";} @@ -6222,7 +6258,7 @@ else } if (divvar == 'DiaLDiaLAltPhonE') { - var buildDivHTML = " CHIAMA NUMERO ALTERNATIVO
"; + var buildDivHTML = " ALT CHIAMATE
"; document.getElementById("DiaLDiaLAltPhonEHide").innerHTML = buildDivHTML; } } @@ -6243,7 +6279,7 @@ else if (divvar == 'DiaLDiaLAltPhonE') { document.getElementById("DiaLDiaLAltPhonEHide").innerHTML = ''; - var buildDivHTML = " CHIAMA NUMERO ALTERNATIVO
"; + var buildDivHTML = " ALT CHIAMATE
"; document.getElementById(divvar).innerHTML = buildDivHTML; if (reselect_alt_dial==1) {document.vicidial_form.DiaLAltPhonE.checked=true} @@ -6256,14 +6292,14 @@ else if (divvar == 'SHOW') { conf_channels_xtra_display = 1; - document.getElementById("busycallsdisplay").innerHTML = "Nascondi le informazioni sul canale della conferenza"; + document.getElementById("busycallsdisplay").innerHTML = "Nascondete le informazioni sul canale della conferenza"; LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; LMAcount=0; } else { conf_channels_xtra_display = 0; - document.getElementById("busycallsdisplay").innerHTML = "Mostra le informazioni sul canale della conferenza

 "; + document.getElementById("busycallsdisplay").innerHTML = "Mostrate le informazioni sul canale della conferenza

 "; document.getElementById("outboundcallsspan").innerHTML = ''; LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; LMAcount=0; @@ -6282,7 +6318,7 @@ else { hideDiv('HotKeyEntriesBox'); hot_keys_active = 0; - document.getElementById("hotkeysdisplay").innerHTML = "\"TASTI"; + document.getElementById("hotkeysdisplay").innerHTML = "\"TASTI"; } } @@ -6305,7 +6341,7 @@ else while (loop_ct < XFgroupCOUNT) { if (VARxfergroups[loop_ct] == LIVE_default_xfer_group) - {XfeR_SelecT = 'SELEZIONATO ';} + {XfeR_SelecT = 'SELECTED ';} else {XfeR_SelecT = '';} live_XfeR_HTML = live_XfeR_HTML + "\n"; loop_ct++; @@ -6327,7 +6363,7 @@ else { if (showxfervar != 'OFF') { - alert('NON HAI L`AUTORIZZAZIONE PER TRASFERIRE CHIAMATE'); + alert('NON AVETE PERMESSI PER TRASFERIRE CHIAMATE'); } } } @@ -6387,6 +6423,8 @@ else div.scroll_script {height: px; width: 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;} @@ -6417,7 +6455,7 @@ echo "\n";
- + LOGOUT\n"; ?>
@@ -6425,25 +6463,25 @@ echo "\n"; height=30> - + - - + +
VICIDialVICICHIAMA SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     ID sessione: Chimata in corso VALIGN=MIDDLE ALIGN=CENTER>   LIVE     ID di sessione:     Chimate Attive
- height=>

VICIDial
+ height=>

VICICHIAMA
-Chiamata Manuale       CHIAMATA VELOCE
+Chiamata Manuale       MANOPOLA VELOCE
-X RICHIAMI ATTIVI
+X RICHIAMATE ATTIVE
@@ -6465,7 +6503,7 @@ echo "\n"; - height=460>
RICHIAMI PER L`OPERATORE :
Selezionare un richiamo per chiamare il cliente ora. Una volta cliccata, la riga sara` rimossa dalla lista. + height=460>
RICHIAMATE PER OPERATORE :
Click su a callback below to call the customer back now. If you click su a record below to call it, it will be removed from the list.

  @@ -6476,15 +6514,15 @@ echo "\n"; - height=460>
NUOVA CHIAMATA MANUALE PER IL CONTATTO :

Inserisci le informazioni per il nuovo contatto da chiamare. + height=460>
NUOVA CHIAMATA MANUALE PER IL CONTATTO :

Inserisci le informazioni sotto per il nuovo contatto da chiamare.
\n"; + echo "Nota: prefisso di chiamata $dial_prefix sarà aggiunto all`inizio di questo numero
\n"; } ?> - Nota: tutti i nuovi contatti chiamati manualmente andranno nella lista

+ Note: all new manual dial leads will go into list

@@ -6495,13 +6533,13 @@ echo "\n"; - + -
Codice di Chiamata:   (E solitamente un 1 negli USA e Canada)
Cerca Contatti esistenti:   (Questa opzione tentera` di trovare il numero di telefono nel sistema prima di inserire un nuovo contatto)  (Questa opzione tenterà di trovare il numero di telefono nel sistema prima di inserire un nuovo contatto)


If you want to dial a number and have it NOT be added as a new lead, enter in the exact dialstring that you want to call in the Chiamata automatica field below. To hangup this call you will have to open the CHIAMATAS IN THIS SESSION link at the bottom of the screen and hang it up by clicking su its channel link there.
 
Chiamata automatica:   (solo cifre per favore) +   (solo cifre grazie)

@@ -6518,8 +6556,8 @@ echo "\n"; - -Tuo stato:
Calls Dialing: + +Vostro Status:
Calls Dialing:
@@ -6532,17 +6570,17 @@ Tuo stato:
Calls Dialing:
- OPERATORE LOCALE - Aggancia la linea trasferita - Aggancia entrambe le linee + LOCALE PIÙ VICINO + Attacca la linea trasferita + Attacca ciascun linea
Numero da chiamare   CHIAMATA AUTOMATICA   - LASCIA LA CONFERENZA A 3 - Effettua il trasferimento cieco + LASCIA LA CONFERENZA + Effettua il trasferimento cieco D1 D2 @@ -6551,7 +6589,7 @@ Tuo stato:
Calls Dialing:   channel Chiama il Cliente - Metti in attesa il cliente in chiamata + Parcheggia il cliente in chiamata Blind Transfer VMail Message
@@ -6562,7 +6600,7 @@ Tuo stato:
Calls Dialing: px;z-index:23;" id="HotKeyActionBox"> height=70> -
Esito Contatto:

+
Contatto disposto come:

-
@@ -6570,8 +6608,8 @@ Tuo stato:
Calls Dialing: px;z-index:24;" id="HotKeyEntriesBox"> height=70> - + @@ -6587,7 +6625,7 @@ Tuo stato:
Calls Dialing: px;z-index:25;" id="CBcommentsBox">
tasti funzione per esiti: - Se attivo, premi il tasto corrispondente all`esito desiderato e la chiamata sara` riagganciata automaticamente:
tasti funzione per la disposizione: + Una volta attiva, premi sulla tastiera per la disposizione sulla chiamata sarà attaccata e disposta automaticamente:
height=70> - +
Informazioni richiamo precedente: Le Informazioni Precedenti Di Chiamata ripetuta: close
@@ -6602,33 +6640,33 @@ Tuo stato:
Calls Dialing: - height=500>
Nessuno e` nella tua sessione:
+ height=500>
Nessuno è nella vostra sessione:
Torna Indietro

- Chiama l`operatore di nuovo + Ancora Operatore di chiamata
- height=500>
Il cliente ha riagganciato:
+ height=500>
Il cliente ha attaccato:
Torna Indietro

- Termina e dai un esito alla chiamata + Termina e disponi la chiamata
- height=550>
Tempo di riposo: secondi di riposo restanti

+ height=550>
Chiamata tempo di pausa: secondi restanti prima di nuova chiamata



- Termina riposo e continua + Tempo scaduto, sbrigarsi
- height=500>
La tua sessione e` stata disabilitata
LOGOUT

Torna Indietro + height=500>
La vostra sessione è stata inabilitata
LOGOUT

Torna Indietro
@@ -6645,12 +6683,12 @@ Tuo stato:
Calls Dialing: - height=47>
Tutti i cambiamenti fatti sulle informazioni del cliente sotto non saranno salvati, bisogna effettuare le modifiche prima di riagganciare.
+ height=47>
Tutti i cambiamenti fatti sulle informazioni del cliente sotto non saranno effettuate, cambiare le informazioni prima di attaccare.
- height=460>
ESITO CHIAMATA :       Aggancia di nuovo       minimizza
- Selezione Esito di fine chiamata + height=460>
DISPOSIZIONE CHIAMATA :       Attacca ancora       minimizza
+ Selezione di fine chiamata
PAUSA OPERATORE
PULISCI SCHERMATA | @@ -6662,7 +6700,7 @@ Tuo stato:
Calls Dialing: - height=460>
SELEZIONARE UN CODICE PAUSA:
+ height=460>
SELEZIONI Un CODICE Di PAUSA :
Pausa Code Selection

  @@ -6670,12 +6708,12 @@ Tuo stato:
Calls Dialing: - height=460>
Selezionare una data di richiamo! :
+ height=460>
Selezionate una richiamata :
- Seleziona una data qui sotto   + Selezioni una data sotto       - Ora: + Hour: SOLTANTO LE MIE RICHIAMATE
";} ?> - Note Richiamo:

+ Commenti del CB :

INVIA

@@ -6723,8 +6761,8 @@ Tuo stato:
Calls Dialing: - height=460>
SELEZIONE OPERATORE INBOUND
- Selezione OPERATORE Inbound + height=460>
SELEZIONE DI GRUPPO INBOUND PIÙ VICINO
+ Selezione di Gruppo Inbound più vicino
CHIAMATA MESCOLATA(outbound attivato)
RESET | @@ -6739,24 +6777,24 @@ Tuo stato:
Calls Dialing: Canale RICHIAMO PERSONALE (nessun altro potra` richiamarlo)
";} + {echo " SOLTANTO LE MIE RICHIAMATE
";} ?> - height=>
VICIDial SCRIPT
+ height=>
VICICHIAMA SCRIPT
0) && ( ($user_level>=$HKuser_level) or ($VU_hotkeys_active > 0) ) ) { ?> -TASTI FUNZIONE DISATTIVATI +TASTI FUNZIONE INATTIVI ->\n"; $call_log .= "\n"; $call_log .= "\n"; - $call_log .= "\n"; + $call_log .= "\n"; + $call_log .= "\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 .= ""; + $agent_log .= ""; + $agent_log .= ""; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\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 .= "\n"; $closer_log .= "\n"; $closer_log .= "\n"; - $closer_log .= "\n"; + $closer_log .= "\n"; + $closer_log .= "\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 "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -411,10 +484,11 @@ else echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
Versione di VICIDial web-client:     BUILD:               Server:              
-Mostra le informazioni sul canale della conferenza

 
+> @@ -6769,42 +6807,42 @@ Tuo stato:
Calls Dialing:
Versione del webclient di VICICHIAMA:     CONFIGURAZIONE:               Server:              
+Mostrate le informazioni sul canale della conferenza

 
id="MainTable"> - + @@ -6821,12 +6859,12 @@ ID Registrazione:
STATO:
STATUS:
Chiama il numero seguente
ANTEPRIMA CONTATTO
- CHIAMA NUMERO ALTERNATIVO
+ ALT CHIAMATE
-FILE REGISTRAZIONE:
+REGISTRAZIONE DOCUMENTO:

-ID Registrazione:
+IDENTIFICAZIONE Registrazione:
-Inizia Registrazione
+Inizia la Registrazione

-Web Form
+Interfacccia Web

-Metti in attesa la chiamata
+Parcheggia la chiamata
Trasferimento - Conferenza

-Aggancia il cliente
+Disconnetti il cliente

-
Trasmetti Tono Tastiera

+
Trasmetta DTMF

- + - + - + @@ -6834,19 +6872,19 @@ ID Registrazione:
Indirizzo2: - - + + - + - + - +
secondi:   Canale:   Ora Cliente:   Canale:   Tempo Di Cust:
Dati Cliente: Informazioni Cliente:
Titolo:   Nome:   MI:   Cognome:   Primo:   Mi:  Ultimo:
Indirizzo1:   Indirizzo3:
Citta`:   Stato:   CAP: Città:   Stato:   Codice postale:
Provincia:   ID Fornitore:
Telefono:   Prefisso:   Num. Alternativo:   Prefisso:   Alt. Telefono:
Mostra:   Email:
Note: Osservazioni:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/voicemail_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/voicemail_check.php index 370ae6b6..1e0023d4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/voicemail_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_it/voicemail_check.php @@ -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 "\n"; echo "\n"; -echo "\n"; +echo "\n"; echo "Controllo Voicemail"; echo "\n"; echo "\n"; @@ -107,7 +107,7 @@ echo " 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 diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/conf_exten_check.php index bcc2f9ba..91f79cf4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/manager_send.php index 49b84829..e4e6a3ba 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vdc_db_query.php index 7207c550..6e376e01 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vicidial.php index d5846697..db45d9ea 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pl/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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.: NUMER PODSTAWOWY or NUMER ALT. or ADRES3 or ZAKOŃCZ WPROWADZANIE DANYCH"; 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 = "" + var CB_HTML = "
# RozmowaBACK DATE/TIMENUMERNAMESTATUSCAMPAIGNLAST POŁĄCZENIE DATA/CZAS COMMENTS
" 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 = "\"Wybierz"; } 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 = "" + textname + "\n\n

\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 = "\"Odłącz"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# RozmowaBACK DATE/TIMENUMERNAME STATUSCAMPAIGNLAST POŁĄCZENIE DATA/CZAS COMMENTS
VICIWYBIERZ SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     ID sesji: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     ID sesji:     Aktywna rozmowa
@@ -6519,7 +6557,7 @@ echo "\n"; -Twój Status:
Calls Dialing: +Twój Status:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/conf_exten_check.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/conf_exten_check.php index d0281645..c3c053c4 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/conf_exten_check.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/conf_exten_check.php @@ -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 " 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 = "Calls in Queue: $RingCalls";} + else {$RingCalls = "Calls in Queue: $RingCalls";} + + ### 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 " 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; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/manager_send.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/manager_send.php index 7570f609..e897ef24 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/manager_send.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/manager_send.php @@ -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;"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vdc_db_query.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vdc_db_query.php index 644ad796..4bb0456d 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vdc_db_query.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vdc_db_query.php @@ -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]"); } diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vicidial.php b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vicidial.php index 6cd84ca0..5c3b12e9 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vicidial.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/agc_pt/vicidial.php @@ -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 = '' var agentcallsstatus = '' var 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 = ''; var VU_vicidial_transfers = ''; var 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: TELEFONE PRINCIPAL or ALT DEL TELEFONO or ENDEREÇO3 or REVESTIMENTO"; 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 = "" + var CB_HTML = "
# CHAMADABACK DATE/TIMENÚMERONAMESTATUSCAMPAIGNLAST DATE/TIME DA CHAMADA COMMENTS
" 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 = "\"Número"; } 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 = "" + textname + "\n\n

\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 = "\"Cliente"; 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 = "" + textname + "\n\n

\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 = "" + textname + "\n\n

\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: px; width: 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 "\n"; - +
# CHAMADABACK DATE/TIMENÚMERONAME STATUSCAMPAIGNLAST DATE/TIME DA CHAMADA COMMENTS
VICISELETOR SCRIPT VALIGN=MIDDLE ALIGN=CENTER>   LIVE     sessão ID: VALIGN=MIDDLE ALIGN=CENTER>   LIVE     sessão ID:     Vive A Chamada
@@ -6519,7 +6557,7 @@ echo "\n"; -Seu Status:
Calls Dialing: +Seu Status:
Calls Dialing:
diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/AST_agent_performance_detail.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/AST_agent_performance_detail.php index 6fae3784..7480b8a6 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/AST_agent_performance_detail.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/AST_agent_performance_detail.php @@ -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 "\n"; echo "VICIDIAL: Agent Performance\n"; echo "\n"; +echo "\n"; echo "\n"; echo " to \n"; echo "
$row[11] $row[3] $row[2] $row[1]
$row[1] $row[15]
$y$row[3] $row[5] $row[1] $row[7] $row[9] $row[11] $row[13]   $row[14]   $row[15]   $row[17]
$row[3] $row[2] $row[1]   $row[14]
  $row[14]   $row[17]
Province :
Country :
Alt Phone :
Main Phone :
Alt Phone :
Email :
Security :
Comments :
Comments :
Disposition: (with $log_campaign statuses)
Modify agent and vicidial logs
Modify vicidial log
Modify agent log
Modify closer log
Add closer log record
\n"; @@ -543,6 +621,16 @@ echo "
\n"; echo "

\n"; +echo "AGENT LOG RECORDS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + echo "$agent_log\n"; + +echo "
# DATE/TIME CAMPAIGN TSR PAUSE WAIT TALK DISPO STATUS GROUP SUB
\n"; +echo "

\n"; + + echo "RECORDINGS FOR THIS LEAD:\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/dbconnect.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/dbconnect.php index 5247e166..d31a326f 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/dbconnect.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/dbconnect.php @@ -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'; ?> diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/new_listloader_superL.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/new_listloader_superL.php index 3a25a101..0b05dd69 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/new_listloader_superL.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial/new_listloader_superL.php @@ -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} $bad++; } $total++; @@ -766,7 +767,7 @@ function ParseFileName() { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -787,7 +788,7 @@ function ParseFileName() { print ""; } -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) { # } print ""; } -} else if (filesize($leadfile)>8388608) { - print "
ERROR: File exceeds the 8MB limit.
"; +#} else if (filesize($leadfile)>8388608) { +# print "
ERROR: File exceeds the 8MB limit.
"; } ?> diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/AST_agent_performance_detail.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/AST_agent_performance_detail.php index 12067e8d..f5f45717 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/AST_agent_performance_detail.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/AST_agent_performance_detail.php @@ -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 "\n"; echo "VICIDIAL: Agent Performance\n"; echo "
\n"; +echo "\n"; echo "\n"; echo " to \n"; echo "
\n"; $call_log .= "\n"; $call_log .= "\n"; - $call_log .= "\n"; + $call_log .= "\n"; + $call_log .= "\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 .= ""; + $agent_log .= ""; + $agent_log .= ""; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\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 .= "\n"; $closer_log .= "\n"; $closer_log .= "\n"; - $closer_log .= "\n"; + $closer_log .= "\n"; + $closer_log .= "\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 "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -411,10 +484,11 @@ else echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
# LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
$row[11] $row[3] $row[2] $row[1]
$row[1] $row[15]
$y$row[3] $row[5] $row[1] $row[7] $row[9] $row[11] $row[13]   $row[14]   $row[15]   $row[17]
$row[3] $row[2] $row[1]   $row[14]
  $row[14]   $row[17]
Main Phone :
(with $log_campaign statuses)
Modify agent and vicidial logs
Modify vicidial log
Modify agent log
Modify closer log
Add closer log record
\n"; @@ -543,6 +621,16 @@ echo "
\n"; echo "

\n"; +echo "MITTELLOG RECORDS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + echo "$agent_log\n"; + +echo "
# DATE/TIME CAMPAIGN TSR PAUSE WAIT TALK DISPO STATUS GROUP SUB
\n"; +echo "

\n"; + + echo "RECORDINGS FOR THIS LEAD:\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/new_listloader_superL.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/new_listloader_superL.php index d5a419a0..e5880f87 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/new_listloader_superL.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_de/new_listloader_superL.php @@ -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} $bad++; } $total++; @@ -766,7 +767,7 @@ function ParseFileName() { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -787,7 +788,7 @@ function ParseFileName() { print ""; } -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) { # } print ""; } -} else if (filesize($leadfile)>8388608) { - print "
STÖRUNG: Akte übersteigt die Begrenzung 8MB.
"; +#} else if (filesize($leadfile)>8388608) { +# print "
ERROR: File exceeds the 8MB limit.
"; } ?> diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/AST_agent_performance_detail.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/AST_agent_performance_detail.php index 3db19858..a896b4d5 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/AST_agent_performance_detail.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/AST_agent_performance_detail.php @@ -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 "\n"; echo "VICIDIAL: Agent Performance\n"; echo "
\n"; +echo "\n"; echo "\n"; echo " to \n"; echo "
\n"; $call_log .= "\n"; $call_log .= "\n"; - $call_log .= "\n"; + $call_log .= "\n"; + $call_log .= "\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 .= ""; + $agent_log .= ""; + $agent_log .= ""; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\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 .= "\n"; $closer_log .= "\n"; $closer_log .= "\n"; - $closer_log .= "\n"; + $closer_log .= "\n"; + $closer_log .= "\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 "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -411,10 +484,11 @@ else echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
# LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
$row[11] $row[3] $row[2] $row[1]
$row[1] $row[15]
$y$row[3] $row[5] $row[1] $row[7] $row[9] $row[11] $row[13]   $row[14]   $row[15]   $row[17]
$row[3] $row[2] $row[1]   $row[14]
  $row[14]   $row[17]
Χώρα :
Εναλ Τηλέφωνο :
Main Phone :
Εναλ Τηλέφωνο :
Ασφάλεια :
Σχόλια :
Σχόλια :
Τερματισμός: (with $log_campaign statuses)
Modify agent and vicidial logs
Modify vicidial log
Modify agent log
Modify closer log
Add closer log record
\n"; @@ -543,6 +621,16 @@ echo "
\n"; echo "

\n"; +echo "ΧΕΙΡΙΣΤΗΣLOG RECORDS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + echo "$agent_log\n"; + +echo "
# DATE/TIME CAMPAIGN TSR PAUSE WAIT TALK DISPO STATUS GROUP SUB
\n"; +echo "

\n"; + + echo "RECORDINGS FOR THIS LEAD:\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/new_listloader_superL.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/new_listloader_superL.php index 1f9c688d..ead8b1d3 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/new_listloader_superL.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_el/new_listloader_superL.php @@ -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} $bad++; } $total++; @@ -766,7 +767,7 @@ function ParseFileName() { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -787,7 +788,7 @@ function ParseFileName() { print ""; } -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) { # } print ""; } -} else if (filesize($leadfile)>8388608) { - print "
Λάθος: Το αρχείο ξεπέρασε το όριο των 8ΜΒ.
"; +#} else if (filesize($leadfile)>8388608) { +# print "
ERROR: File exceeds the 8MB limit.
"; } ?> diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/AST_agent_performance_detail.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/AST_agent_performance_detail.php index 6fae3784..7480b8a6 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/AST_agent_performance_detail.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/AST_agent_performance_detail.php @@ -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 "\n"; echo "VICIDIAL: Agent Performance\n"; echo "
\n"; +echo "\n"; echo "\n"; echo " to \n"; echo "
\n"; $call_log .= "\n"; $call_log .= "\n"; - $call_log .= "\n"; + $call_log .= "\n"; + $call_log .= "\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 .= ""; + $agent_log .= ""; + $agent_log .= ""; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\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 .= "\n"; $closer_log .= "\n"; $closer_log .= "\n"; - $closer_log .= "\n"; + $closer_log .= "\n"; + $closer_log .= "\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 "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -411,10 +484,11 @@ else echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
# LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
$row[11] $row[3] $row[2] $row[1]
$row[1] $row[15]
$y$row[3] $row[5] $row[1] $row[7] $row[9] $row[11] $row[13]   $row[14]   $row[15]   $row[17]
$row[3] $row[2] $row[1]   $row[14]
  $row[14]   $row[17]
Province :
Country :
Alt Phone :
Main Phone :
Alt Phone :
Email :
Security :
Comments :
Comments :
Disposition: (with $log_campaign statuses)
Modify agent and vicidial logs
Modify vicidial log
Modify agent log
Modify closer log
Add closer log record
\n"; @@ -543,6 +621,16 @@ echo "
\n"; echo "

\n"; +echo "AGENT LOG RECORDS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + echo "$agent_log\n"; + +echo "
# DATE/TIME CAMPAIGN TSR PAUSE WAIT TALK DISPO STATUS GROUP SUB
\n"; +echo "

\n"; + + echo "RECORDINGS FOR THIS LEAD:\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/new_listloader_superL.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/new_listloader_superL.php index 3a25a101..0b05dd69 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/new_listloader_superL.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_en/new_listloader_superL.php @@ -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} $bad++; } $total++; @@ -766,7 +767,7 @@ function ParseFileName() { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -787,7 +788,7 @@ function ParseFileName() { print ""; } -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) { # } print ""; } -} else if (filesize($leadfile)>8388608) { - print "
ERROR: File exceeds the 8MB limit.
"; +#} else if (filesize($leadfile)>8388608) { +# print "
ERROR: File exceeds the 8MB limit.
"; } ?> diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/AST_agent_performance_detail.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/AST_agent_performance_detail.php index aa599c84..ed3c7baf 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/AST_agent_performance_detail.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/AST_agent_performance_detail.php @@ -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 "\n"; echo "VICIDIAL: Agent Performance\n"; echo "
\n"; +echo "\n"; echo "\n"; echo " to \n"; echo "
\n"; $call_log .= "\n"; $call_log .= "\n"; - $call_log .= "\n"; + $call_log .= "\n"; + $call_log .= "\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 .= ""; + $agent_log .= ""; + $agent_log .= ""; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\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 .= "\n"; $closer_log .= "\n"; $closer_log .= "\n"; - $closer_log .= "\n"; + $closer_log .= "\n"; + $closer_log .= "\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 "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -411,10 +484,11 @@ else echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
# LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
$row[11] $row[3] $row[2] $row[1]
$row[1] $row[15]
$y$row[3] $row[5] $row[1] $row[7] $row[9] $row[11] $row[13]   $row[14]   $row[15]   $row[17]
$row[3] $row[2] $row[1]   $row[14]
  $row[14]   $row[17]
Provincia:
País :
Alt Phone :
Main Phone :
Alt Phone :
Email :
Seguridad:
Comentarios :
Comentarios :
Disposición: (with $log_campaign statuses)
Modify agent and vicidial logs
Modify vicidial log
Modify agent log
Modify closer log
Add closer log record
\n"; @@ -543,6 +621,16 @@ echo "
\n"; echo "

\n"; +echo "AGENTE LOG RECORDS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + echo "$agent_log\n"; + +echo "
# DATE/TIME CAMPAIGN TSR PAUSE WAIT TALK DISPO STATUS GROUP SUB
\n"; +echo "

\n"; + + echo "RECORDINGS FOR THIS LEAD:\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/new_listloader_superL.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/new_listloader_superL.php index 1bffdbb9..814667ce 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/new_listloader_superL.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_es/new_listloader_superL.php @@ -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} $bad++; } $total++; @@ -766,7 +767,7 @@ function ParseFileName() { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -787,7 +788,7 @@ function ParseFileName() { print ""; } -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) { # } print ""; } -} else if (filesize($leadfile)>8388608) { - print "
ERROR: El archivo excede el límite 8MB.
"; +#} else if (filesize($leadfile)>8388608) { +# print "
ERROR: File exceeds the 8MB limit.
"; } ?> diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/AST_agent_performance_detail.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/AST_agent_performance_detail.php index ecf767d8..545e645a 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/AST_agent_performance_detail.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/AST_agent_performance_detail.php @@ -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 "\n"; echo "VICIDIAL: Agent Performance\n"; echo "
\n"; +echo "\n"; echo "\n"; echo " to \n"; echo "
\n"; $call_log .= "\n"; $call_log .= "\n"; - $call_log .= "\n"; + $call_log .= "\n"; + $call_log .= "\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 .= ""; + $agent_log .= ""; + $agent_log .= ""; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\n"; + $agent_log .= "\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 .= "\n"; $closer_log .= "\n"; $closer_log .= "\n"; - $closer_log .= "\n"; + $closer_log .= "\n"; + $closer_log .= "\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 "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -411,10 +484,11 @@ else echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
# LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
$row[11] $row[3] $row[2] $row[1]
$row[1] $row[15]
$y$row[3] $row[5] $row[1] $row[7] $row[9] $row[11] $row[13]   $row[14]   $row[15]   $row[17]
$row[3] $row[2] $row[1]   $row[14]
  $row[14]   $row[17]
Provincia :
Stato :
Numero Alt :
Main Phone :
Numero Alt :
Email :
Seguridad:
Note :
Note :
Esito: (with $log_campaign statuses)
Modify agent and vicidial logs
Modify vicidial log
Modify agent log
Modify closer log
Add closer log record
\n"; @@ -543,6 +621,16 @@ echo "
\n"; echo "

\n"; +echo "AGENT LOG RECORDS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + echo "$agent_log\n"; + +echo "
# DATE/TIME CAMPAGNA TSR PAUSE WAIT TALK DISPO STATUS GROUP SUB
\n"; +echo "

\n"; + + echo "RECORDINGS FOR THIS LEAD:\n"; echo "\n"; echo "\n"; diff --git a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/new_listloader_superL.php b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/new_listloader_superL.php index 1d0bbf1c..1ccb3472 100644 --- a/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/new_listloader_superL.php +++ b/agc_2-X/branches/agc_2.0.4/LANG_www/vicidial_it/new_listloader_superL.php @@ -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead $dup_lead_list\n";} $bad++; } $total++; @@ -766,7 +767,7 @@ function ParseFileName() { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -787,7 +788,7 @@ function ParseFileName() { print ""; } -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 "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1216,7 +1217,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $good++; } else { - if ($bad < 10000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} + if ($bad < 1000000) {print "
record $total BAD- PHONE: $phone_number ROW: |$row[0]| DUP: $dup_lead\n";} $bad++; } $total++; @@ -1454,8 +1455,8 @@ if ($leadfile && filesize($LF_path)<=8388608) { # } print ""; } -} else if (filesize($leadfile)>8388608) { - print "
ERROR: Il file supera il limite di 8 MB.
"; +#} else if (filesize($leadfile)>8388608) { +# print "
ERROR: File exceeds the 8MB limit.
"; } ?>
# LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR