diff --git a/agc_2-X/trunk/LANG_www/agc/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc/vdc_db_query.php index 866c0584..586632c4 100644 --- a/agc_2-X/trunk/LANG_www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc/vicidial.php b/agc_2-X/trunk/LANG_www/agc/vicidial.php index eeae3178..28f938bb 100644 --- a/agc_2-X/trunk/LANG_www/agc/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Resume\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "minimize"; document.getElementById("DispoSelectHAspan").innerHTML = "Hangup Again"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X ACTIVE CALLBACKS
- +
CALLBACKS FOR AGENT :
Click on a callback below to call the customer back now. If you click on a record below to call it, it will be removed from the list.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NEW MANUAL DIAL LEAD FOR :

Enter information below for the new lead you wish to call.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Noone is in your session:
Go Back

@@ -5352,7 +5415,7 @@ Your Status:
Calls Dialing: +
Customer has hung up:
Go Back

@@ -5361,7 +5424,7 @@ Your Status:
Calls Dialing: +
Call Wrapup: seconds remaining in wrapup



@@ -5370,23 +5433,23 @@ Your Status:
Calls Dialing: +

LOGOUT
- +
- +
 
- +
Any changes made to the customer information below at this time will not be comitted, You must change customer information before you Hangup the call.
- +
DISPOSITION CALL :       Hangup Again       minimize
End-of-call Disposition Selection
@@ -5400,7 +5463,7 @@ Your Status:
Calls Dialing: +
Select a CallBack Date :
@@ -5443,7 +5506,7 @@ Your Status:
Calls Dialing: +
CLOSER INBOUND GROUP SELECTION
Closer Inbound Group Selection
@@ -5454,7 +5517,7 @@ Your Status:
Calls Dialing: + Channel Channel diff --git a/agc_2-X/trunk/LANG_www/agc_br/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_br/vdc_db_query.php index 9d07e5a9..2be546db 100644 --- a/agc_2-X/trunk/LANG_www/agc_br/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_br/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_br/vicidial.php b/agc_2-X/trunk/LANG_www/agc_br/vicidial.php index 0fa1b89d..5dbbe85c 100644 --- a/agc_2-X/trunk/LANG_www/agc_br/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_br/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pausa\"\"Início\""; var DiaLControl_auto_HTML_ready = "\"Pausa\"\"Início\""; var DiaLControl_auto_HTML_OFF = "\"Pausa\"\"Início\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Ligando: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CHAMADABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Ultimo Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comentários:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Entrante: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CHAMADABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Ultimo Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comentários:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "minimizar"; document.getElementById("DispoSelectHAspan").innerHTML = "Desligue novamente"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X AGENDAMENTOS ATIVOS
- +
AGENDAMENTOS POR AGENTE :
Clique em um dos contatos abaixo para ligar. Se você clicar em um contatos abaixo o mesmo será removido da lista de Agendamentos.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NOVA DISCAGEM MANUAL PARA :

Digite abaixo a informação do novo contato que você deseja ligar.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Não existe ninguem na sua sessão:
Voltar

@@ -5352,7 +5415,7 @@ Your Status:
Calls Dialing: +
O cliente desligou:
Voltar

@@ -5361,7 +5424,7 @@ Your Status:
Calls Dialing: +
Chamada Wrapup: segundos restantes no wrapup



@@ -5370,23 +5433,23 @@ Your Status:
Calls Dialing: +

SAIR
- +
- +
 
- +
Qualquer alteração feita nesta página não será salva. Você deve mudar as informações do cliente antes de desligar a ligação.
- +
SELEÇÃO DE STATUS :       Desligue novamente       minimizar
Fim da seleção de status
@@ -5400,7 +5463,7 @@ Your Status:
Calls Dialing: +
Selecione uma data para o retorno :
@@ -5443,7 +5506,7 @@ Your Status:
Calls Dialing: +
SELECAO DO GRUPO DE ENTRADA DO CLOSER
Seleção do grupo de entrada do closer
@@ -5454,7 +5517,7 @@ Your Status:
Calls Dialing: + Canal Canal diff --git a/agc_2-X/trunk/LANG_www/agc_de/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_de/vdc_db_query.php index f1cbf86a..d7783ae7 100644 --- a/agc_2-X/trunk/LANG_www/agc_de/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_de/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_de/vicidial.php b/agc_2-X/trunk/LANG_www/agc_de/vicidial.php index a0e698ff..daffaf5e 100644 --- a/agc_2-X/trunk/LANG_www/agc_de/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_de/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Zusammenfassung\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Zusammenfassung\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Zusammenfassung\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Benennen: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS ANRUFBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Letztes Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Anmerkungen:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Ankommend: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS ANRUFBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Letztes Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Anmerkungen:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "setzen Sie herab"; document.getElementById("DispoSelectHAspan").innerHTML = "Hängezustand Wieder"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X AKTIVE WIEDERHOLUNGSBESUCHE
- +
WIEDERHOLUNGSBESUCHE FÜR MITTEL :
Klicken Sie an einen Wiederholungsbesuch unten, um die Kunde Rückseite jetzt zu benennen. Wenn Sie an eine Aufzeichnung unten klicken, um sie zu benennen, wird sie von der Liste entfernt.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NEUE MANUELLE VORWAHLKNOPF-LEITUNG FÜR :

Tragen Sie Informationen unten für die neue Leitung ein, die Sie benennen möchten.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Noone ist in Ihrem Lernabschnitt:
Gehen Sie Zurück

@@ -5352,7 +5415,7 @@ Ihr Status:
Calls Dialing: +
Kunde hat oben gehangen:
Gehen Sie Zurück

@@ -5361,7 +5424,7 @@ Ihr Status:
Calls Dialing: +
Anruf Nachbereitung Verbleibende Sekunden der Nachbereitung



@@ -5370,23 +5433,23 @@ Ihr Status:
Calls Dialing: +

LOGOUT
- +
- +
 
- +
Alle mögliche Änderungen, die am Kunden vorgenommen wurden, den, Informationen unten diesmal nicht sind, comitted, Sie müssen Kunde Informationen vor Ihnen ändern Hängezustand der Anruf.
- +
EINTEILUNG ANRUF :       Hängezustand Wieder       setzen Sie herab
Ende-von-benennen Sie Einteilung Vorwähler
@@ -5400,7 +5463,7 @@ Ihr Status:
Calls Dialing: +
Wählen Sie ein Wiederholungsbesuch Datum vor :
@@ -5443,7 +5506,7 @@ Ihr Status:
Calls Dialing: +
GENAUERE INBOUND GRUPPENWAHL
Genauere Inbound Gruppenwahl
@@ -5454,7 +5517,7 @@ Ihr Status:
Calls Dialing: + Führung Führung diff --git a/agc_2-X/trunk/LANG_www/agc_el/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_el/vdc_db_query.php index c5c08a60..fe774717 100644 --- a/agc_2-X/trunk/LANG_www/agc_el/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_el/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_el/vicidial.php b/agc_2-X/trunk/LANG_www/agc_el/vicidial.php index 4bad5360..fcc249e7 100644 --- a/agc_2-X/trunk/LANG_www/agc_el/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_el/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Παύση\"\"Επανάληψη\""; var DiaLControl_auto_HTML_ready = "\"Παύση\"\"Επανάληψη\""; var DiaLControl_auto_HTML_OFF = "\"Παύση\"\"Επανάληψη\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Σε Κλήση: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS ΚΛΗΣΗBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Επίθετο Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Σχόλια:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Εισερχόμενο: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS ΚΛΗΣΗBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Επίθετο Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Σχόλια:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "ελαχιστοποιήστε"; document.getElementById("DispoSelectHAspan").innerHTML = "Ξανακλήσε"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X ΕΝΕΡΓΕΣ ΕΠΑΝΑΚΛΗΣΕΙΣ
- +
ΕΠΑΝΑΚΛΗΣΕΙΣ ΓΙΑ ΤΟΝ ΧΕΙΡΙΣΤΗ :
Επιλέξτε μία επανάκληση παρακάτω για να καλέσετε τον πελάτη τώρα. Εάν επιλέξετε μία εγγραφή παρακάτω, θα διαγραφεί από την λίστα.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
ΝΕΑ ΧΕΙΡΟΚΙΝΗΤΗ ΚΛΗΣΗ ΟΔΗΓΟΥ ΓΙΑ :

Καταχωρήστε τις πληροφορίες παρακάτω για τον νέο οδηγό που επιθυμήτε να καλέσετε.
- + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Κανένας δεν είναι στη σύνοδό σας:
Επιστροφή

@@ -5352,7 +5415,7 @@ Your Κατάσταση:
- +
Ο πελάτης έχει κλείσει το τηλέφωνο:
Επιστροφή

@@ -5361,7 +5424,7 @@ Your Κατάσταση:
- +
Τύλιγμα Κλήσης: απομύνοντα δευτερόλεπτα σε τύλιγμα



@@ -5370,23 +5433,23 @@ Your Κατάσταση:
- +

ΑΠΟΣΥΝΔΕΣΗ
- +
- +
 
- +
Οποιεσδήποτε αλλαγές που γίνονται στις πληροφορίες πελατών κατωτέρω αυτή τη στιγμή δεν θα είναι, πρέπει να αλλάξετε τις πληροφορίες πελατών ενώπιον σας Hangup η κλήση.
- +
Τερματισμός Κλήσης :       Ξανακλήσε       ελαχιστοποιήστε
Επιλογή τερματισμού της κλήσης
@@ -5400,7 +5463,7 @@ Your Κατάσταση: - +
Επιλέξτε μια ημερομηνία CallBack :
@@ -5443,7 +5506,7 @@ Your Κατάσταση:
- +
CLOSER ΕΙΣΕΡΧΟΜΕΝΗ ΕΠΙΛΟΓΗ ΟΜΑΔΑΣ
Επιλογή Closer εισερχόμενης ομάδας
@@ -5454,7 +5517,7 @@ Your Κατάσταση:
- + Κανάλι Κανάλι diff --git a/agc_2-X/trunk/LANG_www/agc_en/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_en/vdc_db_query.php index 866c0584..586632c4 100644 --- a/agc_2-X/trunk/LANG_www/agc_en/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_en/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_en/vicidial.php b/agc_2-X/trunk/LANG_www/agc_en/vicidial.php index 942bf92b..7251a1cc 100644 --- a/agc_2-X/trunk/LANG_www/agc_en/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_en/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Resume\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CALLBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Last Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comments:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "minimize"; document.getElementById("DispoSelectHAspan").innerHTML = "Hangup Again"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X ACTIVE CALLBACKS
- +
CALLBACKS FOR AGENT :
Click on a callback below to call the customer back now. If you click on a record below to call it, it will be removed from the list.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NEW MANUAL DIAL LEAD FOR :

Enter information below for the new lead you wish to call.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Noone is in your session:
Go Back

@@ -5352,7 +5415,7 @@ Your Status:
Calls Dialing: +
Customer has hung up:
Go Back

@@ -5361,7 +5424,7 @@ Your Status:
Calls Dialing: +
Call Wrapup: seconds remaining in wrapup



@@ -5370,23 +5433,23 @@ Your Status:
Calls Dialing: +

LOGOUT
- +
- +
 
- +
Any changes made to the customer information below at this time will not be comitted, You must change customer information before you Hangup the call.
- +
DISPOSITION CALL :       Hangup Again       minimize
End-of-call Disposition Selection
@@ -5400,7 +5463,7 @@ Your Status:
Calls Dialing: +
Select a CallBack Date :
@@ -5443,7 +5506,7 @@ Your Status:
Calls Dialing: +
CLOSER INBOUND GROUP SELECTION
Closer Inbound Group Selection
@@ -5454,7 +5517,7 @@ Your Status:
Calls Dialing: + Channel Channel diff --git a/agc_2-X/trunk/LANG_www/agc_es/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_es/vdc_db_query.php index 8bd93ce0..8612e213 100644 --- a/agc_2-X/trunk/LANG_www/agc_es/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_es/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_es/vicidial.php b/agc_2-X/trunk/LANG_www/agc_es/vicidial.php index 6aa9c11b..0e8677e3 100644 --- a/agc_2-X/trunk/LANG_www/agc_es/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_es/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pausa\"\"Comienzo\""; var DiaLControl_auto_HTML_ready = "\"Pausa\"\"Comienzo\""; var DiaLControl_auto_HTML_OFF = "\"Pausa\"\"Comienzo\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Llamando: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS LLAMADABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Último Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comentarios:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Entrante: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS LLAMADABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Último Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comentarios:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "reduzca al mínimo"; document.getElementById("DispoSelectHAspan").innerHTML = "Retraso Otra vez"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X SERVICIOS REPETIDOS ACTIVOS
- +
SERVICIOS REPETIDOS PARA EL AGENTE :
Chasque encendido un servicio repetido abajo ahora para llamar la parte posteriora del cliente. Si usted chasca encendido un expediente abajo para llamarlo, será quitado de la lista.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NUEVO PLOMO MANUAL DEL DIAL PARA :

Incorpore la información abajo para el nuevo plomo que usted desea llamar.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Nadie está en su sesión:
Vaya Detrás

@@ -5352,7 +5415,7 @@ Su Estado:
Calls Dialing: +
El cliente ha colgado:
Vaya Detrás

@@ -5361,7 +5424,7 @@ Su Estado:
Calls Dialing: +
Llamada Wrapup: segundos restantes en wrapup



@@ -5370,23 +5433,23 @@ Su Estado:
Calls Dialing: +

SALIR
- +
- +
 
- +
Cualquier cambio realizado al cliente que no será la información abajo en este tiempo comitted, usted debe cambiar la información del cliente antes de usted retraso la llamada.
- +
DISPOSITION LLAMADA :       Retraso Otra vez       reduzca al mínimo
selección de la disposición del End-of-call
@@ -5400,7 +5463,7 @@ Su Estado:
Calls Dialing: +
Seleccione una fecha del servicio repetido :
@@ -5443,7 +5506,7 @@ Su Estado:
Calls Dialing: +
SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER
SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER
@@ -5454,7 +5517,7 @@ Su Estado:
Calls Dialing: + Canal Canal diff --git a/agc_2-X/trunk/LANG_www/agc_fr/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_fr/vdc_db_query.php index 5d9ede06..e4922b74 100644 --- a/agc_2-X/trunk/LANG_www/agc_fr/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_fr/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_fr/vicidial.php b/agc_2-X/trunk/LANG_www/agc_fr/vicidial.php index 54d5460e..479f268c 100644 --- a/agc_2-X/trunk/LANG_www/agc_fr/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_fr/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Résumé\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Résumé\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Résumé\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Appeler: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS APPELBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Bout Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Commentaires:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Entrant: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS APPELBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Bout Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Commentaires:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "réduisez au minimum"; document.getElementById("DispoSelectHAspan").innerHTML = "Décrochement Encore"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X RAPPELS DE SERVICE ACTIFS
- +
RAPPELS DE SERVICE POUR L'AGENT :
Cliquez sur un rappel de service ci-dessous pour appeler le dos de client maintenant. Si vous cliquez sur un disque ci-dessous pour l'appeler, il sera enlevé de la liste.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NOUVEAU FIL MANUEL DE CADRAN POUR :

Écrivez l'information ci-dessous pour le nouveau fil que vous souhaitez appeler.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Aucun n'est en votre session:
Retournez

@@ -5352,7 +5415,7 @@ Votre Statut:
Calls Dialing: +
Le client a raccroché:
Retournez

@@ -5361,7 +5424,7 @@ Votre Statut:
Calls Dialing: +
Appel Wrapup : secondes restantes dans le wrapup



@@ -5370,23 +5433,23 @@ Votre Statut:
Calls Dialing: +

DÉCONNEXION
- +
- +
 
- +
Tous les changements faits au client que l'information ci-dessous actuellement ne sera pas comitted, vous doivent changer l'information de client avant vous décrochement l'appel.
- +
APPEL DE DISPOSITION :       Décrochement Encore       réduisez au minimum
Extrémité-de-appelez Le Choix De Disposition
@@ -5400,7 +5463,7 @@ Votre Statut:
Calls Dialing: +
Choisissez une date de rappel de service :
@@ -5443,7 +5506,7 @@ Votre Statut:
Calls Dialing: +
UN CHOIX DE GROUPE D'ARRIVÉE PLUS ÉTROIT
Un Choix De Groupe D'arrivée Plus étroit
@@ -5454,7 +5517,7 @@ Votre Statut:
Calls Dialing: + LaManche LaManche diff --git a/agc_2-X/trunk/LANG_www/agc_it/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_it/vdc_db_query.php index ac13251f..d8dd1022 100644 --- a/agc_2-X/trunk/LANG_www/agc_it/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_it/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_it/vicidial.php b/agc_2-X/trunk/LANG_www/agc_it/vicidial.php index ba63adea..0682440f 100644 --- a/agc_2-X/trunk/LANG_www/agc_it/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_it/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pausa\"\"Riprendi\""; var DiaLControl_auto_HTML_ready = "\"Pausa\"\"Riprendi\""; var DiaLControl_auto_HTML_OFF = "\"Pausa\"\"Riprendi\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " In Chiamata: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ 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 = "Ultimo Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Note:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " In entrata: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ 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 = "Ultimo Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Note:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "minimizza"; document.getElementById("DispoSelectHAspan").innerHTML = "Attacca ancora"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X RICHIAMATE ATTIVE
- +
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.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NUOVA CHIAMATA MANUALE PER IL CONTATTO :

Inserisci le informazioni sotto per il nuovo contatto da chiamare.

Calls Dialing:
- + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Nessuno è nella vostra sessione:
Torna Indietro

@@ -5352,7 +5415,7 @@ Vostro Status:
Calls Dialing:
- +
Il cliente ha attaccato:
Torna Indietro

@@ -5361,7 +5424,7 @@ Vostro Status:
Calls Dialing:
- +
Chiamata tempo di pausa: secondi restanti prima di nuova chiamata



@@ -5370,23 +5433,23 @@ Vostro Status:
Calls Dialing:
- +

LOGOUT
- +
- +
 
- +
Tutti i cambiamenti fatti sulle informazioni del cliente sotto non saranno effettuate, cambiare le informazioni prima di attaccare.
- +
DISPOSIZIONE CHIAMATA :       Attacca ancora       minimizza
Selezione di fine chiamata
@@ -5400,7 +5463,7 @@ Vostro Status:
Calls Dialing: - +
Selezionate una richiamata :
@@ -5443,7 +5506,7 @@ Vostro Status:
Calls Dialing:
- +
SELEZIONE DI GRUPPO INBOUND PIÙ VICINO
Selezione di Gruppo Inbound più vicino
@@ -5454,7 +5517,7 @@ Vostro Status:
Calls Dialing:
- + Canale Canale diff --git a/agc_2-X/trunk/LANG_www/agc_pl/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_pl/vdc_db_query.php index ab165605..25055deb 100644 --- a/agc_2-X/trunk/LANG_www/agc_pl/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_pl/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_pl/vicidial.php b/agc_2-X/trunk/LANG_www/agc_pl/vicidial.php index 32cddcbe..c2ba0fd0 100644 --- a/agc_2-X/trunk/LANG_www/agc_pl/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_pl/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Przerwa\"\"Ponów\""; var DiaLControl_auto_HTML_ready = "\"Przerwa\"\"Ponów\""; var DiaLControl_auto_HTML_OFF = "\"Przerwa\"\"Ponów\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Dzwoni: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS RozmowaBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Nazwisko Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Komentarz:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Przychodząca: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS RozmowaBACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Nazwisko Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Komentarz:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "minimalizuj"; document.getElementById("DispoSelectHAspan").innerHTML = "Rozłącz się ponownie"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X AKTYWNE INNE TERMINY
- +
INNE TERMINY DLA AGENTA :
Kliknij poniżej na Inne terminy żeby teraz zadzwonić do klienta. Jeżeli klikniesz na rekordzie by zadzwonić, rekord zostanie usunięty z listy.
@@ -5248,7 +5294,7 @@ echo "\n";
- +
NOWE RĘCZNE WYBIERANIE NUMERU DLA :

Wpisz poniżej informacje o kontakcie do którego chcesz wykonać połączenie.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ +
Nikt nie uczestniczy w Twojej sesji:
Wróć

@@ -5352,7 +5415,7 @@ Twój Status:
Calls Dialing: +
Klient sie rozłączył:
Wróć

@@ -5361,7 +5424,7 @@ Twój Status:
Calls Dialing: +
Call Wrapup sekundy remaining in wrapup



@@ -5370,23 +5433,23 @@ Twój Status:
Calls Dialing: +

WYLOGUJ
- +
- +
 
- +
Zmiany wprowadzone w informacjach o kliencie będą zapisane tylko podczas trwania połączenia. Nie po rozłączaniu!.
- +
REZULTAT ROZMOWY :       Rozłącz się ponownie       minimalizuj
Koniec rozmowy, wybierz rezultat
@@ -5400,7 +5463,7 @@ Twój Status:
Calls Dialing: + \r\n"; #print " \r\n"; } - } else if (!eregi(".csv", $leadfile_name)) { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); - passthru("$WeBServeRRooT/vicidial/listloader_rowdisplay.pl"); - } else { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.csv", "r"); - $stmt_file=fopen("listloader_stmts.txt", "w"); + } + else if (!eregi(".csv", $leadfile_name)) + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.xls"); + $lead_file = "/tmp/vicidial_temp_file.xls"; + } + + # echo "|$WeBServeRRooT/vicidial/listloader_rowdisplay.pl --lead-file=$lead_file|"; + passthru("$WeBServeRRooT/vicidial/listloader_rowdisplay.pl --lead-file=$lead_file"); + } + else + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.csv"); + $lead_file = "/tmp/vicidial_temp_file.csv"; + } + $file=fopen("$lead_file", "r"); + + if ($WeBRooTWritablE > 0) + {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} print "
ProcesandoCSV file... \n"; @@ -895,6 +979,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { } } print "
\r\n"; + print " \r\n"; print " \r\n"; print " \r\n"; print " \r\n";
Wybierz datę oddzwonienia :
@@ -5443,7 +5506,7 @@ Twój Status:
Calls Dialing: + "; + echo ""; + echo ""; + } +echo "
SELEKCJA GRUPY ZAWNĘTRZNYCH FINALIZUJĄCYCH
Selekcja grupy zawnętrznych finalizujących
@@ -5454,7 +5517,7 @@ Twój Status:
Calls Dialing: + Kanał Kanał diff --git a/agc_2-X/trunk/LANG_www/agc_pt/vdc_db_query.php b/agc_2-X/trunk/LANG_www/agc_pt/vdc_db_query.php index 65c0ad00..1e514163 100644 --- a/agc_2-X/trunk/LANG_www/agc_pt/vdc_db_query.php +++ b/agc_2-X/trunk/LANG_www/agc_pt/vdc_db_query.php @@ -108,9 +108,11 @@ # 60623-1414 - Fixed variable filter for phone_code and fixed manual dial logic # 60821-1600 - Added ability to omit the phone code on vicidial lead dialing # 60821-1647 - Added ability to not delete sessions at logout +# 60906-1124 - Added lookup and sending of callback data for CALLBK calls +# -$version = '2.0.36'; -$build = '60821-1647'; +$version = '2.0.37'; +$build = '60906-1124'; require("dbconnect.php"); @@ -498,6 +500,27 @@ if ($ACTION == 'manDiaLnextCaLL') $called_count++; + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### flag the lead as called and change it's status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -582,6 +605,10 @@ if ($ACTION == 'manDiaLnextCaLL') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; @@ -1076,6 +1103,27 @@ if ($ACTION == 'VDADcheckINCOMING') $called_count = trim("$row[30]"); } + ##### if lead is a callback, grab the callback comments + $CBentry_time = ''; + $CBcallback_time = ''; + $CBuser = ''; + $CBcomments = ''; + if (ereg("CALLBK",$dispo)) + { + $stmt="SELECT entry_time,callback_time,user,comments FROM vicidial_callbacks where lead_id='$lead_id' order by callback_id desc LIMIT 1;"; + $rslt=mysql_query($stmt, $link); + if ($DB) {echo "$stmt\n";} + $cb_record_ct = mysql_num_rows($rslt); + if ($cb_record_ct > 0) + { + $row=mysql_fetch_row($rslt); + $CBentry_time = trim("$row[0]"); + $CBcallback_time = trim("$row[1]"); + $CBuser = trim("$row[2]"); + $CBcomments = trim("$row[3]"); + } + } + ### update the lead status to INCALL $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; if ($DB) {echo "$stmt\n";} @@ -1215,6 +1263,10 @@ if ($ACTION == 'VDADcheckINCOMING') $LeaD_InfO .= $security . "\n"; $LeaD_InfO .= $comments . "\n"; $LeaD_InfO .= $called_count . "\n"; + $LeaD_InfO .= $CBentry_time . "\n"; + $LeaD_InfO .= $CBcallback_time . "\n"; + $LeaD_InfO .= $CBuser . "\n"; + $LeaD_InfO .= $CBcomments . "\n"; echo $LeaD_InfO; diff --git a/agc_2-X/trunk/LANG_www/agc_pt/vicidial.php b/agc_2-X/trunk/LANG_www/agc_pt/vicidial.php index a93b3795..f6e53751 100644 --- a/agc_2-X/trunk/LANG_www/agc_pt/vicidial.php +++ b/agc_2-X/trunk/LANG_www/agc_pt/vicidial.php @@ -124,6 +124,8 @@ # 60821-1643 - Added no_delete_sessions option to not delete sessions # 60822-0512 - Changed phone number fields to be maxlength of 12 # 60829-1531 - Made compatible with WeBRooTWritablE setting in dbconnect.php +# 60906-1152 - Added Previous CallBack info display span +# 60906-1715 - Allow for Local phone extension conferences # require("dbconnect.php"); @@ -169,8 +171,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.97'; -$build = '60829-1531'; +$version = '2.0.99'; +$build = '60906-1715'; if ($force_logout) { @@ -1386,6 +1388,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var no_delete_sessions = ''; var webform_session = ''; var local_consult_xfers = ''; + var CBentry_time = ''; + var CBcallback_time = ''; + var CBuser = ''; + var CBcomments = ''; var DiaLControl_auto_HTML = "\"Pausa\"\"Resumo\""; var DiaLControl_auto_HTML_ready = "\"Pausa\"\"Resumo\""; var DiaLControl_auto_HTML_OFF = "\"Pausa\"\"Resumo\""; @@ -1550,7 +1556,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } } if (taskFromConf == 'YES') - {basic_originate_call(manual_string,'NO','YES',dial_conf_exten);} + {basic_originate_call(manual_string,'NO','YES',dial_conf_exten,'NO',taskFromConf);} else {basic_originate_call(manual_string,'NO','NO');} @@ -1559,7 +1565,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Originate command to manager to place a phone call - function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait) + function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { var xmlhttp=false; /*@cc_on @*/ @@ -1628,7 +1634,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } var originatevalue = protodial + "/" + extendial; } - var queryCID = "DVagcW" + epoch_sec + user_abb; + if (taskconfxfer == 'YES') + {var queryCID = "DCagcW" + epoch_sec + user_abb;} + else + {var queryCID = "DVagcW" + epoch_sec + user_abb;} VMCoriginate_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Originate&format=text&channel=" + originatevalue + "&queryCID=" + queryCID + "&exten=" + orig_prefix + "" + dialnum + "&ext_context=" + ext_context + "&ext_priority=1&outbound_cid=" + campaign_cid; xmlhttp.open('POST', 'manager_send.php'); @@ -2543,7 +2552,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDuniqueid = MDlookResponse_array[0]; XDchannel = MDlookResponse_array[1]; - if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) + if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) { // bad grab of Local channel, try again MD_ring_secondS++; @@ -2731,6 +2740,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.called_count.value = MDnextResponse_array[27]; previous_called_count = MDnextResponse_array[27]; previous_dispo = MDnextResponse_array[2]; + CBentry_time = MDnextResponse_array[28]; + CBcallback_time = MDnextResponse_array[29]; + CBuser = MDnextResponse_array[30]; + CBcomments = MDnextResponse_array[31]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Chamada: " + document.vicidial_form.phone_number.value + " UID: " + MDnextCID + "   " + man_status; @@ -2796,6 +2809,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CHAMADABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Último Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comentários:
" + CBcomments; + showDiv('CBcommentsBox'); } var regWFAvars = new RegExp("\\?","ig"); @@ -3294,6 +3312,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} check_VDIC_array[30] = check_VDIC_array[30].replace(REGcommentsNL, "\n"); document.vicidial_form.comments.value = check_VDIC_array[30]; document.vicidial_form.called_count.value = check_VDIC_array[31]; + CBentry_time = check_VDIC_array[32]; + CBcallback_time = check_VDIC_array[33]; + CBuser = check_VDIC_array[34]; + CBcomments = check_VDIC_array[35]; lead_dial_number = document.vicidial_form.phone_number.value; document.getElementById("MainStatuSSpan").innerHTML = " Entrante: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + "   " + VDIC_fronter; @@ -3302,6 +3324,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { document.getElementById("CusTInfOSpaN").innerHTML = " PREVIOUS CHAMADABACK "; document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor; + document.getElementById("CBcommentsBoxA").innerHTML = "Último Call: " + CBentry_time; + document.getElementById("CBcommentsBoxB").innerHTML = "CallBack: " + CBcallback_time; + document.getElementById("CBcommentsBoxC").innerHTML = "Agent: " + CBuser; + document.getElementById("CBcommentsBoxD").innerHTML = "Comentários:
" + CBcomments; + showDiv('CBcommentsBox'); } if (VDIC_data_VDIG[1].length > 0) @@ -4045,6 +4072,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DispoSelectMaxMin").innerHTML = "minimize"; document.getElementById("DispoSelectHAspan").innerHTML = "Hangup Outra vez"; + CBcommentsBoxhide(); + AgentDispoing = 0; if (wrapup_waiting == 0) @@ -4553,6 +4582,22 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } +// ################################################################################ +// Hide the CBcommentsBox span upon click + function CBcommentsBoxhide() + { + CBentry_time = ''; + CBcallback_time = ''; + CBuser = ''; + CBcomments = ''; + document.getElementById("CBcommentsBoxA").innerHTML = ""; + document.getElementById("CBcommentsBoxB").innerHTML = ""; + document.getElementById("CBcommentsBoxC").innerHTML = ""; + document.getElementById("CBcommentsBoxD").innerHTML = ""; + hideDiv('CBcommentsBox'); + } + + // ################################################################################ // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) @@ -4638,6 +4683,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (VICIDiaL_closer_login_checked==0) { hideDiv('NothingBox'); + hideDiv('CBcommentsBox'); hideDiv('HotKeyActionBox'); hideDiv('HotKeyEntriesBox'); hideDiv('MainXfeRBox'); @@ -5237,7 +5283,7 @@ echo "\n"; X RECHAMADAS ATIVAS
- +
RECHAMADAS PARA O AGENTE :
Estale sobre uma rechamada abaixo para chamar agora a parte traseira do cliente. Se você estalar sobre um registro abaixo para o chamar, estará removido da lista.
@@ -5248,7 +5294,7 @@ echo "\n";
- + \n";echo "\n";?>
LIGAÇÃO MANUAL NOVA DO SELETOR PARA :

Incorpore a informação abaixo para a ligação que nova você deseja se chamar.

Calls Dialing: + + + + + + + + +
Previous Callback Information: close
+
+
+
+
+ +
+
+ + "; + echo ""; + echo ""; + } +echo "
Noone está em sua sessão:
Vá Para trás

@@ -5352,7 +5415,7 @@ Seu Status:
Calls Dialing: + \r\n"; #print " \r\n"; } - } else if (!eregi(".csv", $leadfile_name)) { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); - passthru("$WeBServeRRooT/vicidial/listloader_rowdisplay.pl"); - } else { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.csv", "r"); - $stmt_file=fopen("listloader_stmts.txt", "w"); + } + else if (!eregi(".csv", $leadfile_name)) + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.xls"); + $lead_file = "/tmp/vicidial_temp_file.xls"; + } + + # echo "|$WeBServeRRooT/vicidial/listloader_rowdisplay.pl --lead-file=$lead_file|"; + passthru("$WeBServeRRooT/vicidial/listloader_rowdisplay.pl --lead-file=$lead_file"); + } + else + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.csv"); + $lead_file = "/tmp/vicidial_temp_file.csv"; + } + $file=fopen("$lead_file", "r"); + + if ($WeBRooTWritablE > 0) + {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} print "
ΕπεξεργασίαCSV file... \n"; @@ -895,6 +979,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { } } print "
\r\n"; + print " \r\n"; print " \r\n"; print " \r\n"; print " \r\n"; diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/AST_CLOSERstats.php b/agc_2-X/trunk/LANG_www/vicidial_en/AST_CLOSERstats.php index b7a7bb8c..c5990727 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/AST_CLOSERstats.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/AST_CLOSERstats.php @@ -7,6 +7,7 @@ # # 60619-1714 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 60905-1326 - Added queue time stats # require("dbconnect.php"); @@ -117,7 +118,7 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Total Calls placed from this Campaign: $TOTALcalls\n"; -echo "Average Call Length for all Calls in seconds: $average_hold_seconds\n"; +echo "Average Call Length for all Calls: $average_hold_seconds seconds\n"; echo "\n"; echo "---------- DROPS\n"; @@ -136,7 +137,31 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Total DROP Calls: $DROPcalls $DROPpercent%\n"; -echo "Average Length for DROP Calls in seconds: $average_hold_seconds\n"; +echo "Average hold time for DROP Calls: $average_hold_seconds seconds\n"; + +echo "\n"; +echo "---------- QUEUE STATS\n"; + +$stmt="select count(*),sum(queue_seconds) from vicidial_closer_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and (queue_seconds > 0);"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); + +$QUEUEcalls = sprintf("%10s", $row[0]); +$QUEUEpercent = (($QUEUEcalls / $TOTALcalls) * 100); +$QUEUEpercent = round($QUEUEpercent, 0); + +$average_queue_seconds = ($row[1] / $row[0]); +$average_queue_seconds = round($average_queue_seconds, 2); +$average_queue_seconds = sprintf("%10.2f", $average_queue_seconds); + +$average_total_queue_seconds = ($row[1] / $TOTALcalls); +$average_total_queue_seconds = round($average_total_queue_seconds, 2); +$average_total_queue_seconds = sprintf("%10.2f", $average_total_queue_seconds); + +echo "Total Calls That entered Queue: $QUEUEcalls $QUEUEpercent%\n"; +echo "Average QUEUE Length for queue calls: $average_queue_seconds seconds\n"; +echo "Average QUEUE Length across all calls: $average_total_queue_seconds seconds\n"; ############################## diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD.php b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD.php index 52efd9cc..9675f284 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD.php @@ -114,7 +114,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]=' - WAITING - '; $row[6]=$row[7]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $channel = sprintf("%-10s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD_closer.php b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD_closer.php index f8ba16b0..23eb851e 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD_closer.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDAD_closer.php @@ -132,7 +132,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- WAIT -'; $row[6]=$row[7]; } - $extension[$i] = sprintf("%-10s", $row[0]); + $extension[$i] = eregi_replace('Local/',"",$row[0]); + $extension[$i] = sprintf("%-10s", $extension[$i]); + while(strlen($extension[$i])>10) {$extension[$i] = substr("$extension[$i]", 0, -1);} $user[$i] = sprintf("%-6s", $row[1]); $sessionid[$i] = sprintf("%-9s", $row[2]); $channel[$i] = sprintf("%-19s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall.php b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall.php index 4cf25f00..db02c9b6 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall.php @@ -14,6 +14,8 @@ # 60619-1658 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 60626-1453 - Added display of system load to bottom (Angelito Manansala) +# 60901-1123 - Changed display elements at the top of the screen +# 60905-1342 - Fixed non INCALL|QUEUE timer column # header ("Content-type: text/html; charset=utf-8"); @@ -23,20 +25,22 @@ require("dbconnect.php"); $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; -if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} - elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} +if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} + elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} if (isset($_GET["reset_counter"])) {$reset_counter=$_GET["reset_counter"];} elseif (isset($_POST["reset_counter"])) {$reset_counter=$_POST["reset_counter"];} -if (isset($_GET["RR"])) {$RR=$_GET["RR"];} +if (isset($_GET["RR"])) {$RR=$_GET["RR"];} elseif (isset($_POST["RR"])) {$RR=$_POST["RR"];} if (isset($_GET["group"])) {$group=$_GET["group"];} elseif (isset($_POST["group"])) {$group=$_POST["group"];} -if (isset($_GET["DB"])) {$DB=$_GET["DB"];} +if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +if (isset($_GET["adastats"])) {$adastats=$_GET["adastats"];} + elseif (isset($_POST["adastats"])) {$adastats=$_POST["adastats"];} if (isset($_GET["submit"])) {$submit=$_GET["submit"];} - elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} - elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} + elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} if (!isset($group)) {$group='';} @@ -156,12 +160,13 @@ if ($reset_counter > 7) \n"; -echo"\n"; +echo"\n"; echo "VICIDIAL: Time On VDAD Campaign: $group\n"; echo "
\n"; echo "VICIDIAL: Realtime Campaign: \n"; echo "\n"; echo "\n"; +echo "\n"; echo "\n"; } echo "\n"; echo "         \n"; -echo "STOP | GO"; +echo "STOP | GO"; echo "         MODIFY | REPORTS \n"; echo "\n\n"; @@ -180,18 +185,27 @@ echo "\n\n"; if (!$group) {echo "

please select a campaign from the pulldown above\n"; exit;} else { -$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method,adaptive_maximum_level,adaptive_dropped_percentage,adaptive_dl_diff_target,adaptive_intensity,available_only_ratio_tally,adaptive_latest_server_time,local_call_time,dial_timeout from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); -$HOPlev = $row[8]; -$DIALmethod = $row[9]; - -echo "
O cliente pendurou acima:
Vá Para trás

@@ -5361,7 +5424,7 @@ Seu Status:
Calls Dialing: + "; + echo ""; + echo ""; + } +echo "
Chamada Wrapup: segundos restantes no wrapup



@@ -5370,23 +5433,23 @@ Seu Status:
Calls Dialing: +

LOGOUT
- +
- +
 
- +
Todas as mudanças feitas ao cliente que a informação abaixo neste tempo não será comitted, você devem mudar a informação do cliente antes de você hangup a chamada.
- + \r\n"; #print " \r\n"; } - } else if (!eregi(".csv", $leadfile_name)) { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); - passthru("$WeBServeRRooT/vicidial/listloader_rowdisplay.pl"); - } else { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.csv", "r"); - $stmt_file=fopen("listloader_stmts.txt", "w"); + } + else if (!eregi(".csv", $leadfile_name)) + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.xls"); + $lead_file = "/tmp/vicidial_temp_file.xls"; + } + + # echo "|$WeBServeRRooT/vicidial/listloader_rowdisplay.pl --lead-file=$lead_file|"; + passthru("$WeBServeRRooT/vicidial/listloader_rowdisplay.pl --lead-file=$lead_file"); + } + else + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.csv"); + $lead_file = "/tmp/vicidial_temp_file.csv"; + } + $file=fopen("$lead_file", "r"); + + if ($WeBRooTWritablE > 0) + {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} print "
VerarbeitungCSV file... \n"; @@ -895,6 +979,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { } } print "
\r\n"; + print " \r\n"; print " \r\n"; print " \r\n"; print " \r\n"; diff --git a/agc_2-X/trunk/LANG_www/vicidial_el/AST_CLOSERstats.php b/agc_2-X/trunk/LANG_www/vicidial_el/AST_CLOSERstats.php index b8f2479e..78f60b65 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_el/AST_CLOSERstats.php +++ b/agc_2-X/trunk/LANG_www/vicidial_el/AST_CLOSERstats.php @@ -7,6 +7,7 @@ # # 60619-1714 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 60905-1326 - Added queue time stats # require("dbconnect.php"); @@ -117,7 +118,7 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Συνολικά κλήσεις που τοποθετήθηκαν από την Εκστρατεία: $TOTALcalls\n"; -echo "Μέσος όρος σε δευτερόλεπτα για όλες τις κλήσεις: $average_hold_seconds\n"; +echo "Average Call Length for all Calls: $average_hold_seconds seconds\n"; echo "\n"; echo "---------- ΕΓΚΑΤΑΛ\n"; @@ -136,7 +137,31 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Συνολικά ΕΓΚΑΤΑΛΕΙΜΕΝΕΣ κλήσεις: $DROPcalls $DROPpercent%\n"; -echo "Μέσος όρος σε δευτερόλεπτα για ΕΓΚΑΤΑΕΙΜΕΝΕΣ κλήσεις: $average_hold_seconds\n"; +echo "Average hold time for DROP Calls: $average_hold_seconds seconds\n"; + +echo "\n"; +echo "---------- QUEUE STATS\n"; + +$stmt="select count(*),sum(queue_seconds) from vicidial_closer_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and (queue_seconds > 0);"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); + +$QUEUEcalls = sprintf("%10s", $row[0]); +$QUEUEpercent = (($QUEUEcalls / $TOTALcalls) * 100); +$QUEUEpercent = round($QUEUEpercent, 0); + +$average_queue_seconds = ($row[1] / $row[0]); +$average_queue_seconds = round($average_queue_seconds, 2); +$average_queue_seconds = sprintf("%10.2f", $average_queue_seconds); + +$average_total_queue_seconds = ($row[1] / $TOTALcalls); +$average_total_queue_seconds = round($average_total_queue_seconds, 2); +$average_total_queue_seconds = sprintf("%10.2f", $average_total_queue_seconds); + +echo "Total Calls That entered Queue: $QUEUEcalls $QUEUEpercent%\n"; +echo "Average QUEUE Length for queue calls: $average_queue_seconds seconds\n"; +echo "Average QUEUE Length across all calls: $average_total_queue_seconds seconds\n"; ############################## diff --git a/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD.php b/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD.php index 6414148b..45611e41 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD.php +++ b/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD.php @@ -114,7 +114,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- ΑΝΑΜΟΝΗ -'; $row[6]=$row[7]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $channel = sprintf("%-10s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD_closer.php b/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD_closer.php index c1cefdca..3bd92216 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD_closer.php +++ b/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDAD_closer.php @@ -132,7 +132,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- WAIT -'; $row[6]=$row[7]; } - $extension[$i] = sprintf("%-10s", $row[0]); + $extension[$i] = eregi_replace('Local/',"",$row[0]); + $extension[$i] = sprintf("%-10s", $extension[$i]); + while(strlen($extension[$i])>10) {$extension[$i] = substr("$extension[$i]", 0, -1);} $user[$i] = sprintf("%-6s", $row[1]); $sessionid[$i] = sprintf("%-9s", $row[2]); $channel[$i] = sprintf("%-19s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDADall.php b/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDADall.php index 1608a95a..e571df23 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDADall.php +++ b/agc_2-X/trunk/LANG_www/vicidial_el/AST_timeonVDADall.php @@ -14,6 +14,8 @@ # 60619-1658 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 60626-1453 - Added display of system load to bottom (Angelito Manansala) +# 60901-1123 - Changed display elements at the top of the screen +# 60905-1342 - Fixed non INCALL|QUEUE timer column # header ("Content-type: text/html; charset=utf-8"); @@ -23,20 +25,22 @@ require("dbconnect.php"); $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; -if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} - elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} +if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} + elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} if (isset($_GET["reset_counter"])) {$reset_counter=$_GET["reset_counter"];} elseif (isset($_POST["reset_counter"])) {$reset_counter=$_POST["reset_counter"];} -if (isset($_GET["RR"])) {$RR=$_GET["RR"];} +if (isset($_GET["RR"])) {$RR=$_GET["RR"];} elseif (isset($_POST["RR"])) {$RR=$_POST["RR"];} if (isset($_GET["group"])) {$group=$_GET["group"];} elseif (isset($_POST["group"])) {$group=$_POST["group"];} -if (isset($_GET["DB"])) {$DB=$_GET["DB"];} +if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +if (isset($_GET["adastats"])) {$adastats=$_GET["adastats"];} + elseif (isset($_POST["adastats"])) {$adastats=$_POST["adastats"];} if (isset($_GET["submit"])) {$submit=$_GET["submit"];} - elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} if (isset($_GET["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_GET["ΕΠΙΒΕΒΑΙΩΣΗ"];} - elseif (isset($_POST["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_POST["ΕΠΙΒΕΒΑΙΩΣΗ"];} + elseif (isset($_POST["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_POST["ΕΠΙΒΕΒΑΙΩΣΗ"];} if (!isset($group)) {$group='';} @@ -156,12 +160,13 @@ if ($reset_counter > 7) \n"; -echo"\n"; +echo"\n"; echo "VICIDIAL: Time On VDAD Εκστρατεία: $group\n"; echo "\n"; echo "VICIDIAL: Realtime Εκστρατεία: \n"; echo "\n"; echo "\n"; +echo "\n"; echo "\n"; } echo "\n"; echo "         \n"; -echo "STOP | GO"; +echo "STOP | GO"; echo "         ΤΡΟΠΟΠΟΙΗΣΗ | ΑΝΑΦΟΡΕΣ \n"; echo "\n\n"; @@ -180,18 +185,27 @@ echo "\n\n"; if (!$group) {echo "

please select a campaign from the pulldown above\n"; exit;} else { -$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method,adaptive_maximum_level,adaptive_dropped_percentage,adaptive_dl_diff_target,adaptive_intensity,available_only_ratio_tally,adaptive_latest_server_time,local_call_time,dial_timeout from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); -$HOPlev = $row[8]; -$DIALmethod = $row[9]; - -echo "
CHAMADA DA DISPOSIÇÃO :       Hangup Outra vez       minimize
Extremidade-$$$-CHAME A Seleção Da Disposição
@@ -5400,7 +5463,7 @@ Seu Status:
Calls Dialing: + "; + echo ""; + echo ""; + } +echo "
Selecione uma data da rechamada :
@@ -5443,7 +5506,7 @@ Seu Status:
Calls Dialing: + \n"; echo ""; + echo ""; + echo ""; + } +echo "
SELEÇÃO DE GRUPO INBOUND MAIS PRÓXIMA
Seleção De Grupo Inbound Mais próxima
@@ -5454,7 +5517,7 @@ Seu Status:
Calls Dialing: + Canaleta Canaleta diff --git a/agc_2-X/trunk/LANG_www/astguiclient_en/admin.php b/agc_2-X/trunk/LANG_www/astguiclient_en/admin.php index 74b6b0e1..2b4bc4cc 100644 --- a/agc_2-X/trunk/LANG_www/astguiclient_en/admin.php +++ b/agc_2-X/trunk/LANG_www/astguiclient_en/admin.php @@ -434,7 +434,7 @@ $browser = getenv("HTTP_USER_AGENT"); header ("Content-type: text/html; charset=utf-8"); $NWB = "   \"HELP\""; +$NWE = "')\">\"HELP\""; ###################### # ADD=99999 display the HELP SCREENS ###################### diff --git a/agc_2-X/trunk/LANG_www/astguiclient_en/phone_stats.php b/agc_2-X/trunk/LANG_www/astguiclient_en/phone_stats.php index e1ff62d0..8498746a 100644 --- a/agc_2-X/trunk/LANG_www/astguiclient_en/phone_stats.php +++ b/agc_2-X/trunk/LANG_www/astguiclient_en/phone_stats.php @@ -121,7 +121,7 @@ echo "
\n"; - $stmt="SELECT count(*),channel_group, sum(length_in_sec) from call_log where extension='" . mysql_real_escape_string($extension) . "' and server_ip='" . mysql_real_escape_string($server_ip) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' group by channel_group order by channel_group"; + $stmt="SELECT count(*),channel_group, sum(length_in_sec) from call_log where extension='$extension' and server_ip='$server_ip' and start_time >= '$begin_date 0:00:01' and start_time <= '$end_date 23:59:59' group by channel_group order by channel_group"; $rslt=mysql_query($stmt, $link); $statuses_to_print = mysql_num_rows($rslt); # echo "|$stmt|\n"; @@ -160,7 +160,7 @@ echo "
CHANNEL GROUP COUNT $o++; } - $stmt="SELECT sum(length_in_sec) from call_log where extension='" . mysql_real_escape_string($extension) . "' and server_ip='" . mysql_real_escape_string($server_ip) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59'"; + $stmt="SELECT sum(length_in_sec) from call_log where extension='$extension' and server_ip='$server_ip' and start_time >= '$begin_date 0:00:01' and start_time <= '$end_date 23:59:59'"; $rslt=mysql_query($stmt, $link); $counts_to_print = mysql_num_rows($rslt); $row=mysql_fetch_row($rslt); @@ -184,7 +184,7 @@ echo "LAST 1000 CALLS FOR DATE RANGE:\n"; echo "\n"; echo "\n"; - $stmt="SELECT number_dialed,channel_group,start_time,length_in_min from call_log where extension='" . mysql_real_escape_string($extension) . "' and server_ip='" . mysql_real_escape_string($server_ip) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' LIMIT 1000"; + $stmt="SELECT number_dialed,channel_group,start_time,length_in_min from call_log where extension='$extension' and server_ip='$server_ip' and start_time >= '$begin_date 0:00:01' and start_time <= '$end_date 23:59:59' LIMIT 1000"; $rslt=mysql_query($stmt, $link); $events_to_print = mysql_num_rows($rslt); # echo "|$stmt|\n"; diff --git a/agc_2-X/trunk/LANG_www/astguiclient_en/remote_inbound.php b/agc_2-X/trunk/LANG_www/astguiclient_en/remote_inbound.php index 605fe83a..06642677 100644 --- a/agc_2-X/trunk/LANG_www/astguiclient_en/remote_inbound.php +++ b/agc_2-X/trunk/LANG_www/astguiclient_en/remote_inbound.php @@ -4,11 +4,6 @@ ### Copyright (C) 2006 Matt Florell LICENSE: GPLv2 ### # the purpose of this script and webpage is to allow for remote or local users of the system to log in and grab phone calls that are coming inbound into the Asterisk server and being put in the parked_channels table while they hear a soundfile for a limited amount of time before being forwarded on to either a set extension or a voicemail box. This gives remote or local agents a way to grab calls without tying up their phone lines all day. The agent sees the refreshing screen of calls on park and when they want to take one they just click on it, and a small window opens that will allow them to grab the call and/or look up more information on the caller through the callerID that is given(if available) -# -# changes: -# 60620-1343 - Added variable filtering to eliminate SQL injection attack threat -# - Added required user/pass to gain access to this page -# require("dbconnect.php"); @@ -18,8 +13,6 @@ $PHP_SELF=$_SERVER['PHP_SELF']; $submit=$_GET["submit"]; if (!$submit) {$submit=$_POST["submit"];} $SUBMIT=$_GET["SUBMIT"]; if (!$SUBMIT) {$SUBMIT=$_POST["SUBMIT"];} -$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER); -$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW); $STARTtime = date("U"); $TODAY = date("Y-m-d"); diff --git a/agc_2-X/trunk/LANG_www/vicidial/AST_CLOSERstats.php b/agc_2-X/trunk/LANG_www/vicidial/AST_CLOSERstats.php index b7a7bb8c..c5990727 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/AST_CLOSERstats.php +++ b/agc_2-X/trunk/LANG_www/vicidial/AST_CLOSERstats.php @@ -7,6 +7,7 @@ # # 60619-1714 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 60905-1326 - Added queue time stats # require("dbconnect.php"); @@ -117,7 +118,7 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Total Calls placed from this Campaign: $TOTALcalls\n"; -echo "Average Call Length for all Calls in seconds: $average_hold_seconds\n"; +echo "Average Call Length for all Calls: $average_hold_seconds seconds\n"; echo "\n"; echo "---------- DROPS\n"; @@ -136,7 +137,31 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Total DROP Calls: $DROPcalls $DROPpercent%\n"; -echo "Average Length for DROP Calls in seconds: $average_hold_seconds\n"; +echo "Average hold time for DROP Calls: $average_hold_seconds seconds\n"; + +echo "\n"; +echo "---------- QUEUE STATS\n"; + +$stmt="select count(*),sum(queue_seconds) from vicidial_closer_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and (queue_seconds > 0);"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); + +$QUEUEcalls = sprintf("%10s", $row[0]); +$QUEUEpercent = (($QUEUEcalls / $TOTALcalls) * 100); +$QUEUEpercent = round($QUEUEpercent, 0); + +$average_queue_seconds = ($row[1] / $row[0]); +$average_queue_seconds = round($average_queue_seconds, 2); +$average_queue_seconds = sprintf("%10.2f", $average_queue_seconds); + +$average_total_queue_seconds = ($row[1] / $TOTALcalls); +$average_total_queue_seconds = round($average_total_queue_seconds, 2); +$average_total_queue_seconds = sprintf("%10.2f", $average_total_queue_seconds); + +echo "Total Calls That entered Queue: $QUEUEcalls $QUEUEpercent%\n"; +echo "Average QUEUE Length for queue calls: $average_queue_seconds seconds\n"; +echo "Average QUEUE Length across all calls: $average_total_queue_seconds seconds\n"; ############################## diff --git a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD.php b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD.php index 52efd9cc..9675f284 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD.php +++ b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD.php @@ -114,7 +114,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]=' - WAITING - '; $row[6]=$row[7]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $channel = sprintf("%-10s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD_closer.php b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD_closer.php index f8ba16b0..23eb851e 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD_closer.php +++ b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDAD_closer.php @@ -132,7 +132,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- WAIT -'; $row[6]=$row[7]; } - $extension[$i] = sprintf("%-10s", $row[0]); + $extension[$i] = eregi_replace('Local/',"",$row[0]); + $extension[$i] = sprintf("%-10s", $extension[$i]); + while(strlen($extension[$i])>10) {$extension[$i] = substr("$extension[$i]", 0, -1);} $user[$i] = sprintf("%-6s", $row[1]); $sessionid[$i] = sprintf("%-9s", $row[2]); $channel[$i] = sprintf("%-19s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall.php b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall.php index 4cf25f00..db02c9b6 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall.php +++ b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall.php @@ -14,6 +14,8 @@ # 60619-1658 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 60626-1453 - Added display of system load to bottom (Angelito Manansala) +# 60901-1123 - Changed display elements at the top of the screen +# 60905-1342 - Fixed non INCALL|QUEUE timer column # header ("Content-type: text/html; charset=utf-8"); @@ -23,20 +25,22 @@ require("dbconnect.php"); $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; -if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} - elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} +if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} + elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} if (isset($_GET["reset_counter"])) {$reset_counter=$_GET["reset_counter"];} elseif (isset($_POST["reset_counter"])) {$reset_counter=$_POST["reset_counter"];} -if (isset($_GET["RR"])) {$RR=$_GET["RR"];} +if (isset($_GET["RR"])) {$RR=$_GET["RR"];} elseif (isset($_POST["RR"])) {$RR=$_POST["RR"];} if (isset($_GET["group"])) {$group=$_GET["group"];} elseif (isset($_POST["group"])) {$group=$_POST["group"];} -if (isset($_GET["DB"])) {$DB=$_GET["DB"];} +if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +if (isset($_GET["adastats"])) {$adastats=$_GET["adastats"];} + elseif (isset($_POST["adastats"])) {$adastats=$_POST["adastats"];} if (isset($_GET["submit"])) {$submit=$_GET["submit"];} - elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} - elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} + elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} if (!isset($group)) {$group='';} @@ -156,12 +160,13 @@ if ($reset_counter > 7) \n"; -echo"\n"; +echo"\n"; echo "VICIDIAL: Time On VDAD Campaign: $group\n"; echo "
\n"; echo "VICIDIAL: Realtime Campaign: \n"; echo "\n"; echo "\n"; +echo "\n"; echo "\n"; } echo "\n"; echo "         \n"; -echo "STOP | GO"; +echo "STOP | GO"; echo "         MODIFY | REPORTS \n"; echo "\n\n"; @@ -180,18 +185,27 @@ echo "\n\n"; if (!$group) {echo "

please select a campaign from the pulldown above\n"; exit;} else { -$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method,adaptive_maximum_level,adaptive_dropped_percentage,adaptive_dl_diff_target,adaptive_intensity,available_only_ratio_tally,adaptive_latest_server_time,local_call_time,dial_timeout from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); -$HOPlev = $row[8]; -$DIALmethod = $row[9]; - -echo "
NUMBER CHANNEL GROUP DATE LENGTH(MIN.)
"; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; +$DIALlev = $row[0]; +$DIALstatusA = $row[1]; +$DIALstatusB = $row[2]; +$DIALstatusC = $row[3]; +$DIALstatusD = $row[4]; +$DIALstatusE = $row[5]; +$DIALorder = $row[6]; +$DIALfilter = $row[7]; +$HOPlev = $row[8]; +$DIALmethod = $row[9]; +$maxDIALlev = $row[10]; +$DROPmax = $row[11]; +$targetDIFF = $row[12]; +$ADAintense = $row[13]; +$ADAavailonly = $row[14]; +$TAPERtime = $row[15]; +$CALLtime = $row[16]; +$DIALtimeout = $row[17]; $stmt="select count(*) from vicidial_hopper where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); @@ -214,26 +228,59 @@ if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) } else {$diffpctONEMIN = '0.00';} +echo "
DIAL LEVEL:  $row[0]    STATUSES:  $row[1], $row[2], $row[3], $row[4], $row[5]     ORDER:  $row[6]     FILTER:  $row[7]    
"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +if ($adastats>1) + { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; +echo ""; +echo ""; + +echo ""; +echo ""; +echo ""; echo ""; +echo ""; +echo ""; -echo "
DIAL LEVEL:  $DIALlev    FILTER:  $DIALfilter     TIME:   $NOW_TIME
- min   MAX LEVEL:  $maxDIALlev   DROPPED MAX:  $DROPmax%    TARGET DIFF:  $targetDIFF     INTENSITY:  $ADAintense    
DIAL TIMEOUT:  $DIALtimeout  TAPER TIME:  $TAPERtime  LOCAL TIME:  $CALLtime  AVAIL ONLY:  $ADAavailonly  
DIALABLE LEADS:  $DAleads     CALLS TODAY:  $callsTODAY     AVG AGENTS:  $agentsONEMIN     DIAL METHOD:  $DIALmethod    
HOPPER LEVEL:  $HOPlev     LEADS IN HOPPER:  $VDhop     DIALABLE LEADS:  $DAleads       TIME:
CALLS TODAY:  $callsTODAY     CALLS DROPPED:  $dropsTODAY     DROPPED PERCENT:  $drpctTODAY%       $NOW_TIME
DIAL METHOD:  $DIALmethod     DL DIFF:  $diffONEMIN     AVG AGENTS:  $agentsONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
LEADS IN HOPPER:  $VDhop     DROPPED PERCENT:  $drpctTODAY%    DIFF:  $diffpctONEMIN%     ORDER:  $DIALorder    
"; +if ($adastats<2) + { + echo "
+ VIEW MORE SETTINGS
"; echo "\n\n"; } @@ -329,14 +376,19 @@ $talking_to_print = mysql_num_rows($rslt); { $row[5]=$row[6]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $status = sprintf("%-6s", $row[3]); $server_ip = sprintf("%-15s", $row[4]); $call_server_ip = sprintf("%-15s", $row[7]); $campaign_id = sprintf("%-10s", $row[8]); - $call_time_S = ($STARTtime - $row[5]); + if (!eregi("INCALL|QUEUE",$row[3])) + {$call_time_S = ($STARTtime - $row[6]);} + else + {$call_time_S = ($STARTtime - $row[5]);} $call_time_M = ($call_time_S / 60); $call_time_M = round($call_time_M, 2); diff --git a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall_SIPmonitor.php b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall_SIPmonitor.php index 355a6fcd..f0dd56e4 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall_SIPmonitor.php +++ b/agc_2-X/trunk/LANG_www/vicidial/AST_timeonVDADall_SIPmonitor.php @@ -240,7 +240,9 @@ $talking_to_print = mysql_num_rows($rslt); { $row[5]=$row[6]; } - $extension = sprintf("%-10s", $row[0]); + $extension[$i] = eregi_replace('Local/',"",$row[0]); + $extension[$i] = sprintf("%-10s", $extension[$i]); + while(strlen($extension[$i])>10) {$extension[$i] = substr("$extension[$i]", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $status = sprintf("%-6s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial/listloader.php b/agc_2-X/trunk/LANG_www/vicidial/listloader.php index 6f5ec297..9cf8a548 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/listloader.php +++ b/agc_2-X/trunk/LANG_www/vicidial/listloader.php @@ -12,6 +12,7 @@ # 60616-1006 - added listID override and gmt_offset lookup while loading # 60619-1652 - Added variable filtering to eliminate SQL injection attack threat # 60822-1105 - fixed for nonwritable directories +# 60906-1059 - added filter of non-digits in alt_phone field # # 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. # @@ -203,7 +204,7 @@ if ($leadfile and filesize($LF_path)<=8388608) { $country = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); diff --git a/agc_2-X/trunk/LANG_www/vicidial/listloader.pl b/agc_2-X/trunk/LANG_www/vicidial/listloader.pl index 6c5a6dd0..cec67de0 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/listloader.pl +++ b/agc_2-X/trunk/LANG_www/vicidial/listloader.pl @@ -12,6 +12,7 @@ # 60811-1232 - Changed to DBI # 60811-1329 - changed to use /etc/astguiclient.conf for configs # 60822-1121 - fixed for nonwritable directories +# 60906-1058 - added filter of non-digits in alt_phone field # ### begin parsing run-time options ### @@ -205,6 +206,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) { if ($oWkC) {$date_of_birth=$oWkC->Value; } $oWkC = $oWkS->{Cells}[$iR][19]; if ($oWkC) {$alt_phone=$oWkC->Value; } + $alt_phone=~s/[^0-9]//g; $oWkC = $oWkS->{Cells}[$iR][20]; if ($oWkC) {$email=$oWkC->Value; } $oWkC = $oWkS->{Cells}[$iR][21]; diff --git a/agc_2-X/trunk/LANG_www/vicidial/listloader_super.pl b/agc_2-X/trunk/LANG_www/vicidial/listloader_super.pl index 8e41bb39..d2868bf4 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/listloader_super.pl +++ b/agc_2-X/trunk/LANG_www/vicidial/listloader_super.pl @@ -11,6 +11,7 @@ # - Added gmt_offset_now lookup for each lead # 60811-1232 - Changed to DBI # 60811-1329 - changed to use /etc/astguiclient.conf for configs +# 60906-1056 - added filter of non-digits in alt_phone field # ### begin parsing run-time options ### @@ -205,6 +206,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) { if ($oWkC) {$date_of_birth=$oWkC->Value; } $oWkC = $oWkS->{Cells}[$iR][$xls_fields[19]]; if ($oWkC) {$alt_phone=$oWkC->Value; } + $alt_phone=~s/[^0-9]//g; $oWkC = $oWkS->{Cells}[$iR][$xls_fields[20]]; if ($oWkC) {$email=$oWkC->Value; } $oWkC = $oWkS->{Cells}[$iR][$xls_fields[21]]; diff --git a/agc_2-X/trunk/LANG_www/vicidial/new_listloader_superL.php b/agc_2-X/trunk/LANG_www/vicidial/new_listloader_superL.php index b5d149a2..6e4922b0 100644 --- a/agc_2-X/trunk/LANG_www/vicidial/new_listloader_superL.php +++ b/agc_2-X/trunk/LANG_www/vicidial/new_listloader_superL.php @@ -14,11 +14,12 @@ # 60616-1604 - added gmt lookup for each lead # 60619-1651 - Added variable filtering to eliminate SQL injection attack threat # 60822-1121 - fixed for nonwritable directories +# 60906-1100 - added filter of non-digits in alt_phone field # # 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.1'; -$build = '60822-1121'; +$build = '60906-1100'; require("dbconnect.php"); @@ -370,7 +371,7 @@ function ParseFileName() { $country_code = $row[$country_code_field]; $gender = $row[$gender_field]; $date_of_birth = $row[$date_of_birth_field]; - $alt_phone = $row[$alt_phone_field]; + $alt_phone = eregi_replace("[^0-9]", "", $row[$alt_phone_field]); $email = $row[$email_field]; $security_phrase = $row[$security_phrase_field]; $comments = trim($row[$comments_field]); @@ -479,7 +480,7 @@ function ParseFileName() { $country_code = $row[$country_code_field]; $gender = $row[$gender_field]; $date_of_birth = $row[$date_of_birth_field]; - $alt_phone = $row[$alt_phone_field]; + $alt_phone = eregi_replace("[^0-9]", "", $row[$alt_phone_field]); $email = $row[$email_field]; $security_phrase = $row[$security_phrase_field]; $comments = trim($row[$comments_field]); @@ -607,7 +608,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $country_code = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); @@ -732,7 +733,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $country_code = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_de/AST_CLOSERstats.php b/agc_2-X/trunk/LANG_www/vicidial_de/AST_CLOSERstats.php index e96e2319..ac2690fb 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_de/AST_CLOSERstats.php +++ b/agc_2-X/trunk/LANG_www/vicidial_de/AST_CLOSERstats.php @@ -7,6 +7,7 @@ # # 60619-1714 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 60905-1326 - Added queue time stats # require("dbconnect.php"); @@ -117,7 +118,7 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Gesamtanrufe gesetzt von dieser Kampagne: $TOTALcalls\n"; -echo "Durchschnittliche Anruf-Länge für alle benennt in den Sekunden: $average_hold_seconds\n"; +echo "Average Call Length for all Calls: $average_hold_seconds seconds\n"; echo "\n"; echo "---------- DROPS\n"; @@ -136,7 +137,31 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Gesamt-TROPFEN Anrufe: $DROPcalls $DROPpercent%\n"; -echo "Durchschnittliche Länge für TROPFEN Anrufe in den Sekunden: $average_hold_seconds\n"; +echo "Average hold time for DROP Calls: $average_hold_seconds seconds\n"; + +echo "\n"; +echo "---------- QUEUE STATS\n"; + +$stmt="select count(*),sum(queue_seconds) from vicidial_closer_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and (queue_seconds > 0);"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); + +$QUEUEcalls = sprintf("%10s", $row[0]); +$QUEUEpercent = (($QUEUEcalls / $TOTALcalls) * 100); +$QUEUEpercent = round($QUEUEpercent, 0); + +$average_queue_seconds = ($row[1] / $row[0]); +$average_queue_seconds = round($average_queue_seconds, 2); +$average_queue_seconds = sprintf("%10.2f", $average_queue_seconds); + +$average_total_queue_seconds = ($row[1] / $TOTALcalls); +$average_total_queue_seconds = round($average_total_queue_seconds, 2); +$average_total_queue_seconds = sprintf("%10.2f", $average_total_queue_seconds); + +echo "Total Calls That entered Queue: $QUEUEcalls $QUEUEpercent%\n"; +echo "Average QUEUE Length for queue calls: $average_queue_seconds seconds\n"; +echo "Average QUEUE Length across all calls: $average_total_queue_seconds seconds\n"; ############################## diff --git a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD.php b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD.php index cc3fb242..a0ec6aa1 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD.php +++ b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD.php @@ -114,7 +114,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- WARTEND -'; $row[6]=$row[7]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $channel = sprintf("%-10s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD_closer.php b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD_closer.php index 62aceab4..cd820afc 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD_closer.php +++ b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDAD_closer.php @@ -132,7 +132,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- WAIT -'; $row[6]=$row[7]; } - $extension[$i] = sprintf("%-10s", $row[0]); + $extension[$i] = eregi_replace('Local/',"",$row[0]); + $extension[$i] = sprintf("%-10s", $extension[$i]); + while(strlen($extension[$i])>10) {$extension[$i] = substr("$extension[$i]", 0, -1);} $user[$i] = sprintf("%-6s", $row[1]); $sessionid[$i] = sprintf("%-9s", $row[2]); $channel[$i] = sprintf("%-19s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall.php b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall.php index a98a3482..43aa7e1f 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall.php +++ b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall.php @@ -14,6 +14,8 @@ # 60619-1658 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 60626-1453 - Added display of system load to bottom (Angelito Manansala) +# 60901-1123 - Changed display elements at the top of the screen +# 60905-1342 - Fixed non INCALL|QUEUE timer column # header ("Content-type: text/html; charset=utf-8"); @@ -23,20 +25,22 @@ require("dbconnect.php"); $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; -if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} - elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} +if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} + elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} if (isset($_GET["reset_counter"])) {$reset_counter=$_GET["reset_counter"];} elseif (isset($_POST["reset_counter"])) {$reset_counter=$_POST["reset_counter"];} -if (isset($_GET["RR"])) {$RR=$_GET["RR"];} +if (isset($_GET["RR"])) {$RR=$_GET["RR"];} elseif (isset($_POST["RR"])) {$RR=$_POST["RR"];} if (isset($_GET["group"])) {$group=$_GET["group"];} elseif (isset($_POST["group"])) {$group=$_POST["group"];} -if (isset($_GET["DB"])) {$DB=$_GET["DB"];} +if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +if (isset($_GET["adastats"])) {$adastats=$_GET["adastats"];} + elseif (isset($_POST["adastats"])) {$adastats=$_POST["adastats"];} if (isset($_GET["submit"])) {$submit=$_GET["submit"];} - elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} - elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} + elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} if (!isset($group)) {$group='';} @@ -156,12 +160,13 @@ if ($reset_counter > 7) \n"; -echo"\n"; +echo"\n"; echo "VICIDIAL: Time On VDAD Kampagne: $group\n"; echo "
\n"; echo "VICIDIAL: Realtime Kampagne: \n"; echo "\n"; echo "\n"; +echo "\n"; echo "\n"; } echo "\n"; echo "         \n"; -echo "STOP | GO"; +echo "STOP | GO"; echo "         ÄNDERN Sie | REPORTS \n"; echo "\n\n"; @@ -180,18 +185,27 @@ echo "\n\n"; if (!$group) {echo "

please select a campaign from the pulldown above
\n"; exit;} else { -$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method,adaptive_maximum_level,adaptive_dropped_percentage,adaptive_dl_diff_target,adaptive_intensity,available_only_ratio_tally,adaptive_latest_server_time,local_call_time,dial_timeout from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); -$HOPlev = $row[8]; -$DIALmethod = $row[9]; - -echo "
"; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; +$DIALlev = $row[0]; +$DIALstatusA = $row[1]; +$DIALstatusB = $row[2]; +$DIALstatusC = $row[3]; +$DIALstatusD = $row[4]; +$DIALstatusE = $row[5]; +$DIALorder = $row[6]; +$DIALfilter = $row[7]; +$HOPlev = $row[8]; +$DIALmethod = $row[9]; +$maxDIALlev = $row[10]; +$DROPmax = $row[11]; +$targetDIFF = $row[12]; +$ADAintense = $row[13]; +$ADAavailonly = $row[14]; +$TAPERtime = $row[15]; +$CALLtime = $row[16]; +$DIALtimeout = $row[17]; $stmt="select count(*) from vicidial_hopper where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); @@ -214,26 +228,59 @@ if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) } else {$diffpctONEMIN = '0.00';} +echo "
DIAL LEVEL:  $row[0]    STATUSES:  $row[1], $row[2], $row[3], $row[4], $row[5]     ORDER:  $row[6]     FILTER:  $row[7]    
"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +if ($adastats>1) + { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; +echo ""; +echo ""; + +echo ""; +echo ""; +echo ""; echo ""; +echo ""; +echo ""; -echo "
DIAL LEVEL:  $DIALlev    FILTER:  $DIALfilter     TIME:   $NOW_TIME
- min   MAX LEVEL:  $maxDIALlev   DROPPED MAX:  $DROPmax%    TARGET DIFF:  $targetDIFF     INTENSITY:  $ADAintense    
DIAL TIMEOUT:  $DIALtimeout  TAPER TIME:  $TAPERtime  LOCAL TIME:  $CALLtime  AVAIL ONLY:  $ADAavailonly  
DIALABLE LEADS:  $DAleads     CALLS TODAY:  $callsTODAY     AVG AGENTS:  $agentsONEMIN     DIAL METHOD:  $DIALmethod    
HOPPER LEVEL:  $HOPlev     LEADS IN HOPPER:  $VDhop     DIALABLE LEADS:  $DAleads       TIME:
CALLS TODAY:  $callsTODAY     CALLS DROPPED:  $dropsTODAY     DROPPED PERCENT:  $drpctTODAY%       $NOW_TIME
DIAL METHOD:  $DIALmethod     DL DIFF:  $diffONEMIN     AVG AGENTS:  $agentsONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
LEADS IN HOPPER:  $VDhop     DROPPED PERCENT:  $drpctTODAY%    DIFF:  $diffpctONEMIN%     ORDER:  $DIALorder    
"; +if ($adastats<2) + { + echo "
+ VIEW MORE SETTINGS
"; echo "\n\n"; } @@ -329,14 +376,19 @@ $talking_to_print = mysql_num_rows($rslt); { $row[5]=$row[6]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $status = sprintf("%-6s", $row[3]); $server_ip = sprintf("%-15s", $row[4]); $call_server_ip = sprintf("%-15s", $row[7]); $campaign_id = sprintf("%-10s", $row[8]); - $call_time_S = ($STARTtime - $row[5]); + if (!eregi("INCALL|QUEUE",$row[3])) + {$call_time_S = ($STARTtime - $row[6]);} + else + {$call_time_S = ($STARTtime - $row[5]);} $call_time_M = ($call_time_S / 60); $call_time_M = round($call_time_M, 2); diff --git a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall_SIPmonitor.php b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall_SIPmonitor.php index d5d80df2..597cb779 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall_SIPmonitor.php +++ b/agc_2-X/trunk/LANG_www/vicidial_de/AST_timeonVDADall_SIPmonitor.php @@ -16,6 +16,8 @@ # - Added extended pause (exceeding 60 seconds -> 20 minutes) (Magma Networks LLC) # - Added Full Name Field to extract from Database (Magma Networks LLC) # - Added Barge Link (Magma Networks LLC) +# 60731-1138 - fixed fullname formatting + header ("Content-type: text/html; charset=utf-8"); require("dbconnect.php"); @@ -104,9 +106,9 @@ if ($reset_counter > 7) \n"; echo"\n"; -echo "VF DIALER: Time On VDAD Kampagne: $group\n"; +echo "VICIDIAL: Time On VDAD Kampagne: $group\n"; echo "
\n"; -echo "VF DIALER: Realtime Kampagne: \n"; +echo "VICIDIAL: Realtime Kampagne: \n"; echo "\n"; echo "\n"; echo "
        
"; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; +$DIALlev = $row[0]; +$DIALstatusA = $row[1]; +$DIALstatusB = $row[2]; +$DIALstatusC = $row[3]; +$DIALstatusD = $row[4]; +$DIALstatusE = $row[5]; +$DIALorder = $row[6]; +$DIALfilter = $row[7]; +$HOPlev = $row[8]; +$DIALmethod = $row[9]; +$maxDIALlev = $row[10]; +$DROPmax = $row[11]; +$targetDIFF = $row[12]; +$ADAintense = $row[13]; +$ADAavailonly = $row[14]; +$TAPERtime = $row[15]; +$CALLtime = $row[16]; +$DIALtimeout = $row[17]; $stmt="select count(*) from vicidial_hopper where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); @@ -214,26 +228,59 @@ if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) } else {$diffpctONEMIN = '0.00';} +echo "
DIAL LEVEL:  $row[0]    STATUSES:  $row[1], $row[2], $row[3], $row[4], $row[5]     ORDER:  $row[6]     FILTER:  $row[7]    
"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +if ($adastats>1) + { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; +echo ""; +echo ""; + +echo ""; +echo ""; +echo ""; echo ""; +echo ""; +echo ""; -echo "
DIAL LEVEL:  $DIALlev    FILTER:  $DIALfilter     TIME:   $NOW_TIME
- min   MAX LEVEL:  $maxDIALlev   DROPPED MAX:  $DROPmax%    TARGET DIFF:  $targetDIFF     INTENSITY:  $ADAintense    
DIAL TIMEOUT:  $DIALtimeout  TAPER TIME:  $TAPERtime  LOCAL TIME:  $CALLtime  AVAIL ONLY:  $ADAavailonly  
DIALABLE LEADS:  $DAleads     CALLS TODAY:  $callsTODAY     AVG AGENTS:  $agentsONEMIN     DIAL METHOD:  $DIALmethod    
HOPPER LEVEL:  $HOPlev     LEADS IN HOPPER:  $VDhop     DIALABLE LEADS:  $DAleads       TIME:
CALLS TODAY:  $callsTODAY     CALLS DROPPED:  $dropsTODAY     DROPPED PERCENT:  $drpctTODAY%       $NOW_TIME
DIAL METHOD:  $DIALmethod     DL DIFF:  $diffONEMIN     AVG AGENTS:  $agentsONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
LEADS IN HOPPER:  $VDhop     DROPPED PERCENT:  $drpctTODAY%    DIFF:  $diffpctONEMIN%     ORDER:  $DIALorder    
"; +if ($adastats<2) + { + echo "
+ VIEW MORE SETTINGS
"; echo "\n\n"; } @@ -329,14 +376,19 @@ $talking_to_print = mysql_num_rows($rslt); { $row[5]=$row[6]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $status = sprintf("%-6s", $row[3]); $server_ip = sprintf("%-15s", $row[4]); $call_server_ip = sprintf("%-15s", $row[7]); $campaign_id = sprintf("%-10s", $row[8]); - $call_time_S = ($STARTtime - $row[5]); + if (!eregi("INCALL|QUEUE",$row[3])) + {$call_time_S = ($STARTtime - $row[6]);} + else + {$call_time_S = ($STARTtime - $row[5]);} $call_time_M = ($call_time_S / 60); $call_time_M = round($call_time_M, 2); diff --git a/agc_2-X/trunk/LANG_www/vicidial_el/listloader.php b/agc_2-X/trunk/LANG_www/vicidial_el/listloader.php index 2005942c..59c6dd04 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_el/listloader.php +++ b/agc_2-X/trunk/LANG_www/vicidial_el/listloader.php @@ -11,12 +11,14 @@ # 60421-1043 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60616-1006 - added listID override and gmt_offset lookup while loading # 60619-1652 - Added variable filtering to eliminate SQL injection attack threat +# 60822-1105 - fixed for nonwritable directories +# 60906-1059 - added filter of non-digits in alt_phone field # # 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 = '1.1.12'; -$build = '60619-1652'; +$version = '2.0.1'; +$build = '60822-1105'; header ("Content-type: text/html; charset=utf-8"); @@ -142,8 +144,16 @@ function ShowProgress(good, bad, total) { if ($leadfile and filesize($LF_path)<=8388608) { print ""; flush(); - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.txt"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.txt", "r"); + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.txt"); + $lead_file = "./vicidial_temp_file.txt"; + } + else + { + $lead_file = "$LF_path"; + } + $file=fopen("$lead_file", "r"); if ($WeBRooTWritablE > 0) {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} $pulldate=date("Y-m-d H:i:s"); @@ -157,7 +167,7 @@ if ($leadfile and filesize($LF_path)<=8388608) { if (count($field_check)>=5) { flush(); - $file=fopen("./vicidial_temp_file.txt", "r"); + $file=fopen("$lead_file", "r"); $total=0; $good=0; $bad=0; print "
Επεξεργασία$delim_name-delimited file... ($tab_count|$pipe_count)\n"; @@ -194,12 +204,12 @@ if ($leadfile and filesize($LF_path)<=8388608) { $country = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); - if (strlen($phone_number)>8) + if (strlen($phone_number)>6) { $entry_date = "$pulldate"; $modify_date = ""; diff --git a/agc_2-X/trunk/LANG_www/vicidial_el/new_listloader_superL.php b/agc_2-X/trunk/LANG_www/vicidial_el/new_listloader_superL.php index 4796e269..0780dcf8 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_el/new_listloader_superL.php +++ b/agc_2-X/trunk/LANG_www/vicidial_el/new_listloader_superL.php @@ -13,11 +13,13 @@ # 60616-1240 - added listID override # 60616-1604 - added gmt lookup for each lead # 60619-1651 - Added variable filtering to eliminate SQL injection attack threat +# 60822-1121 - fixed for nonwritable directories +# 60906-1100 - added filter of non-digits in alt_phone field # # 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 = '1.1.12-1'; -$build = '60619-1651'; +$version = '2.0.1'; +$build = '60906-1100'; require("dbconnect.php"); @@ -94,6 +96,8 @@ if (isset($_GET["comments_field"])) {$comments_field=$_GET["comments_field"]; if (isset($_GET["list_id_override"])) {$list_id_override=$_GET["list_id_override"];} elseif (isset($_POST["list_id_override"])) {$list_id_override=$_POST["list_id_override"];} $list_id_override = (preg_replace("/\D/","",$list_id_override)); +if (isset($_GET["lead_file"])) {$lead_file=$_GET["lead_file"];} + elseif (isset($_POST["lead_file"])) {$lead_file=$_POST["lead_file"];} # $country_field=$_GET["country_field"]; if (!$country_field) {$country_field=$_POST["country_field"];} @@ -114,7 +118,7 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $auth=$row[0]; -$fp = fopen ("./project_auth_entries.txt", "a"); +if ($WeBRooTWritablE > 0) {$fp = fopen ("./project_auth_entries.txt", "a");} $date = date("r"); $ip = getenv("REMOTE_ADDR"); $browser = getenv("HTTP_USER_AGENT"); @@ -143,13 +147,19 @@ $browser = getenv("HTTP_USER_AGENT"); echo "You do not have permissions to load leads\n"; exit; } - fwrite ($fp, "LIST_LOAD|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n"); - fclose($fp); + if ($WeBRooTWritablE > 0) + { + fwrite ($fp, "LIST_LOAD|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n"); + fclose($fp); + } } else { - fwrite ($fp, "LIST_LOAD|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n"); - fclose($fp); + if ($WeBRooTWritablE > 0) + { + fwrite ($fp, "LIST_LOAD|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n"); + fclose($fp); + } } } @@ -303,9 +313,11 @@ function ParseFileName() { if (!eregi(".csv", $leadfile_name) && !eregi(".xls", $leadfile_name)) { # copy($leadfile, "./vicidial_temp_file.txt"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.txt", "r"); - $stmt_file=fopen("listloader_stmts.txt", "w"); - + $file=fopen("$lead_file", "r"); + if ($WeBRooTWritablE > 0) + { + $stmt_file=fopen("listloader_stmts.txt", "w"); + } $buffer=fgets($file, 4096); $tab_count=substr_count($buffer, "\t"); $pipe_count=substr_count($buffer, "|"); @@ -315,7 +327,7 @@ function ParseFileName() { if (count($field_check)>=5) { flush(); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.txt", "r"); + $file=fopen("$lead_file", "r"); print "
Επεξεργασία$delim_name-delimited file...\n"; if (strlen($list_id_override)>0) @@ -359,12 +371,12 @@ function ParseFileName() { $country_code = $row[$country_code_field]; $gender = $row[$gender_field]; $date_of_birth = $row[$date_of_birth_field]; - $alt_phone = $row[$alt_phone_field]; + $alt_phone = eregi_replace("[^0-9]", "", $row[$alt_phone_field]); $email = $row[$email_field]; $security_phrase = $row[$security_phrase_field]; $comments = trim($row[$comments_field]); - if (strlen($phone_number)>8) { + if (strlen($phone_number)>6) { if (strlen($list_id_override)>0) @@ -416,19 +428,21 @@ function ParseFileName() { } } else if (!eregi(".csv", $leadfile_name)) { # copy($leadfile, "./vicidial_temp_file.xls"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.xls", "r"); + $file=fopen("$lead_file", "r"); print "
ΕπεξεργασίαExcel file... \n"; if (strlen($list_id_override)>0) { print "

ID ΛΙΣΤΑΣ OVERRIDE FOR THIS FILE: $list_id_override

\n"; } - # print "$WeBServeRRooT/vicidial/listloader_super.pl $vendor_lead_code_field,$source_id_field,$list_id_field,$phone_code_field,$phone_number_field,$title_field,$first_name_field,$middle_initial_field,$last_name_field,$address1_field,$address2_field,$address3_field,$city_field,$state_field,$province_field,$postal_code_field,$country_code_field,$gender_field,$date_of_birth_field,$alt_phone_field,$email_field,$security_phrase_field,$comments_field"; - passthru("$WeBServeRRooT/vicidial/listloader_super.pl $vendor_lead_code_field,$source_id_field,$list_id_field,$phone_code_field,$phone_number_field,$title_field,$first_name_field,$middle_initial_field,$last_name_field,$address1_field,$address2_field,$address3_field,$city_field,$state_field,$province_field,$postal_code_field,$country_code_field,$gender_field,$date_of_birth_field,$alt_phone_field,$email_field,$security_phrase_field,$comments_field, --forcelistid=$list_id_override"); + # print "|$WeBServeRRooT/vicidial/listloader_super.pl $vendor_lead_code_field,$source_id_field,$list_id_field,$phone_code_field,$phone_number_field,$title_field,$first_name_field,$middle_initial_field,$last_name_field,$address1_field,$address2_field,$address3_field,$city_field,$state_field,$province_field,$postal_code_field,$country_code_field,$gender_field,$date_of_birth_field,$alt_phone_field,$email_field,$security_phrase_field,$comments_field, --forcelistid=$list_id_override --lead_file=$lead_file|"; + passthru("$WeBServeRRooT/vicidial/listloader_super.pl $vendor_lead_code_field,$source_id_field,$list_id_field,$phone_code_field,$phone_number_field,$title_field,$first_name_field,$middle_initial_field,$last_name_field,$address1_field,$address2_field,$address3_field,$city_field,$state_field,$province_field,$postal_code_field,$country_code_field,$gender_field,$date_of_birth_field,$alt_phone_field,$email_field,$security_phrase_field,$comments_field, --forcelistid=$list_id_override --lead-file=$lead_file"); } else { # copy($leadfile, "./vicidial_temp_file.csv"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.csv", "r"); - $stmt_file=fopen("listloader_stmts.txt", "w"); + $file=fopen("$lead_file", "r"); + + if ($WeBRooTWritablE > 0) + {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} print "
ΕπεξεργασίαCSV file... \n"; if (strlen($list_id_override)>0) @@ -466,12 +480,12 @@ function ParseFileName() { $country_code = $row[$country_code_field]; $gender = $row[$gender_field]; $date_of_birth = $row[$date_of_birth_field]; - $alt_phone = $row[$alt_phone_field]; + $alt_phone = eregi_replace("[^0-9]", "", $row[$alt_phone_field]); $email = $row[$email_field]; $security_phrase = $row[$security_phrase_field]; $comments = trim($row[$comments_field]); - if (strlen($phone_number)>8) { + if (strlen($phone_number)>6) { if (strlen($list_id_override)>0) { @@ -528,9 +542,18 @@ if ($leadfile && filesize($LF_path)<=8388608) { if (!eregi(".csv", $leadfile_name) && !eregi(".xls", $leadfile_name)) { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.txt"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.txt", "r"); - if ($WeBRooTWritablE > 0) + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.txt"); + $lead_file = "./vicidial_temp_file.txt"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.txt"); + $lead_file = "/tmp/vicidial_temp_file.txt"; + } + $file=fopen("$lead_file", "r"); + if ($WeBRooTWritablE > 0) {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} $buffer=fgets($file, 4096); @@ -542,7 +565,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { if (count($field_check)>=5) { flush(); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.txt", "r"); + $file=fopen("$lead_file", "r"); $total=0; $good=0; $bad=0; print "
Επεξεργασία$delim_name-delimited file... ($tab_count|$pipe_count)\n"; if (strlen($list_id_override)>0) @@ -585,12 +608,12 @@ if ($leadfile && filesize($LF_path)<=8388608) { $country_code = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); - if (strlen($phone_number)>8) { + if (strlen($phone_number)>6) { if (strlen($list_id_override)>0) { @@ -640,15 +663,39 @@ if ($leadfile && filesize($LF_path)<=8388608) { } else { print "
Λάθος: Το αρχείο δεν έχει τον απαιτούμενο αριθμό πεδίων.
"; } - } else if (!eregi(".csv", $leadfile_name)) { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.xls", "r"); + } else if (!eregi(".csv", $leadfile_name)) + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.xls"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.xls"); + $lead_file = "/tmp/vicidial_temp_file.xls"; + } + $file=fopen("$lead_file", "r"); - passthru("$WeBServeRRooT/vicidial/listloader.pl --forcelistid=$list_id_override"); - } else { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.csv", "r"); - $stmt_file=fopen("listloader_stmts.txt", "w"); + # echo "|$WeBServeRRooT/vicidial/listloader.pl --forcelistid=$list_id_override --lead-file=$lead_file|"; + passthru("$WeBServeRRooT/vicidial/listloader.pl --forcelistid=$list_id_override --lead-file=$lead_file"); + + } + else + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.csv"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.csv"); + $lead_file = "/tmp/vicidial_temp_file.csv"; + } + $file=fopen("$lead_file", "r"); + if ($WeBRooTWritablE > 0) + {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} print "
ΕπεξεργασίαCSV file... \n"; @@ -686,12 +733,12 @@ if ($leadfile && filesize($LF_path)<=8388608) { $country_code = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); - if (strlen($phone_number)>8) { + if (strlen($phone_number)>6) { if (strlen($list_id_override)>0) { @@ -752,10 +799,21 @@ if ($leadfile && filesize($LF_path)<=8388608) { $rslt=mysql_query("select vendor_lead_code, source_id, list_id, phone_code, phone_number, title, first_name, middle_initial, last_name, address1, address2, address3, city, state, province, postal_code, country_code, gender, date_of_birth, alt_phone, email, security_phrase, comments from vicidial_list limit 1", $link); - if (!eregi(".csv", $leadfile_name) && !eregi(".xls", $leadfile_name)) { - copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.txt"); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.txt", "r"); - $stmt_file=fopen("listloader_stmts.txt", "w"); + if (!eregi(".csv", $leadfile_name) && !eregi(".xls", $leadfile_name)) + { + if ($WeBRooTWritablE > 0) + { + copy($LF_path, "$WeBServeRRooT/vicidial/vicidial_temp_file.txt"); + $lead_file = "$WeBServeRRooT/vicidial/vicidial_temp_file.txt"; + } + else + { + copy($LF_path, "/tmp/vicidial_temp_file.txt"); + $lead_file = "/tmp/vicidial_temp_file.txt"; + } + $file=fopen("$lead_file", "r"); + if ($WeBRooTWritablE > 0) + {$stmt_file=fopen("$WeBServeRRooT/vicidial/listloader_stmts.txt", "w");} $buffer=fgets($file, 4096); $tab_count=substr_count($buffer, "\t"); @@ -764,7 +822,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { if ($tab_count>$pipe_count) {$delimiter="\t"; $delim_name="tab";} else {$delimiter="|"; $delim_name="pipe";} $field_check=explode($delimiter, $buffer); flush(); - $file=fopen("$WeBServeRRooT/vicidial/vicidial_temp_file.txt", "r"); + $file=fopen("$lead_file", "r"); print "
Επεξεργασία$delim_name-delimited file...\n"; if (strlen($list_id_override)>0) @@ -826,13 +884,39 @@ if ($leadfile && filesize($LF_path)<=8388608) { #print "
        
"; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; +$DIALlev = $row[0]; +$DIALstatusA = $row[1]; +$DIALstatusB = $row[2]; +$DIALstatusC = $row[3]; +$DIALstatusD = $row[4]; +$DIALstatusE = $row[5]; +$DIALorder = $row[6]; +$DIALfilter = $row[7]; +$HOPlev = $row[8]; +$DIALmethod = $row[9]; +$maxDIALlev = $row[10]; +$DROPmax = $row[11]; +$targetDIFF = $row[12]; +$ADAintense = $row[13]; +$ADAavailonly = $row[14]; +$TAPERtime = $row[15]; +$CALLtime = $row[16]; +$DIALtimeout = $row[17]; $stmt="select count(*) from vicidial_hopper where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); @@ -214,26 +228,59 @@ if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) } else {$diffpctONEMIN = '0.00';} +echo "
DIAL LEVEL:  $row[0]    STATUSES:  $row[1], $row[2], $row[3], $row[4], $row[5]     ORDER:  $row[6]     FILTER:  $row[7]    
"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +if ($adastats>1) + { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; +echo ""; +echo ""; + +echo ""; +echo ""; +echo ""; echo ""; +echo ""; +echo ""; -echo "
DIAL LEVEL:  $DIALlev    FILTER:  $DIALfilter     TIME:   $NOW_TIME
- min   MAX LEVEL:  $maxDIALlev   DROPPED MAX:  $DROPmax%    TARGET DIFF:  $targetDIFF     INTENSITY:  $ADAintense    
DIAL TIMEOUT:  $DIALtimeout  TAPER TIME:  $TAPERtime  LOCAL TIME:  $CALLtime  AVAIL ONLY:  $ADAavailonly  
DIALABLE LEADS:  $DAleads     CALLS TODAY:  $callsTODAY     AVG AGENTS:  $agentsONEMIN     DIAL METHOD:  $DIALmethod    
HOPPER LEVEL:  $HOPlev     LEADS IN HOPPER:  $VDhop     DIALABLE LEADS:  $DAleads       TIME:
CALLS TODAY:  $callsTODAY     CALLS DROPPED:  $dropsTODAY     DROPPED PERCENT:  $drpctTODAY%       $NOW_TIME
DIAL METHOD:  $DIALmethod     DL DIFF:  $diffONEMIN     AVG AGENTS:  $agentsONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
LEADS IN HOPPER:  $VDhop     DROPPED PERCENT:  $drpctTODAY%    DIFF:  $diffpctONEMIN%     ORDER:  $DIALorder    
"; +if ($adastats<2) + { + echo "
+ VIEW MORE SETTINGS
"; echo "\n\n"; } @@ -329,14 +376,19 @@ $talking_to_print = mysql_num_rows($rslt); { $row[5]=$row[6]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $status = sprintf("%-6s", $row[3]); $server_ip = sprintf("%-15s", $row[4]); $call_server_ip = sprintf("%-15s", $row[7]); $campaign_id = sprintf("%-10s", $row[8]); - $call_time_S = ($STARTtime - $row[5]); + if (!eregi("INCALL|QUEUE",$row[3])) + {$call_time_S = ($STARTtime - $row[6]);} + else + {$call_time_S = ($STARTtime - $row[5]);} $call_time_M = ($call_time_S / 60); $call_time_M = round($call_time_M, 2); diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall_SIPmonitor.php b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall_SIPmonitor.php index 355a6fcd..f0dd56e4 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall_SIPmonitor.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/AST_timeonVDADall_SIPmonitor.php @@ -240,7 +240,9 @@ $talking_to_print = mysql_num_rows($rslt); { $row[5]=$row[6]; } - $extension = sprintf("%-10s", $row[0]); + $extension[$i] = eregi_replace('Local/',"",$row[0]); + $extension[$i] = sprintf("%-10s", $extension[$i]); + while(strlen($extension[$i])>10) {$extension[$i] = substr("$extension[$i]", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $status = sprintf("%-6s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/admin.php b/agc_2-X/trunk/LANG_www/vicidial_en/admin.php index 9f9c02b6..d01a7d04 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/admin.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/admin.php @@ -861,7 +861,7 @@ if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or ($ADD==21) or ($ADD= $NWB = "   \"HELP\""; +$NWE = "')\">\"HELP\""; ###################### # ADD=99999 display the HELP SCREENS ###################### @@ -1819,8 +1819,8 @@ function openNewWindow(url) { \n"; -?> +echo "\n"; +echo "
English Español
diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/listloader.php b/agc_2-X/trunk/LANG_www/vicidial_en/listloader.php index 6f5ec297..f311bf54 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/listloader.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/listloader.php @@ -12,6 +12,7 @@ # 60616-1006 - added listID override and gmt_offset lookup while loading # 60619-1652 - Added variable filtering to eliminate SQL injection attack threat # 60822-1105 - fixed for nonwritable directories +# 60906-1059 - added filter of non-digits in alt_phone field # # 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. # @@ -53,7 +54,7 @@ $admDIR = "$HTTPprotocol$server_name$script_name"; $admDIR = eregi_replace('listloader.php','',$admDIR); $admSCR = 'admin.php'; $NWB = "   \"HELP\""; +$NWE = "')\">\"HELP\""; $secX = date("U"); @@ -203,7 +204,7 @@ if ($leadfile and filesize($LF_path)<=8388608) { $country = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/listloaderMAIN.php b/agc_2-X/trunk/LANG_www/vicidial_en/listloaderMAIN.php index bb292c36..67ee25bc 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/listloaderMAIN.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/listloaderMAIN.php @@ -8,7 +8,6 @@ # # changes: # 60620-1149 - Added variable filtering to eliminate SQL injection attack threat -# 60822-1105 - fixed for nonwritable directories # require("dbconnect.php"); @@ -31,7 +30,7 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $auth=$row[0]; -if ($WeBRooTWritablE > 0) {$fp = fopen ("./project_auth_entries.txt", "a");} +$fp = fopen ("./project_auth_entries.txt", "a"); $date = date("r"); $ip = getenv("REMOTE_ADDR"); $browser = getenv("HTTP_USER_AGENT"); @@ -60,19 +59,13 @@ $browser = getenv("HTTP_USER_AGENT"); echo "You do not have permissions to load leads\n"; exit; } - if ($WeBRooTWritablE > 0) - { - fwrite ($fp, "LIST_LOAD|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n"); - fclose($fp); - } + fwrite ($fp, "LIST_LOAD|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n"); + fclose($fp); } else { - if ($WeBRooTWritablE > 0) - { - fwrite ($fp, "LIST_LOAD|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n"); - fclose($fp); - } + fwrite ($fp, "LIST_LOAD|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n"); + fclose($fp); } } diff --git a/agc_2-X/trunk/LANG_www/vicidial_en/new_listloader_superL.php b/agc_2-X/trunk/LANG_www/vicidial_en/new_listloader_superL.php index b5d149a2..028083f2 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_en/new_listloader_superL.php +++ b/agc_2-X/trunk/LANG_www/vicidial_en/new_listloader_superL.php @@ -14,11 +14,12 @@ # 60616-1604 - added gmt lookup for each lead # 60619-1651 - Added variable filtering to eliminate SQL injection attack threat # 60822-1121 - fixed for nonwritable directories +# 60906-1100 - added filter of non-digits in alt_phone field # # 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.1'; -$build = '60822-1121'; +$build = '60906-1100'; require("dbconnect.php"); @@ -172,7 +173,7 @@ $admDIR = "$HTTPprotocol$server_name$script_name"; $admDIR = eregi_replace('new_listloader_superL.php','',$admDIR); $admSCR = 'admin.php'; $NWB = "   \"HELP\""; +$NWE = "')\">\"HELP\""; $secX = date("U"); $hour = date("H"); @@ -370,7 +371,7 @@ function ParseFileName() { $country_code = $row[$country_code_field]; $gender = $row[$gender_field]; $date_of_birth = $row[$date_of_birth_field]; - $alt_phone = $row[$alt_phone_field]; + $alt_phone = eregi_replace("[^0-9]", "", $row[$alt_phone_field]); $email = $row[$email_field]; $security_phrase = $row[$security_phrase_field]; $comments = trim($row[$comments_field]); @@ -479,7 +480,7 @@ function ParseFileName() { $country_code = $row[$country_code_field]; $gender = $row[$gender_field]; $date_of_birth = $row[$date_of_birth_field]; - $alt_phone = $row[$alt_phone_field]; + $alt_phone = eregi_replace("[^0-9]", "", $row[$alt_phone_field]); $email = $row[$email_field]; $security_phrase = $row[$security_phrase_field]; $comments = trim($row[$comments_field]); @@ -607,7 +608,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $country_code = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); @@ -732,7 +733,7 @@ if ($leadfile && filesize($LF_path)<=8388608) { $country_code = $row[16]; $gender = $row[17]; $date_of_birth = $row[18]; - $alt_phone = $row[19]; + $alt_phone = eregi_replace("[^0-9]", "", $row[19]); $email = $row[20]; $security_phrase = $row[21]; $comments = trim($row[22]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_es/AST_CLOSERstats.php b/agc_2-X/trunk/LANG_www/vicidial_es/AST_CLOSERstats.php index 495856fb..064bf8de 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_es/AST_CLOSERstats.php +++ b/agc_2-X/trunk/LANG_www/vicidial_es/AST_CLOSERstats.php @@ -7,6 +7,7 @@ # # 60619-1714 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 60905-1326 - Added queue time stats # require("dbconnect.php"); @@ -117,7 +118,7 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Llamadas dentro de esta campaña $TOTALcalls\n"; -echo "Longitud media para las llamadas en segundos: $average_hold_seconds\n"; +echo "Average Call Length for all Calls: $average_hold_seconds seconds\n"; echo "\n"; echo "---------- DROPS\n"; @@ -136,7 +137,31 @@ $average_hold_seconds = round($average_hold_seconds, 0); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); echo "Total DROP Calls: $DROPcalls $DROPpercent%\n"; -echo "Longitud media para las llamadas DROP en segundos: $average_hold_seconds\n"; +echo "Average hold time for DROP Calls: $average_hold_seconds seconds\n"; + +echo "\n"; +echo "---------- QUEUE STATS\n"; + +$stmt="select count(*),sum(queue_seconds) from vicidial_closer_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and (queue_seconds > 0);"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); + +$QUEUEcalls = sprintf("%10s", $row[0]); +$QUEUEpercent = (($QUEUEcalls / $TOTALcalls) * 100); +$QUEUEpercent = round($QUEUEpercent, 0); + +$average_queue_seconds = ($row[1] / $row[0]); +$average_queue_seconds = round($average_queue_seconds, 2); +$average_queue_seconds = sprintf("%10.2f", $average_queue_seconds); + +$average_total_queue_seconds = ($row[1] / $TOTALcalls); +$average_total_queue_seconds = round($average_total_queue_seconds, 2); +$average_total_queue_seconds = sprintf("%10.2f", $average_total_queue_seconds); + +echo "Total Calls That entered Queue: $QUEUEcalls $QUEUEpercent%\n"; +echo "Average QUEUE Length for queue calls: $average_queue_seconds seconds\n"; +echo "Average QUEUE Length across all calls: $average_total_queue_seconds seconds\n"; ############################## diff --git a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD.php b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD.php index 2fb623d0..3bae824c 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD.php +++ b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD.php @@ -114,7 +114,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- ESPERANDO -'; $row[6]=$row[7]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $channel = sprintf("%-10s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD_closer.php b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD_closer.php index c399ae3c..1230001d 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD_closer.php +++ b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDAD_closer.php @@ -132,7 +132,9 @@ $talking_to_print = mysql_num_rows($rslt); $row[5]='- WAIT -'; $row[6]=$row[7]; } - $extension[$i] = sprintf("%-10s", $row[0]); + $extension[$i] = eregi_replace('Local/',"",$row[0]); + $extension[$i] = sprintf("%-10s", $extension[$i]); + while(strlen($extension[$i])>10) {$extension[$i] = substr("$extension[$i]", 0, -1);} $user[$i] = sprintf("%-6s", $row[1]); $sessionid[$i] = sprintf("%-9s", $row[2]); $channel[$i] = sprintf("%-19s", $row[3]); diff --git a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall.php b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall.php index 27c01b59..66447289 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall.php +++ b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall.php @@ -14,6 +14,8 @@ # 60619-1658 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 60626-1453 - Added display of system load to bottom (Angelito Manansala) +# 60901-1123 - Changed display elements at the top of the screen +# 60905-1342 - Fixed non INCALL|QUEUE timer column # header ("Content-type: text/html; charset=utf-8"); @@ -23,20 +25,22 @@ require("dbconnect.php"); $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; -if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} - elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} +if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} + elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} if (isset($_GET["reset_counter"])) {$reset_counter=$_GET["reset_counter"];} elseif (isset($_POST["reset_counter"])) {$reset_counter=$_POST["reset_counter"];} -if (isset($_GET["RR"])) {$RR=$_GET["RR"];} +if (isset($_GET["RR"])) {$RR=$_GET["RR"];} elseif (isset($_POST["RR"])) {$RR=$_POST["RR"];} if (isset($_GET["group"])) {$group=$_GET["group"];} elseif (isset($_POST["group"])) {$group=$_POST["group"];} -if (isset($_GET["DB"])) {$DB=$_GET["DB"];} +if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +if (isset($_GET["adastats"])) {$adastats=$_GET["adastats"];} + elseif (isset($_POST["adastats"])) {$adastats=$_POST["adastats"];} if (isset($_GET["submit"])) {$submit=$_GET["submit"];} - elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} if (isset($_GET["ENVIAR"])) {$ENVIAR=$_GET["ENVIAR"];} - elseif (isset($_POST["ENVIAR"])) {$ENVIAR=$_POST["ENVIAR"];} + elseif (isset($_POST["ENVIAR"])) {$ENVIAR=$_POST["ENVIAR"];} if (!isset($group)) {$group='';} @@ -156,12 +160,13 @@ if ($reset_counter > 7) \n"; -echo"\n"; +echo"\n"; echo "VICIDIAL: Time On VDAD Campaña: $group\n"; echo "\n"; echo "VICIDIAL: Realtime Campaña: \n"; echo "\n"; echo "\n"; +echo "\n"; echo "\n"; } echo "\n"; echo "         \n"; -echo "STOP | GO"; +echo "STOP | GO"; echo "         MODIFICAR | INFORMES \n"; echo "\n\n"; @@ -180,18 +185,27 @@ echo "\n\n"; if (!$group) {echo "

please select a campaign from the pulldown above\n"; exit;} else { -$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method,adaptive_maximum_level,adaptive_dropped_percentage,adaptive_dl_diff_target,adaptive_intensity,available_only_ratio_tally,adaptive_latest_server_time,local_call_time,dial_timeout from vicidial_campaigns where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); -$HOPlev = $row[8]; -$DIALmethod = $row[9]; - -echo "
  VICIDIAL ADMIN - Logout  
"; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; +$DIALlev = $row[0]; +$DIALstatusA = $row[1]; +$DIALstatusB = $row[2]; +$DIALstatusC = $row[3]; +$DIALstatusD = $row[4]; +$DIALstatusE = $row[5]; +$DIALorder = $row[6]; +$DIALfilter = $row[7]; +$HOPlev = $row[8]; +$DIALmethod = $row[9]; +$maxDIALlev = $row[10]; +$DROPmax = $row[11]; +$targetDIFF = $row[12]; +$ADAintense = $row[13]; +$ADAavailonly = $row[14]; +$TAPERtime = $row[15]; +$CALLtime = $row[16]; +$DIALtimeout = $row[17]; $stmt="select count(*) from vicidial_hopper where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); @@ -214,26 +228,59 @@ if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) } else {$diffpctONEMIN = '0.00';} +echo "
DIAL LEVEL:  $row[0]    STATUSES:  $row[1], $row[2], $row[3], $row[4], $row[5]     ORDER:  $row[6]     FILTER:  $row[7]    
"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + +if ($adastats>1) + { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; + echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; -echo ""; -echo ""; -echo ""; -echo ""; echo ""; -echo ""; +echo ""; +echo ""; + +echo ""; +echo ""; +echo ""; echo ""; +echo ""; +echo ""; -echo "
DIAL LEVEL:  $DIALlev    FILTER:  $DIALfilter     TIME:   $NOW_TIME
- min   MAX LEVEL:  $maxDIALlev   DROPPED MAX:  $DROPmax%    TARGET DIFF:  $targetDIFF     INTENSITY:  $ADAintense    
DIAL TIMEOUT:  $DIALtimeout  TAPER TIME:  $TAPERtime  LOCAL TIME:  $CALLtime  AVAIL ONLY:  $ADAavailonly  
DIALABLE LEADS:  $DAleads     CALLS TODAY:  $callsTODAY     AVG AGENTS:  $agentsONEMIN     DIAL METHOD:  $DIALmethod    
HOPPER LEVEL:  $HOPlev     LEADS IN HOPPER:  $VDhop     DIALABLE LEADS:  $DAleads       TIME:
CALLS TODAY:  $callsTODAY     CALLS DROPPED:  $dropsTODAY     DROPPED PERCENT:  $drpctTODAY%       $NOW_TIME
DIAL METHOD:  $DIALmethod     DL DIFF:  $diffONEMIN     AVG AGENTS:  $agentsONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
LEADS IN HOPPER:  $VDhop     DROPPED PERCENT:  $drpctTODAY%    DIFF:  $diffpctONEMIN%     ORDER:  $DIALorder    
"; +if ($adastats<2) + { + echo "
+ VIEW MORE SETTINGS
"; echo "\n\n"; } @@ -329,14 +376,19 @@ $talking_to_print = mysql_num_rows($rslt); { $row[5]=$row[6]; } - $extension = sprintf("%-10s", $row[0]); + $extension = eregi_replace('Local/',"",$row[0]); + $extension = sprintf("%-10s", $extension); + while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);} $user = sprintf("%-6s", $row[1]); $sessionid = sprintf("%-9s", $row[2]); $status = sprintf("%-6s", $row[3]); $server_ip = sprintf("%-15s", $row[4]); $call_server_ip = sprintf("%-15s", $row[7]); $campaign_id = sprintf("%-10s", $row[8]); - $call_time_S = ($STARTtime - $row[5]); + if (!eregi("INCALL|QUEUE",$row[3])) + {$call_time_S = ($STARTtime - $row[6]);} + else + {$call_time_S = ($STARTtime - $row[5]);} $call_time_M = ($call_time_S / 60); $call_time_M = round($call_time_M, 2); diff --git a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall_SIPmonitor.php b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall_SIPmonitor.php index 6b5057ea..ff749390 100644 --- a/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall_SIPmonitor.php +++ b/agc_2-X/trunk/LANG_www/vicidial_es/AST_timeonVDADall_SIPmonitor.php @@ -16,6 +16,8 @@ # - Added extended pause (exceeding 60 seconds -> 20 minutes) (Magma Networks LLC) # - Added Full Name Field to extract from Database (Magma Networks LLC) # - Added Barge Link (Magma Networks LLC) +# 60731-1138 - fixed fullname formatting + header ("Content-type: text/html; charset=utf-8"); require("dbconnect.php"); @@ -104,9 +106,9 @@ if ($reset_counter > 7) \n"; echo"\n"; -echo "VF DIALER: Time On VDAD Campaña: $group\n"; +echo "VICIDIAL: Time On VDAD Campaña: $group\n"; echo "
\n"; -echo "VF DIALER: Realtime Campaña: \n"; +echo "VICIDIAL: Realtime Campaña: \n"; echo "\n"; echo "\n"; echo "