diff --git a/LANG_www/agc/manager_send.php b/LANG_www/agc/manager_send.php index 5581a926..d8434635 100644 --- a/LANG_www/agc/manager_send.php +++ b/LANG_www/agc/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc/vicidial.php b/LANG_www/agc/vicidial.php index 64f5c092..b01db0ae 100644 --- a/LANG_www/agc/vicidial.php +++ b/LANG_www/agc/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n";
- +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICIDIAL SCRIPT   LIVE     session ID:   LIVE     session ID: Live Call
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICIDIAL
+

VICIDIAL
@@ -5411,7 +5499,7 @@ echo "\n"; -
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. +
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.

  @@ -5422,7 +5510,7 @@ echo "\n"; -
NEW MANUAL DIAL LEAD FOR :

Enter information below for the new lead you wish to call. +
NEW MANUAL DIAL LEAD FOR :

Enter information below for the new lead you wish to call.
\n"; -
+
- + Your Status:
Calls Dialing:
- +
Transfer - Conference
@@ -5499,7 +5587,7 @@ Your Status:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Your Status:
Calls Dialing: -
Lead Dispositioned As:

-
+
Disposition Hot Keys: When active, simply press the keyboard key for the desired disposition for this call. The call will then be hungup and dispositioned automatically:
@@ -5523,7 +5611,7 @@ Your Status:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Your Status:
Calls Dialing: -
Previous Callback Information: close
Noone is in your session:
+
Noone is in your session:
Go Back

Call Agent Again @@ -5548,7 +5636,7 @@ Your Status:
Calls Dialing: -
Customer has hung up:
+
Customer has hung up:
Go Back

Finish and Disposition Call @@ -5557,7 +5645,7 @@ Your Status:
Calls Dialing: -
Call Wrapup: seconds remaining in wrapup

+
Call Wrapup: seconds remaining in wrapup



Finish Wrapup and Move On @@ -5566,7 +5654,7 @@ Your Status:
Calls Dialing: -

LOGOUT
+

LOGOUT
@@ -5578,11 +5666,11 @@ Your Status:
Calls Dialing: -
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.
+
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
+
DISPOSITION CALL :       Hangup Again       minimize
End-of-call Disposition Selection
PAUSE AGENT DIALING
@@ -5596,7 +5684,7 @@ Your Status:
Calls Dialing: -
Select a CallBack Date :
+
Select a CallBack Date :
Select a Date Below   @@ -5639,7 +5727,7 @@ Your Status:
Calls Dialing: -
CLOSER INBOUND GROUP SELECTION
+
CLOSER INBOUND GROUP SELECTION
Closer Inbound Group Selection
BLENDED CALLING(outbound activated)
@@ -5662,7 +5750,7 @@ Your Status:
Calls Dialing: - +
LIVE CALL TRANSFER
Channel to be transferred: Channel
LIVE CALL TRANSFER
Channel to be transferred: Channel
Extensions:
Extensions Menu

@@ -5678,7 +5766,7 @@ Your Status:
Calls Dialing: -
VICIDIAL SCRIPT
+
VICIDIAL SCRIPT
@@ -5688,7 +5776,7 @@ Your Status:
Calls Dialing: - +
-
STATUS:
@@ -5725,7 +5813,7 @@ RECORD ID:
+ diff --git a/LANG_www/agc_br/manager_send.php b/LANG_www/agc_br/manager_send.php index 11936764..00d9d17e 100644 --- a/LANG_www/agc_br/manager_send.php +++ b/LANG_www/agc_br/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc_br/vicidial.php b/LANG_www/agc_br/vicidial.php index 6d8b569c..47c913d6 100644 --- a/LANG_www/agc_br/vicidial.php +++ b/LANG_www/agc_br/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n"; - +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICIDISCAR SCRIPT   LIVE    ID da sessão:   LIVE    ID da sessão: Chamadas Ativas
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICIDISCAR
+

VICIDISCAR
@@ -5411,7 +5499,7 @@ echo "\n"; -
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. +
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.

  @@ -5422,7 +5510,7 @@ echo "\n"; -
NOVA DISCAGEM MANUAL PARA :

Digite abaixo a informação do novo contato que você deseja ligar. +
NOVA DISCAGEM MANUAL PARA :

Digite abaixo a informação do novo contato que você deseja ligar.
\n"; -
+
- + Your Status:
Calls Dialing:
- +
Transferir a conferência
@@ -5499,7 +5587,7 @@ Your Status:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Your Status:
Calls Dialing: -
Status da ligação definida como:

-
+
Atalhos para os status: Quanto ativo apenas pressione a tecla do teclado referente ao status desejado. A ligação será desligada e salva com o status definido automaticamemente:
@@ -5523,7 +5611,7 @@ Your Status:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Your Status:
Calls Dialing: -
Informação Precedente Da Rechamada: close
Não existe ninguem na sua sessão:
+
Não existe ninguem na sua sessão:
Voltar

Ligar novamente para o agente @@ -5548,7 +5636,7 @@ Your Status:
Calls Dialing: -
O cliente desligou:
+
O cliente desligou:
Voltar

Finalize e coloque o status da ligação @@ -5557,7 +5645,7 @@ Your Status:
Calls Dialing: -
Chamada Wrapup: segundos restantes no wrapup

+
Chamada Wrapup: segundos restantes no wrapup



Revestimento Wrapup e movimento sobre @@ -5566,7 +5654,7 @@ Your Status:
Calls Dialing: -

SAIR
+

SAIR
@@ -5578,11 +5666,11 @@ Your Status:
Calls Dialing: -
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.
+
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
+
SELEÇÃO DE STATUS :       Desligue novamente       minimizar
Fim da seleção de status
PAUSAR DISCAGEM DO AGENTE
@@ -5596,7 +5684,7 @@ Your Status:
Calls Dialing: -
Selecione uma data para o retorno :
+
Selecione uma data para o retorno :
Selecione uma data abaixo   @@ -5639,7 +5727,7 @@ Your Status:
Calls Dialing: -
SELECAO DO GRUPO DE ENTRADA DO CLOSER
+
SELECAO DO GRUPO DE ENTRADA DO CLOSER
Seleção do grupo de entrada do closer
LIGACAO MISTURADA(ligações externas ativadas)
@@ -5662,7 +5750,7 @@ Your Status:
Calls Dialing: - +
TRANSFERIR CHAMADAS ATIVAS
Canal a ser transferido: Canal
TRANSFERIR CHAMADAS ATIVAS
Canal a ser transferido: Canal
Extensões:
Extensões do Menu

@@ -5678,7 +5766,7 @@ Your Status:
Calls Dialing: -
VICIDISCAR SCRIPT
+
VICIDISCAR SCRIPT
@@ -5688,7 +5776,7 @@ Your Status:
Calls Dialing: - +
-
STATUS:
@@ -5725,7 +5813,7 @@ ID da gravação:
+ diff --git a/LANG_www/agc_de/manager_send.php b/LANG_www/agc_de/manager_send.php index 4c3c5944..33c72aad 100644 --- a/LANG_www/agc_de/manager_send.php +++ b/LANG_www/agc_de/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc_de/vicidial.php b/LANG_www/agc_de/vicidial.php index f6896ea8..fcd71de5 100644 --- a/LANG_www/agc_de/vicidial.php +++ b/LANG_www/agc_de/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n"; - +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICIWÄHLEN SCRIPT   LIVE     SESSION ID:   LIVE     SESSION ID: Live Anruf
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICIWÄHLEN
+

VICIWÄHLEN
@@ -5411,7 +5499,7 @@ echo "\n"; -
RÜCKRUFE FÜR AGENT :
Klicken Sie jetzt unten auf einen Rückruf, um den Kunden zurückzurufen. Danach wird der Rückruf aus der Liste gelöscht.. +
RÜCKRUFE FÜR AGENT :
Klicken Sie jetzt unten auf einen Rückruf, um den Kunden zurückzurufen. Danach wird der Rückruf aus der Liste gelöscht..

  @@ -5422,7 +5510,7 @@ echo "\n"; -
NEUE MANUELLE WÄHLADRESSE FÜR :

TRAGEN SIE UNTEN DIE INFORMATIONEN ZU DER NEUEN ADRESSE EIN, DIE SIE WÄHLEN MÖCHTEN. +
NEUE MANUELLE WÄHLADRESSE FÜR :

TRAGEN SIE UNTEN DIE INFORMATIONEN ZU DER NEUEN ADRESSE EIN, DIE SIE WÄHLEN MÖCHTEN.
\n"; -
+
- + Ihr Status:
Calls Dialing:
- +
Transfer - Konferenz
@@ -5499,7 +5587,7 @@ Ihr Status:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Ihr Status:
Calls Dialing: -
Anrufergebnis:

-
+
Einteilung der Tastaturkürzel: Wenn aktiviert, drücken sie einfach die entsprechende Taste, um das Anrufergebnis zu speichern. Der Anruf wird dann automatisch aufgehängt.:
@@ -5523,7 +5611,7 @@ Ihr Status:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Ihr Status:
Calls Dialing: -
Vorhergehende Rückrufinformationen: close
Niemand ist in ihrer Leitung. Wählen sie sich in ihre Konferenz ein!:
+
Niemand ist in ihrer Leitung. Wählen sie sich in ihre Konferenz ein!:
Zurück

Agent wieder anrufen @@ -5548,7 +5636,7 @@ Ihr Status:
Calls Dialing: -
Kunde hat aufgelegt:
+
Kunde hat aufgelegt:
Zurück

Ende und Abschluss für Anruf @@ -5557,7 +5645,7 @@ Ihr Status:
Calls Dialing: -
Anruf Nachbereitung Verbleibende Sekunden der Nachbereitung

+
Anruf Nachbereitung Verbleibende Sekunden der Nachbereitung



Beende Nachbereitung und mache weiter @@ -5566,7 +5654,7 @@ Ihr Status:
Calls Dialing: -

LOGOUT
+

LOGOUT
@@ -5578,11 +5666,11 @@ Ihr Status:
Calls Dialing: -
Die Änderungen an den Kundendaten wurden nicht übernommen. Sie müssen die Kundendaten ändern bevor Sie aufgelegt haben..
+
Die Änderungen an den Kundendaten wurden nicht übernommen. Sie müssen die Kundendaten ändern bevor Sie aufgelegt haben..
-
ABSCHLUSS ANRUF :       Wieder Auflegen       minimieren
+
ABSCHLUSS ANRUF :       Wieder Auflegen       minimieren
Ende-von-Call Gesprächsergebnis auswählen
WÄHLPAUSE
@@ -5596,7 +5684,7 @@ Ihr Status:
Calls Dialing: -
Wählen Sie ein Rückrufadatum :
+
Wählen Sie ein Rückrufadatum :
Wählen Sie unten ein Datum   @@ -5639,7 +5727,7 @@ Ihr Status:
Calls Dialing: -
GENAUERE INBOUND GRUPPENWAHL
+
GENAUERE INBOUND GRUPPENWAHL
Genauere Inbound Gruppenwahl
GEMISCHTES ANRUFEN(Outbound aktiviert)
@@ -5662,7 +5750,7 @@ Ihr Status:
Calls Dialing: - +
LIVE ANRUF WEITERLEITEN
Leitung, die übergeben werden soll: Kanal
LIVE ANRUF WEITERLEITEN
Leitung, die übergeben werden soll: Kanal
Erweiterungen:
Erweiterungen Menü

@@ -5678,7 +5766,7 @@ Ihr Status:
Calls Dialing: -
VICIWÄHLEN SCRIPT
+
VICIWÄHLEN SCRIPT
@@ -5688,7 +5776,7 @@ Ihr Status:
Calls Dialing: - +
-
STATUS:
@@ -5725,7 +5813,7 @@ Aufzeichnugs ID:
+ diff --git a/LANG_www/agc_el/vicidial.php b/LANG_www/agc_el/vicidial.php index 0586778a..edff1acf 100644 --- a/LANG_www/agc_el/vicidial.php +++ b/LANG_www/agc_el/vicidial.php @@ -131,6 +131,7 @@ # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries # 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -176,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.104'; -$build = '61130-1617'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -4568,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4616,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5351,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5378,7 +5465,7 @@ echo "\n"; - +
@@ -5388,11 +5475,11 @@ echo "\n"; - +
- +
VICIΚΛΗΣΗ SCRIPT   LIVE     ID εργασίας:   LIVE     ID εργασίας: Ενεργή κλήση
@@ -5400,7 +5487,7 @@ echo "\n"; -

VICIΚΛΗΣΗ
+

VICIΚΛΗΣΗ
@@ -5412,7 +5499,7 @@ echo "\n"; -
ΕΠΑΝΑΚΛΗΣΕΙΣ ΓΙΑ ΤΟΝ ΧΕΙΡΙΣΤΗ :
Επιλέξτε μία επανάκληση παρακάτω για να καλέσετε τον πελάτη τώρα. Εάν επιλέξετε μία εγγραφή παρακάτω, θα διαγραφεί από την λίστα. +
ΕΠΑΝΑΚΛΗΣΕΙΣ ΓΙΑ ΤΟΝ ΧΕΙΡΙΣΤΗ :
Επιλέξτε μία επανάκληση παρακάτω για να καλέσετε τον πελάτη τώρα. Εάν επιλέξετε μία εγγραφή παρακάτω, θα διαγραφεί από την λίστα.

  @@ -5423,7 +5510,7 @@ echo "\n"; -
ΝΕΑ ΧΕΙΡΟΚΙΝΗΤΗ ΚΛΗΣΗ ΟΔΗΓΟΥ ΓΙΑ :

Καταχωρήστε τις πληροφορίες παρακάτω για τον νέο οδηγό που επιθυμήτε να καλέσετε. +
ΝΕΑ ΧΕΙΡΟΚΙΝΗΤΗ ΚΛΗΣΗ ΟΔΗΓΟΥ ΓΙΑ :

Καταχωρήστε τις πληροφορίες παρακάτω για τον νέο οδηγό που επιθυμήτε να καλέσετε.
\n"; -
+
- + Your Κατάσταση:
Calls Dialing:
- +
Μεταφορά - διάσκεψη
@@ -5500,7 +5587,7 @@ Your Κατάσταση: - +
@@ -5508,7 +5595,7 @@ Your Κατάσταση: -
Τερματισμό Καθοδήγησης όπως:

-
+
Πλήκτρα κλειδιά Τερματισμού: Όταν είναι ενεργό, πιέστε απλά το πλήκτρο κλειδί για τον επιθυμητό τερματισμό της κλήσης. Η κλήση θα τρεματίσει αυτόματα:
@@ -5524,7 +5611,7 @@ Your Κατάσταση: - +
@@ -5541,7 +5628,7 @@ Your Κατάσταση: -
Προηγούμενες πληροφορίες επανάκλησης: close
Κανένας δεν είναι στη σύνοδό σας:
+
Κανένας δεν είναι στη σύνοδό σας:
Επιστροφή

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

Τελείωσε και Τερμάτισε την Κλήση @@ -5558,7 +5645,7 @@ Your Κατάσταση: -
Αναδίπλωση Κλήσης: απομύνοντα δευτερόλεπτα σε αναδίπλωση

+
Αναδίπλωση Κλήσης: απομύνοντα δευτερόλεπτα σε αναδίπλωση



Τελείωμα Αναδίπλωσης και Συνέχεια @@ -5567,7 +5654,7 @@ Your Κατάσταση: -

ΑΠΟΣΥΝΔΕΣΗ
+

ΑΠΟΣΥΝΔΕΣΗ
@@ -5579,11 +5666,11 @@ Your Κατάσταση: -
Οποιεσδήποτε αλλαγές που γίνονται στις πληροφορίες πελατών κατωτέρω αυτή τη στιγμή δεν θα είναι, πρέπει να αλλάξετε τις πληροφορίες πελατών ενώπιον σας Hangup η κλήση.
+
Οποιεσδήποτε αλλαγές που γίνονται στις πληροφορίες πελατών κατωτέρω αυτή τη στιγμή δεν θα είναι, πρέπει να αλλάξετε τις πληροφορίες πελατών ενώπιον σας Hangup η κλήση.
-
Τερματισμός Κλήσης :       Ξανακλήσε       ελαχιστοποιήστε
+
Τερματισμός Κλήσης :       Ξανακλήσε       ελαχιστοποιήστε
Επιλογή τερματισμού της κλήσης
ΤΕΡΜΑΤΙΣΜΟΣ ΚΛΗΣΗΣ
@@ -5597,7 +5684,7 @@ Your Κατάσταση: -
Επιλέξτε μια ημερομηνία CallBack :
+
Επιλέξτε μια ημερομηνία CallBack :
Επιλέξτε μια ημερομηνία κατωτέρω   @@ -5640,7 +5727,7 @@ Your Κατάσταση: -
CLOSER ΕΙΣΕΡΧΟΜΕΝΗ ΕΠΙΛΟΓΗ ΟΜΑΔΑΣ
+
CLOSER ΕΙΣΕΡΧΟΜΕΝΗ ΕΠΙΛΟΓΗ ΟΜΑΔΑΣ
Επιλογή Closer εισερχόμενης ομάδας
ΣΥΝΔΥΑΣΜΕΝΗ ΚΛΗΣΗ(εξερχόμενες ενεργοποιημένες)
@@ -5663,7 +5750,7 @@ Your Κατάσταση: - +
ΜΕΤΑΦΟΡΑ ΕΝΕΡΓΗΣ ΚΛΗΣΗΣ
Κανάλι προς μεταφορά: Κανάλι
ΜΕΤΑΦΟΡΑ ΕΝΕΡΓΗΣ ΚΛΗΣΗΣ
Κανάλι προς μεταφορά: Κανάλι
Τηλ.συνδέσεις:
Επιλογές τηλ. συνδέσεων

@@ -5679,7 +5766,7 @@ Your Κατάσταση: -
VICIΚΛΗΣΗ SCRIPT
+
VICIΚΛΗΣΗ SCRIPT
@@ -5689,7 +5776,7 @@ Your Κατάσταση: - +
-
ΚΑΤΑΣΤΑΣΗ:
@@ -5726,7 +5813,7 @@ if ( ($alt_phone_dialing) and ($auto_dial_level==0) ) + diff --git a/LANG_www/agc_en/manager_send.php b/LANG_www/agc_en/manager_send.php index 5581a926..d8434635 100644 --- a/LANG_www/agc_en/manager_send.php +++ b/LANG_www/agc_en/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc_en/vicidial.php b/LANG_www/agc_en/vicidial.php index d2d611fa..ff5b382b 100644 --- a/LANG_www/agc_en/vicidial.php +++ b/LANG_www/agc_en/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n"; - +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICIDIAL SCRIPT   LIVE     session ID:   LIVE     session ID: Live Call
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICIDIAL
+

VICIDIAL
@@ -5411,7 +5499,7 @@ echo "\n"; -
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. +
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.

  @@ -5422,7 +5510,7 @@ echo "\n"; -
NEW MANUAL DIAL LEAD FOR :

Enter information below for the new lead you wish to call. +
NEW MANUAL DIAL LEAD FOR :

Enter information below for the new lead you wish to call.
\n"; -
+
- + Your Status:
Calls Dialing:
- +
Transfer - Conference
@@ -5499,7 +5587,7 @@ Your Status:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Your Status:
Calls Dialing: -
Lead Dispositioned As:

-
+
Disposition Hot Keys: When active, simply press the keyboard key for the desired disposition for this call. The call will then be hungup and dispositioned automatically:
@@ -5523,7 +5611,7 @@ Your Status:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Your Status:
Calls Dialing: -
Previous Callback Information: close
Noone is in your session:
+
Noone is in your session:
Go Back

Call Agent Again @@ -5548,7 +5636,7 @@ Your Status:
Calls Dialing: -
Customer has hung up:
+
Customer has hung up:
Go Back

Finish and Disposition Call @@ -5557,7 +5645,7 @@ Your Status:
Calls Dialing: -
Call Wrapup: seconds remaining in wrapup

+
Call Wrapup: seconds remaining in wrapup



Finish Wrapup and Move On @@ -5566,7 +5654,7 @@ Your Status:
Calls Dialing: -

LOGOUT
+

LOGOUT
@@ -5578,11 +5666,11 @@ Your Status:
Calls Dialing: -
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.
+
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
+
DISPOSITION CALL :       Hangup Again       minimize
End-of-call Disposition Selection
PAUSE AGENT DIALING
@@ -5596,7 +5684,7 @@ Your Status:
Calls Dialing: -
Select a CallBack Date :
+
Select a CallBack Date :
Select a Date Below   @@ -5639,7 +5727,7 @@ Your Status:
Calls Dialing: -
CLOSER INBOUND GROUP SELECTION
+
CLOSER INBOUND GROUP SELECTION
Closer Inbound Group Selection
BLENDED CALLING(outbound activated)
@@ -5662,7 +5750,7 @@ Your Status:
Calls Dialing: - +
LIVE CALL TRANSFER
Channel to be transferred: Channel
LIVE CALL TRANSFER
Channel to be transferred: Channel
Extensions:
Extensions Menu

@@ -5678,7 +5766,7 @@ Your Status:
Calls Dialing: -
VICIDIAL SCRIPT
+
VICIDIAL SCRIPT
@@ -5688,7 +5776,7 @@ Your Status:
Calls Dialing: - +
-
STATUS:
@@ -5725,7 +5813,7 @@ RECORD ID:
+ diff --git a/LANG_www/agc_es/manager_send.php b/LANG_www/agc_es/manager_send.php index 83a4fdb0..1095cced 100644 --- a/LANG_www/agc_es/manager_send.php +++ b/LANG_www/agc_es/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc_es/vicidial.php b/LANG_www/agc_es/vicidial.php index cdf9db7c..0c5590c5 100644 --- a/LANG_www/agc_es/vicidial.php +++ b/LANG_www/agc_es/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n"; - +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICIDIAL SCRIPT   LIVE     sesión ID:   LIVE     sesión ID: Llamada Activa
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICIDIAL
+

VICIDIAL
@@ -5411,7 +5499,7 @@ echo "\n"; -
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. +
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.

  @@ -5422,7 +5510,7 @@ echo "\n"; -
NUEVO PLOMO MANUAL DEL DIAL PARA :

Incorpore la información abajo para el nuevo plomo que usted desea llamar. +
NUEVO PLOMO MANUAL DEL DIAL PARA :

Incorpore la información abajo para el nuevo plomo que usted desea llamar.
\n"; -
+
- + Su Estado:
Calls Dialing:
- +
Transferencia - Conferencia
@@ -5499,7 +5587,7 @@ Su Estado:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Su Estado:
Calls Dialing: -
Lead Dispositioned Como:

-
+
Teclas de acceso rápido a la Disposición: Cuando esté activo, presione simplemente la tecla para la disposición deseada para esta llamada. La llamada después será colgada y dispositioned automáticamente:
@@ -5523,7 +5611,7 @@ Su Estado:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Su Estado:
Calls Dialing: -
Información Anterior Del Servicio repetido: close
Nadie está en su sesión:
+
Nadie está en su sesión:
Vaya Detrás

Agente De la Llamada Otra vez @@ -5548,7 +5636,7 @@ Su Estado:
Calls Dialing: -
El cliente ha colgado:
+
El cliente ha colgado:
Vaya Detrás

Final y llamada de la disposición @@ -5557,7 +5645,7 @@ Su Estado:
Calls Dialing: -
Llamada Wrapup: segundos restantes en wrapup

+
Llamada Wrapup: segundos restantes en wrapup



Final Wrapup y movimiento encendido @@ -5566,7 +5654,7 @@ Su Estado:
Calls Dialing: -

SALIR
+

SALIR
@@ -5578,11 +5666,11 @@ Su Estado:
Calls Dialing: -
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.
+
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
+
DISPOSITION LLAMADA :       Retraso Otra vez       reduzca al mínimo
selección de la disposición del End-of-call
PARAR LA LLAMADA
@@ -5596,7 +5684,7 @@ Su Estado:
Calls Dialing: -
Seleccione una fecha del servicio repetido :
+
Seleccione una fecha del servicio repetido :
Seleccione una fecha abajo   @@ -5639,7 +5727,7 @@ Su Estado:
Calls Dialing: -
SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER
+
SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER
SELECCIÓN DEL GRUPO DE ENTRANTES CLOSER
BLENDED LLAMADAING(Salientes activdas)
@@ -5662,7 +5750,7 @@ Su Estado:
Calls Dialing: - +
TRANSFERIR LLAMADA ACTIVA
Canal que va a ser transferido: Canal
TRANSFERIR LLAMADA ACTIVA
Canal que va a ser transferido: Canal
Extensiones:
Menú Extensiones

@@ -5678,7 +5766,7 @@ Su Estado:
Calls Dialing: -
VICIDIAL SCRIPT
+
VICIDIAL SCRIPT
@@ -5688,7 +5776,7 @@ Su Estado:
Calls Dialing: - +
-
ESTADO:
@@ -5725,7 +5813,7 @@ GRABACIÓN ID:
+ diff --git a/LANG_www/agc_fr/vicidial.php b/LANG_www/agc_fr/vicidial.php index 17969aff..130c2051 100644 --- a/LANG_www/agc_fr/vicidial.php +++ b/LANG_www/agc_fr/vicidial.php @@ -131,6 +131,7 @@ # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries # 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -176,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.104'; -$build = '61130-1617'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -4568,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4616,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5351,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5378,7 +5465,7 @@ echo "\n"; - +
@@ -5388,11 +5475,11 @@ echo "\n"; - +
- +
VICICOMPOSER SCRIPT   LIVE     Id de session:   LIVE     Id de session: Appel en cours
@@ -5400,7 +5487,7 @@ echo "\n"; -

VICICOMPOSER
+

VICICOMPOSER
@@ -5412,7 +5499,7 @@ echo "\n"; -
RAPPELS PERSONNELS :
Selectionnez un rappel a éffectuer immédiatement. Une fois éffectué, ce rappel diparaitra de la liste. +
RAPPELS PERSONNELS :
Selectionnez un rappel a éffectuer immédiatement. Une fois éffectué, ce rappel diparaitra de la liste.

  @@ -5423,7 +5510,7 @@ echo "\n"; -
NOUVEL APPEL MANUEL VERS :

Nouveau prospect: remplissez le formulaire ci dessous. +
NOUVEL APPEL MANUEL VERS :

Nouveau prospect: remplissez le formulaire ci dessous.
\n"; -
+
- + Votre Statut:
Calls Dialing:
- +
Transfert - Conférence
@@ -5500,7 +5587,7 @@ Votre Statut:
Calls Dialing: - +
@@ -5508,7 +5595,7 @@ Votre Statut:
Calls Dialing: -
Fiche Prospect Statuée en:

-
+
Raccourcis clavier des Statut: Si actif, utilisez le raccourci clavier pour statuer et raccrocher un appel:
@@ -5524,7 +5611,7 @@ Votre Statut:
Calls Dialing: - +
@@ -5541,7 +5628,7 @@ Votre Statut:
Calls Dialing: -
Information De Rappels: close
Votre session est vide:
+
Votre session est vide:
Retour

Rappeler l'agent @@ -5549,7 +5636,7 @@ Votre Statut:
Calls Dialing: -
Le client a raccroché:
+
Le client a raccroché:
Retour

Terminer et Statuer l'Appel @@ -5558,7 +5645,7 @@ Votre Statut:
Calls Dialing: -
Traitement Post Appel : secondes restant pour le traitement post appel

+
Traitement Post Appel : secondes restant pour le traitement post appel



Terminer le traitement post appel et continuer @@ -5567,7 +5654,7 @@ Votre Statut:
Calls Dialing: -

DÉCONNEXION
+

DÉCONNEXION
@@ -5579,11 +5666,11 @@ Votre Statut:
Calls Dialing: -
Aucune modification ne peut être prise en compte, les modifications doivent être validées avant de raccrocher.
+
Aucune modification ne peut être prise en compte, les modifications doivent être validées avant de raccrocher.
-
STATUER L'APPEL :       Décrochement Encore       réduire
+
STATUER L'APPEL :       Décrochement Encore       réduire
Selection du status de fin d'appel
PAUSE DE LA NUMEROTATION
@@ -5597,7 +5684,7 @@ Votre Statut:
Calls Dialing: -
Choisissez une date de Rappel :
+
Choisissez une date de Rappel :
Choisissez une date ci-dessous   @@ -5640,7 +5727,7 @@ Votre Statut:
Calls Dialing: -
UN CHOIX DE GROUPE D'ARRIVÉE PLUS ÉTROIT
+
UN CHOIX DE GROUPE D'ARRIVÉE PLUS ÉTROIT
Un Choix De Groupe D'arrivée Plus étroit
APPEL EN MODE BLENDED(Mode "Appels Sortants" Activé)
@@ -5663,7 +5750,7 @@ Votre Statut:
Calls Dialing: - +
TRANSFERT D'APPEL EN COURS
Canal à transférer: Canal
TRANSFERT D'APPEL EN COURS
Canal à transférer: Canal
Extensions:
Extensions

@@ -5679,7 +5766,7 @@ Votre Statut:
Calls Dialing: -
VICICOMPOSER SCRIPT
+
VICICOMPOSER SCRIPT
@@ -5689,7 +5776,7 @@ Votre Statut:
Calls Dialing: - +
-
STATUT:
@@ -5726,7 +5813,7 @@ IDENTIFIANT:
+ diff --git a/LANG_www/agc_it/manager_send.php b/LANG_www/agc_it/manager_send.php index 37e3a76e..7c50d25e 100644 --- a/LANG_www/agc_it/manager_send.php +++ b/LANG_www/agc_it/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc_it/vicidial.php b/LANG_www/agc_it/vicidial.php index 1539e452..9ae6a647 100644 --- a/LANG_www/agc_it/vicidial.php +++ b/LANG_www/agc_it/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n"; - +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICICHIAMA SCRIPT   LIVE     ID di sessione:   LIVE     ID di sessione: Chimate Attive
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICICHIAMA
+

VICICHIAMA
@@ -5411,7 +5499,7 @@ echo "\n"; -
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. +
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.

  @@ -5422,7 +5510,7 @@ echo "\n"; -
NUOVA CHIAMATA MANUALE PER IL CONTATTO :

Inserisci le informazioni sotto per il nuovo contatto da chiamare. +
NUOVA CHIAMATA MANUALE PER IL CONTATTO :

Inserisci le informazioni sotto per il nuovo contatto da chiamare.
\n"; -
+
- + Vostro Status:
Calls Dialing:
- +
Trasferimento - Conferenza
@@ -5499,7 +5587,7 @@ Vostro Status:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Vostro Status:
Calls Dialing: -
Contatto disposto come:

-
+
tasti funzione per la disposizione: Una volta attiva, premi sulla tastiera per la disposizione sulla chiamata sarà attaccata e disposta automaticamente:
@@ -5523,7 +5611,7 @@ Vostro Status:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Vostro Status:
Calls Dialing: -
Le Informazioni Precedenti Di Chiamata ripetuta: close
Nessuno è nella vostra sessione:
+
Nessuno è nella vostra sessione:
Torna Indietro

Ancora Operatore di chiamata @@ -5548,7 +5636,7 @@ Vostro Status:
Calls Dialing: -
Il cliente ha attaccato:
+
Il cliente ha attaccato:
Torna Indietro

Termina e disponi la chiamata @@ -5557,7 +5645,7 @@ Vostro Status:
Calls Dialing: -
Chiamata tempo di pausa: secondi restanti prima di nuova chiamata

+
Chiamata tempo di pausa: secondi restanti prima di nuova chiamata



Tempo scaduto, sbrigarsi @@ -5566,7 +5654,7 @@ Vostro Status:
Calls Dialing: -

LOGOUT
+

LOGOUT
@@ -5578,11 +5666,11 @@ Vostro Status:
Calls Dialing: -
Tutti i cambiamenti fatti sulle informazioni del cliente sotto non saranno effettuate, cambiare le informazioni prima di attaccare.
+
Tutti i cambiamenti fatti sulle informazioni del cliente sotto non saranno effettuate, cambiare le informazioni prima di attaccare.
-
DISPOSIZIONE CHIAMATA :       Attacca ancora       minimizza
+
DISPOSIZIONE CHIAMATA :       Attacca ancora       minimizza
Selezione di fine chiamata
PAUSA OPERATORE
@@ -5596,7 +5684,7 @@ Vostro Status:
Calls Dialing: -
Selezionate una richiamata :
+
Selezionate una richiamata :
Selezioni una data sotto   @@ -5639,7 +5727,7 @@ Vostro Status:
Calls Dialing: -
SELEZIONE DI GRUPPO INBOUND PIÙ VICINO
+
SELEZIONE DI GRUPPO INBOUND PIÙ VICINO
Selezione di Gruppo Inbound più vicino
CHIAMATA MESCOLATA(outbound attivato)
@@ -5662,7 +5750,7 @@ Vostro Status:
Calls Dialing: - +
TRASFERIMENTO CHIAMATA ATTIVA
Canale trasferito: Canale
TRASFERIMENTO CHIAMATA ATTIVA
Canale trasferito: Canale
Interni:
Menu degli Interni

@@ -5678,7 +5766,7 @@ Vostro Status:
Calls Dialing: -
VICICHIAMA SCRIPT
+
VICICHIAMA SCRIPT
@@ -5688,7 +5776,7 @@ Vostro Status:
Calls Dialing: - +
-
STATUS:
@@ -5725,7 +5813,7 @@ IDENTIFICAZIONE Registrazione: + diff --git a/LANG_www/agc_pl/manager_send.php b/LANG_www/agc_pl/manager_send.php index 9f9cdbf3..25f9b4d7 100644 --- a/LANG_www/agc_pl/manager_send.php +++ b/LANG_www/agc_pl/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc_pl/vicidial.php b/LANG_www/agc_pl/vicidial.php index 78e168e8..706c1a37 100644 --- a/LANG_www/agc_pl/vicidial.php +++ b/LANG_www/agc_pl/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n"; - +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICIWYBIERZ SCRIPT   LIVE     ID sesji:   LIVE     ID sesji: Aktywna rozmowa
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICIWYBIERZ
+

VICIWYBIERZ
@@ -5411,7 +5499,7 @@ echo "\n"; -
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. +
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.

  @@ -5422,7 +5510,7 @@ echo "\n"; -
NOWE RĘCZNE WYBIERANIE NUMERU DLA :

Wpisz poniżej informacje o kontakcie do którego chcesz wykonać połączenie. +
NOWE RĘCZNE WYBIERANIE NUMERU DLA :

Wpisz poniżej informacje o kontakcie do którego chcesz wykonać połączenie.
\n"; -
+
- + Twój Status:
Calls Dialing:
- +
Transfer - Konferencja
@@ -5499,7 +5587,7 @@ Twój Status:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Twój Status:
Calls Dialing: -
Połączenie rozdysponowane jako:

-
+
Klawisze skrótu dyspozycji: Kiedy aktywne, naciśnij guzik na klawiaturze w celu wybrania opcji dla tej rozmowy. Rozmowa zostanie automatycznie rozłączona a opcja ustawiona:
@@ -5523,7 +5611,7 @@ Twój Status:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Twój Status:
Calls Dialing: -
Previous Callback Information: close
Nikt nie uczestniczy w Twojej sesji:
+
Nikt nie uczestniczy w Twojej sesji:
Wróć

Ponownie połącz się z telefonem @@ -5548,7 +5636,7 @@ Twój Status:
Calls Dialing: -
Klient sie rozłączył:
+
Klient sie rozłączył:
Wróć

Zakończ i wprowadź rezultat rozmowy @@ -5557,7 +5645,7 @@ Twój Status:
Calls Dialing: -
Call Wrapup sekundy remaining in wrapup

+
Call Wrapup sekundy remaining in wrapup



Finish Wrapup and Move On @@ -5566,7 +5654,7 @@ Twój Status:
Calls Dialing: -

WYLOGUJ
+

WYLOGUJ
@@ -5578,11 +5666,11 @@ Twój Status:
Calls Dialing: -
Zmiany wprowadzone w informacjach o kliencie będą zapisane tylko podczas trwania połączenia. Nie po rozłączaniu!.
+
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
+
REZULTAT ROZMOWY :       Rozłącz się ponownie       minimalizuj
Koniec rozmowy, wybierz rezultat
ZATRZYMAJ DZWONIENIE
@@ -5596,7 +5684,7 @@ Twój Status:
Calls Dialing: -
Wybierz datę oddzwonienia :
+
Wybierz datę oddzwonienia :
Wybierz datę poniżej   @@ -5639,7 +5727,7 @@ Twój Status:
Calls Dialing: -
SELEKCJA GRUPY ZAWNĘTRZNYCH FINALIZUJĄCYCH
+
SELEKCJA GRUPY ZAWNĘTRZNYCH FINALIZUJĄCYCH
Selekcja grupy zawnętrznych finalizujących
KOMBINOWANE POŁĄCZENIA(wychodzące aktywowane)
@@ -5662,7 +5750,7 @@ Twój Status:
Calls Dialing: - +
AKTYWNA ROZMOWA PRZENIESIONA
Kanały do przeniesienia: Kanał
AKTYWNA ROZMOWA PRZENIESIONA
Kanały do przeniesienia: Kanał
NumerWenętrzny:
Menu rozszerzeń

@@ -5678,7 +5766,7 @@ Twój Status:
Calls Dialing: -
VICIWYBIERZ SCRIPT
+
VICIWYBIERZ SCRIPT
@@ -5688,7 +5776,7 @@ Twój Status:
Calls Dialing: - +
-
STATUS:
@@ -5725,7 +5813,7 @@ NUMER NAGRANIA:
+ diff --git a/LANG_www/agc_pt/manager_send.php b/LANG_www/agc_pt/manager_send.php index 3e05f71f..485587de 100644 --- a/LANG_www/agc_pt/manager_send.php +++ b/LANG_www/agc_pt/manager_send.php @@ -62,6 +62,8 @@ # 60619-1158 - Added variable filters to close security holes for login form # 60809-1544 - Added direct transfers to leave-3ways in consultative transfers # 61004-1526 - Added parsing of volume control command and lookup or number +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61201-1115 - Added user to MonitorConf for recording_log # require("dbconnect.php"); @@ -131,8 +133,8 @@ if (!isset($ACTION)) {$ACTION="Originate";} if (!isset($format)) {$format="alert";} if (!isset($ext_priority)) {$ext_priority="1";} -$version = '0.0.26'; -$build = '61004-1526'; +$version = '2.0.27'; +$build = '61130-1617'; $StarTtime = date("U"); $NOW_DATE = date("Y-m-d"); $NOW_TIME = date("Y-m-d H:i:s"); @@ -881,7 +883,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") ) if ($ACTION=="Monitor") { - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); @@ -943,7 +945,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); - $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename')"; + $stmt = "INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,filename,lead_id,user) values('$channel','$server_ip','$exten','$NOW_TIME','$StarTtime','$filename','$lead_id','$user')"; if ($format=='debug') {echo "\n";} $rslt=mysql_query($stmt, $link); diff --git a/LANG_www/agc_pt/vicidial.php b/LANG_www/agc_pt/vicidial.php index 40d9bfaa..1723bd8c 100644 --- a/LANG_www/agc_pt/vicidial.php +++ b/LANG_www/agc_pt/vicidial.php @@ -130,6 +130,8 @@ # 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions # 61122-1523 - Added more SCRIPT variables # 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries +# 61130-1617 - Added lead_id to MonitorConf for recording_log +# 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # require("dbconnect.php"); @@ -175,8 +177,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.103'; -$build = '61128-2229'; +$version = '2.0.105'; +$build = '61221-1212'; if ($force_logout) { @@ -2047,7 +2049,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("RecorDControl").innerHTML = conf_rec_start_html; } } - confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&ext_priority=1"; + confmonitor_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + taskconfrectype + "&format=text&channel=" + channelrec + "&filename=" + filename + "&exten=" + query_recording_exten + "&ext_context=" + ext_context + "&lead_id=" + document.vicidial_form.lead_id.value + "&ext_priority=1"; xmlhttp.open('POST', 'manager_send.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(confmonitor_query); @@ -4567,14 +4569,101 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // decode the scripttext and scriptname so that it can be didsplayed function URLDecode(encodedvar,scriptformat) { - // Replace %ZZ with equivalent character - // Put [ERR] in output if %ZZ is invalid. - var HEXCHAR = "0123456789ABCDEFabcdef"; - var encoded = encodedvar; - decoded = ''; - var i = 0; + // Replace %ZZ with equivalent character + // Put [ERR] in output if %ZZ is invalid. + var HEXCHAR = "0123456789ABCDEFabcdef"; + var encoded = encodedvar; + decoded = ''; + var i = 0; + var RGnl = new RegExp("\n","g"); + var RGplus = new RegExp(" ","g"); + var RGiframe = new RegExp("iframe","gi"); + if (scriptformat == 'YES') { + var SCvendor_lead_code = document.vicidial_form.vendor_lead_code.value; + var SCsource_id = ""; + var SClist_id = document.vicidial_form.list_id.value; + var SCgmt_offset_now = document.vicidial_form.gmt_offset_now.value; + var SCcalled_since_last_reset = ""; + var SCphone_code = document.vicidial_form.phone_code.value; + var SCphone_number = document.vicidial_form.phone_number.value; + var SCtitle = document.vicidial_form.title.value; + var SCfirst_name = document.vicidial_form.first_name.value; + var SCmiddle_initial = document.vicidial_form.middle_initial.value; + var SClast_name = document.vicidial_form.last_name.value; + var SCaddress1 = document.vicidial_form.address1.value; + var SCaddress2 = document.vicidial_form.address2.value; + var SCaddress3 = document.vicidial_form.address3.value; + var SCcity = document.vicidial_form.city.value; + var SCstate = document.vicidial_form.state.value; + var SCprovince = document.vicidial_form.province.value; + var SCpostal_code = document.vicidial_form.postal_code.value; + var SCcountry_code = document.vicidial_form.country_code.value; + var SCgender = document.vicidial_form.gender.value; + var SCdate_of_birth = document.vicidial_form.date_of_birth.value; + var SCalt_phone = document.vicidial_form.alt_phone.value; + var SCemail = document.vicidial_form.email.value; + var SCsecurity_phrase = document.vicidial_form.security_phrase.value; + var SCcomments = document.vicidial_form.comments.value; + var SCfullname = LOGfullname; + var SCfronter = fronter; + var SCuser = user; + var SClead_id = document.vicidial_form.lead_id.value; + var SCcampaign = campaign; + var SCphone_login = phone_login; + var SCgroup = group; + var SCchannel_group = group; + var SCSQLdate = SQLdate; + var SCepoch = UnixTime; + var SCuniqueid = document.vicidial_form.uniqueid.value; + var SCcustomer_zap_channel = lastcustchannel; + var SCserver_ip = server_ip; + var SCSIPexten = extension; + var SCsession_id = session_id; + + if (encoded.match(RGiframe)) + { + SCvendor_lead_code = SCvendor_lead_code.replace(RGplus,'+'); + SCsource_id = SCsource_id.replace(RGplus,'+'); + SClist_id = SClist_id.replace(RGplus,'+'); + SCgmt_offset_now = SCgmt_offset_now.replace(RGplus,'+'); + SCcalled_since_last_reset = SCcalled_since_last_reset.replace(RGplus,'+'); + SCphone_code = SCphone_code.replace(RGplus,'+'); + SCphone_number = SCphone_number.replace(RGplus,'+'); + SCtitle = SCtitle.replace(RGplus,'+'); + SCfirst_name = SCfirst_name.replace(RGplus,'+'); + SCmiddle_initial = SCmiddle_initial.replace(RGplus,'+'); + SClast_name = SClast_name.replace(RGplus,'+'); + SCaddress1 = SCaddress1.replace(RGplus,'+'); + SCaddress2 = SCaddress2.replace(RGplus,'+'); + SCaddress3 = SCaddress3.replace(RGplus,'+'); + SCcity = SCcity.replace(RGplus,'+'); + SCstate = SCstate.replace(RGplus,'+'); + SCprovince = SCprovince.replace(RGplus,'+'); + SCpostal_code = SCpostal_code.replace(RGplus,'+'); + SCcountry_code = SCcountry_code.replace(RGplus,'+'); + SCgender = SCgender.replace(RGplus,'+'); + SCdate_of_birth = SCdate_of_birth.replace(RGplus,'+'); + SCalt_phone = SCalt_phone.replace(RGplus,'+'); + SCemail = SCemail.replace(RGplus,'+'); + SCsecurity_phrase = SCsecurity_phrase.replace(RGplus,'+'); + SCcomments = SCcomments.replace(RGplus,'+'); + SCfullname = SCfullname.replace(RGplus,'+'); + SCfronter = SCfronter.replace(RGplus,'+'); + SCuser = SCuser.replace(RGplus,'+'); + SClead_id = SClead_id.replace(RGplus,'+'); + SCcampaign = SCcampaign.replace(RGplus,'+'); + SCphone_login = SCphone_login.replace(RGplus,'+'); + SCgroup = SCgroup.replace(RGplus,'+'); + SCchannel_group = SCchannel_group.replace(RGplus,'+'); + SCSQLdate = SCSQLdate.replace(RGplus,'+'); + SCuniqueid = SCuniqueid.replace(RGplus,'+'); + SCcustomer_zap_channel = SCcustomer_zap_channel.replace(RGplus,'+'); + SCserver_ip = SCserver_ip.replace(RGplus,'+'); + SCSIPexten = SCSIPexten.replace(RGplus,'+'); + } + var RGvendor_lead_code = new RegExp("--A--vendor_lead_code--B--","g"); var RGsource_id = new RegExp("--A--source_id--B--","g"); var RGlist_id = new RegExp("--A--list_id--B--","g"); @@ -4615,48 +4704,47 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var RGserver_ip = new RegExp("--A--server_ip--B--","g"); var RGSIPexten = new RegExp("--A--SIPexten--B--","g"); var RGsession_id = new RegExp("--A--session_id--B--","g"); - var RGnl = new RegExp("\n","g"); - encoded = encoded.replace(RGvendor_lead_code, document.vicidial_form.vendor_lead_code.value); - encoded = encoded.replace(RGsource_id, ""); - encoded = encoded.replace(RGlist_id, document.vicidial_form.list_id.value); - encoded = encoded.replace(RGgmt_offset_now, document.vicidial_form.gmt_offset_now.value); - encoded = encoded.replace(RGcalled_since_last_reset, ""); - encoded = encoded.replace(RGphone_code, document.vicidial_form.phone_code.value); - encoded = encoded.replace(RGphone_number, document.vicidial_form.phone_number.value); - encoded = encoded.replace(RGtitle, document.vicidial_form.title.value); - encoded = encoded.replace(RGfirst_name, document.vicidial_form.first_name.value); - encoded = encoded.replace(RGmiddle_initial, document.vicidial_form.middle_initial.value); - encoded = encoded.replace(RGlast_name, document.vicidial_form.last_name.value); - encoded = encoded.replace(RGaddress1, document.vicidial_form.address1.value); - encoded = encoded.replace(RGaddress2, document.vicidial_form.address2.value); - encoded = encoded.replace(RGaddress3, document.vicidial_form.address3.value); - encoded = encoded.replace(RGcity, document.vicidial_form.city.value); - encoded = encoded.replace(RGstate, document.vicidial_form.state.value); - encoded = encoded.replace(RGprovince, document.vicidial_form.province.value); - encoded = encoded.replace(RGpostal_code, document.vicidial_form.postal_code.value); - encoded = encoded.replace(RGcountry_code, document.vicidial_form.country_code.value); - encoded = encoded.replace(RGgender, document.vicidial_form.gender.value); - encoded = encoded.replace(RGdate_of_birth, document.vicidial_form.date_of_birth.value); - encoded = encoded.replace(RGalt_phone, document.vicidial_form.alt_phone.value); - encoded = encoded.replace(RGemail, document.vicidial_form.email.value); - encoded = encoded.replace(RGsecurity_phrase, document.vicidial_form.security_phrase.value); - encoded = encoded.replace(RGcomments, document.vicidial_form.comments.value); - encoded = encoded.replace(RGfullname, LOGfullname); - encoded = encoded.replace(RGfronter, fronter); - encoded = encoded.replace(RGuser, user); - encoded = encoded.replace(RGlead_id, document.vicidial_form.lead_id.value); - encoded = encoded.replace(RGcampaign, campaign); - encoded = encoded.replace(RGphone_login, phone_login); - encoded = encoded.replace(RGgroup, group); - encoded = encoded.replace(RGchannel_group, group); - encoded = encoded.replace(RGSQLdate, SQLdate); - encoded = encoded.replace(RGepoch, UnixTime); - encoded = encoded.replace(RGuniqueid, document.vicidial_form.uniqueid.value); - encoded = encoded.replace(RGcustomer_zap_channel, lastcustchannel); - encoded = encoded.replace(RGserver_ip, server_ip); - encoded = encoded.replace(RGSIPexten, extension); - encoded = encoded.replace(RGsession_id, session_id); + encoded = encoded.replace(RGvendor_lead_code, SCvendor_lead_code); + encoded = encoded.replace(RGsource_id, SCsource_id); + encoded = encoded.replace(RGlist_id, SClist_id); + encoded = encoded.replace(RGgmt_offset_now, SCgmt_offset_now); + encoded = encoded.replace(RGcalled_since_last_reset, SCcalled_since_last_reset); + encoded = encoded.replace(RGphone_code, SCphone_code); + encoded = encoded.replace(RGphone_number, SCphone_number); + encoded = encoded.replace(RGtitle, SCtitle); + encoded = encoded.replace(RGfirst_name, SCfirst_name); + encoded = encoded.replace(RGmiddle_initial, SCmiddle_initial); + encoded = encoded.replace(RGlast_name, SClast_name); + encoded = encoded.replace(RGaddress1, SCaddress1); + encoded = encoded.replace(RGaddress2, SCaddress2); + encoded = encoded.replace(RGaddress3, SCaddress3); + encoded = encoded.replace(RGcity, SCcity); + encoded = encoded.replace(RGstate, SCstate); + encoded = encoded.replace(RGprovince, SCprovince); + encoded = encoded.replace(RGpostal_code, SCpostal_code); + encoded = encoded.replace(RGcountry_code, SCcountry_code); + encoded = encoded.replace(RGgender, SCgender); + encoded = encoded.replace(RGdate_of_birth, SCdate_of_birth); + encoded = encoded.replace(RGalt_phone, SCalt_phone); + encoded = encoded.replace(RGemail, SCemail); + encoded = encoded.replace(RGsecurity_phrase, SCsecurity_phrase); + encoded = encoded.replace(RGcomments, SCcomments); + encoded = encoded.replace(RGfullname, SCfullname); + encoded = encoded.replace(RGfronter, SCfronter); + encoded = encoded.replace(RGuser, SCuser); + encoded = encoded.replace(RGlead_id, SClead_id); + encoded = encoded.replace(RGcampaign, SCcampaign); + encoded = encoded.replace(RGphone_login, SCphone_login); + encoded = encoded.replace(RGgroup, SCgroup); + encoded = encoded.replace(RGchannel_group, SCchannel_group); + encoded = encoded.replace(RGSQLdate, SCSQLdate); + encoded = encoded.replace(RGepoch, SCepoch); + encoded = encoded.replace(RGuniqueid, SCuniqueid); + encoded = encoded.replace(RGcustomer_zap_channel, SCcustomer_zap_channel); + encoded = encoded.replace(RGserver_ip, SCserver_ip); + encoded = encoded.replace(RGSIPexten, SCSIPexten); + encoded = encoded.replace(RGsession_id, SCsession_id); } while (i < encoded.length) { var ch = encoded.charAt(i); @@ -5350,7 +5438,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} div.scroll_callback {height: 300px; width: 620px; overflow: scroll;} div.scroll_park {height: 400px; width: 620px; overflow: scroll;} div.scroll_list {height: 400px; width: 140px; overflow: scroll;} - div.scroll_script {height: 331px; width: 480px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} + div.scroll_script {height: 331px; width: 600px; background: #FFF5EC; overflow: scroll; font-size: 12px; font-family: sans-serif;} .body_text {font-size: 13px; font-family: sans-serif;} .preview_text {font-size: 13px; font-family: sans-serif; background: #CCFFCC} .preview_text_red {font-size: 13px; font-family: sans-serif; background: #FFCCCC} @@ -5377,7 +5465,7 @@ echo "\n"; - +
@@ -5387,11 +5475,11 @@ echo "\n"; - +
- +
VICISELETOR SCRIPT   LIVE     sessão ID:   LIVE     sessão ID: Vive A Chamada
@@ -5399,7 +5487,7 @@ echo "\n"; -

VICISELETOR
+

VICISELETOR
@@ -5411,7 +5499,7 @@ echo "\n"; -
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. +
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.

  @@ -5422,7 +5510,7 @@ echo "\n"; -
LIGAÇÃO MANUAL NOVA DO SELETOR PARA :

Incorpore a informação abaixo para a ligação que nova você deseja se chamar. +
LIGAÇÃO MANUAL NOVA DO SELETOR PARA :

Incorpore a informação abaixo para a ligação que nova você deseja se chamar.
\n"; -
+
- + Seu Status:
Calls Dialing:
- +
Transferência - Conferência
@@ -5499,7 +5587,7 @@ Seu Status:
Calls Dialing: - +
@@ -5507,7 +5595,7 @@ Seu Status:
Calls Dialing: -
Ligação Dispositioned Como:

-
+
Chaves Quentes Da Disposição: Quando ativo, pressione simplesmente a chave de teclado para a:
@@ -5523,7 +5611,7 @@ Seu Status:
Calls Dialing: - +
@@ -5540,7 +5628,7 @@ Seu Status:
Calls Dialing: -
Informação Precedente Da Rechamada: close
Noone está em sua sessão:
+
Noone está em sua sessão:
Vá Para trás

Agente Da Chamada Outra vez @@ -5548,7 +5636,7 @@ Seu Status:
Calls Dialing: -
O cliente pendurou acima:
+
O cliente pendurou acima:
Vá Para trás

Revestimento e chamada da disposição @@ -5557,7 +5645,7 @@ Seu Status:
Calls Dialing: -
Chamada Wrapup: segundos restantes no wrapup

+
Chamada Wrapup: segundos restantes no wrapup



Revestimento Wrapup e movimento sobre @@ -5566,7 +5654,7 @@ Seu Status:
Calls Dialing: -

LOGOUT
+

LOGOUT
@@ -5578,11 +5666,11 @@ Seu Status:
Calls Dialing: -
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.
+
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.
-
CHAMADA DA DISPOSIÇÃO :       Hangup Outra vez       minimize
+
CHAMADA DA DISPOSIÇÃO :       Hangup Outra vez       minimize
Extremidade-$$$-CHAME A Seleção Da Disposição
PARE DE CHAMAR-SE
@@ -5596,7 +5684,7 @@ Seu Status:
Calls Dialing: -
Selecione uma data da rechamada :
+
Selecione uma data da rechamada :
Selecione uma data abaixo   @@ -5639,7 +5727,7 @@ Seu Status:
Calls Dialing: -
SELEÇÃO DE GRUPO INBOUND MAIS PRÓXIMA
+
SELEÇÃO DE GRUPO INBOUND MAIS PRÓXIMA
Seleção De Grupo Inbound Mais próxima
CHAMADA MISTURADA(outbound ativado)
@@ -5662,7 +5750,7 @@ Seu Status:
Calls Dialing: - +
TRANSFERÊNCIA VIVA DA CHAMADA
Canaleta a ser transferida: Canaleta
TRANSFERÊNCIA VIVA DA CHAMADA
Canaleta a ser transferida: Canaleta
Extensões:
Menu Das Extensões

@@ -5678,7 +5766,7 @@ Seu Status:
Calls Dialing: -
VICISELETOR SCRIPT
+
VICISELETOR SCRIPT
@@ -5688,7 +5776,7 @@ Seu Status:
Calls Dialing: - +
-"; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial/AST_timeonVDADallSUMMARY.php b/LANG_www/vicidial/AST_timeonVDADallSUMMARY.php index 0a0557e4..a14194f8 100644 --- a/LANG_www/vicidial/AST_timeonVDADallSUMMARY.php +++ b/LANG_www/vicidial/AST_timeonVDADallSUMMARY.php @@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $DAleads = $row[0]; @@ -165,6 +165,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -211,7 +212,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial/admin.php b/LANG_www/vicidial/admin.php index 5ed6188a..1867342b 100644 --- a/LANG_www/vicidial/admin.php +++ b/LANG_www/vicidial/admin.php @@ -1907,7 +1907,7 @@ echo "
STATUS:
@@ -5725,7 +5813,7 @@ ID REGISTRO:
+ diff --git a/LANG_www/vicidial/AST_VDADstats.php b/LANG_www/vicidial/AST_VDADstats.php index 5dde09ac..3dd9b290 100644 --- a/LANG_www/vicidial/AST_VDADstats.php +++ b/LANG_www/vicidial/AST_VDADstats.php @@ -7,6 +7,7 @@ # # 60619-1718 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 61215-1139 - Added drop percentage of answered and round-2 decimal # header ("Content-type: text/html; charset=utf-8"); @@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Total Calls placed from this Campaign: $TOTALcalls\n"; @@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= ' $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); - $DROPcalls = sprintf("%10s", $row[0]); +$DROPcallsRAW = $row[0]; +$DROPseconds = $row[1]; + +$stmt="select count(*) from vicidial_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 status NOT IN('NA','B');"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); +$ANSWERcalls = $row[0]; + if ( ($DROPcalls < 1) or ($TOTALcalls < 1) ) {$DROPpercent = '0';} else { - $DROPpercent = (($DROPcalls / $TOTALcalls) * 100); - $DROPpercent = round($DROPpercent, 0); + $DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100); + $DROPpercent = round($DROPpercent, 2); } -if ( ($row[0] < 1) or ($row[1] < 1) ) +if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) ) + {$DROPANSWERpercent = '0';} +else + { + $DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100); + $DROPANSWERpercent = round($DROPANSWERpercent, 2); + } + +if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) ) {$average_hold_seconds = ' 0';} else { - $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = ($DROPseconds / $DROPcallsRAW); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Total DROP Calls: $DROPcalls $DROPpercent%\n"; +echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n"; echo "Average Length for DROP Calls in seconds: $average_hold_seconds\n"; echo "\n"; echo "---------- AUTO-DIAL NO ANSWERS\n"; -$stmt="select count(*),sum(length_in_sec) from vicidial_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 status='NA' and (length_in_sec <= 60 or length_in_sec is null);"; +$stmt="select count(*),sum(length_in_sec) from vicidial_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 status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); @@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) ) else { $NApercent = (($NAcalls / $TOTALcalls) * 100); - $NApercent = round($NApercent, 0); + $NApercent = round($NApercent, 2); } if ( ($row[0] < 1) or ($row[1] < 1) ) @@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_na_seconds = ($row[1] / $row[0]); - $average_na_seconds = round($average_na_seconds, 0); + $average_na_seconds = round($average_na_seconds, 2); $average_na_seconds = sprintf("%10s", $average_na_seconds); } -echo "Total NA calls -Busy,Disconnect,BTvoicemail: $NAcalls $NApercent%\n"; +echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n"; echo "Average Call Length for NA Calls in seconds: $average_na_seconds\n"; diff --git a/LANG_www/vicidial/AST_agent_time_sheet.php b/LANG_www/vicidial/AST_agent_time_sheet.php index 46659eb6..017d39d6 100644 --- a/LANG_www/vicidial/AST_agent_time_sheet.php +++ b/LANG_www/vicidial/AST_agent_time_sheet.php @@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;} \n"; echo "VICIDIAL: Agent Time Sheet\n"; -echo "\n"; -echo "\n"; -echo "\n"; +echo "VICIDIAL ADMIN: Agent Time Sheet
\n"; +echo "   \n"; +echo "Date: \n"; +echo "User ID: \n"; echo "\n"; echo "\n\n"; diff --git a/LANG_www/vicidial/AST_agent_time_sheet_archive.php b/LANG_www/vicidial/AST_agent_time_sheet_archive.php index f14eca16..273df49d 100644 --- a/LANG_www/vicidial/AST_agent_time_sheet_archive.php +++ b/LANG_www/vicidial/AST_agent_time_sheet_archive.php @@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;} \n"; echo "VICIDIAL: Agent Time Sheet\n"; -echo "
\n"; -echo "\n"; -echo "\n"; +echo "VICIDIAL ADMIN: Agent Time Sheet Archive
\n"; +echo "   \n"; +echo "Date: \n"; +echo "User ID: \n"; echo "\n"; echo "
\n\n"; diff --git a/LANG_www/vicidial/AST_timeonVDADall.php b/LANG_www/vicidial/AST_timeonVDADall.php index b4c93e08..3eae6859 100644 --- a/LANG_www/vicidial/AST_timeonVDADall.php +++ b/LANG_www/vicidial/AST_timeonVDADall.php @@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; if ($group=='XXXX-ALL-ACTIVE-XXXX') { - $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;"; + $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;"; } $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); @@ -298,6 +298,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -348,7 +349,7 @@ echo "
HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
Script Text - This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, 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, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----

Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

This would read----

Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
-<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> +<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> </iframe>
@@ -2009,7 +2009,7 @@ The VICIDIAL basic web-based lead loader is designed simply to take a lead file
  • Comments -
    NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /home/cron/AST_SERVER_conf.pl file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file. +
    NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file. @@ -2576,7 +2576,7 @@ exit; if ($ADD==7111111) { ##### TEST VARIABLES ##### - $vendor_lead_code = 'VENDORLEADCODE'; + $vendor_lead_code = 'VENDOR:LEAD;CODE'; $list_id = 'LISTID'; $gmt_offset_now = 'GMTOFFSET'; $phone_code = '1'; @@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt); $script_name = $row[1]; $script_text = $row[3]; +if (eregi("iframe src",$script_text)) + { + $vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code); + $list_id = eregi_replace(' ','+',$list_id); + $gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now); + $phone_code = eregi_replace(' ','+',$phone_code); + $phone_number = eregi_replace(' ','+',$phone_number); + $title = eregi_replace(' ','+',$title); + $first_name = eregi_replace(' ','+',$first_name); + $middle_initial = eregi_replace(' ','+',$middle_initial); + $last_name = eregi_replace(' ','+',$last_name); + $address1 = eregi_replace(' ','+',$address1); + $address2 = eregi_replace(' ','+',$address2); + $address3 = eregi_replace(' ','+',$address2); + $city = eregi_replace(' ','+',$city); + $state = eregi_replace(' ','+',$state); + $province = eregi_replace(' ','+',$province); + $postal_code = eregi_replace(' ','+',$postal_code); + $country_code = eregi_replace(' ','+',$country_code); + $gender = eregi_replace(' ','+',$gender); + $date_of_birth = eregi_replace(' ','+',$date_of_birth); + $alt_phone = eregi_replace(' ','+',$alt_phone); + $email = eregi_replace(' ','+',$email); + $security_phrase = eregi_replace(' ','+',$security_phrase); + $comments = eregi_replace(' ','+',$comments); + $RGfullname = eregi_replace(' ','+',$RGfullname); + $RGuser = eregi_replace(' ','+',$RGuser); + $RGlead_id = eregi_replace(' ','+',$RGlead_id); + $RGcampaign = eregi_replace(' ','+',$RGcampaign); + $RGphone_login = eregi_replace(' ','+',$RGphone_login); + $RGgroup = eregi_replace(' ','+',$RGgroup); + $RGchannel_group = eregi_replace(' ','+',$RGchannel_group); + $RGSQLdate = eregi_replace(' ','+',$RGSQLdate); + $RGepoch = eregi_replace(' ','+',$RGepoch); + $RGuniqueid = eregi_replace(' ','+',$RGuniqueid); + $RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel); + $RGserver_ip = eregi_replace(' ','+',$RGserver_ip); + $RGSIPexten = eregi_replace(' ','+',$RGSIPexten); + $RGsession_id = eregi_replace(' ','+',$RGsession_id); + } + $script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text); $script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text); $script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text); @@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","
    ",$script_text); echo ""; echo "Preview Script: $script_id
    \n"; -echo "
    \n"; +echo "
    \n"; echo "
    $script_name
    \n"; echo "$script_text\n"; echo "
    \n"; @@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink diff --git a/LANG_www/vicidial/admin_modify_lead.php b/LANG_www/vicidial/admin_modify_lead.php index 9dad4f62..34016b29 100644 --- a/LANG_www/vicidial/admin_modify_lead.php +++ b/LANG_www/vicidial/admin_modify_lead.php @@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW); # 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60609-1112 - Added DNC list addition if status changed to DNC # 60619-1539 - Added variable filtering to eliminate SQL injection attack threat +# 61130-1639 - Added recording_log lookup and list for this lead_id +# 61201-1136 - Added recording_log user(TSR) display and link # $STARTtime = date("U"); @@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
    - VICIDIAL ADMIN: Lead record modification
    \n"; if ($end_call > 0) { @@ -413,21 +415,25 @@ echo "
    \n"; echo "CALLS TO THIS LEAD:\n"; echo "\n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); $u=0; - while ($logs_to_print > $u) { + while ($logs_to_print > $u) + { $row=mysql_fetch_row($rslt); if (eregi("1$|3$|5$|7$|9$", $u)) {$bgcolor='bgcolor="#B9CBFD"';} else {$bgcolor='bgcolor="#9BB9FB"';} - echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -435,11 +441,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; - } + } echo "
    DATE/TIME LENGTH STATUS TSR CAMPAIGN LIST LEAD
    # DATE/TIME LENGTH STATUS TSR CAMPAIGN LIST LEAD
    $row[4]
    $u$row[4] $row[7] $row[8] $row[11]
    DATE/TIME LENGTH $row[1]
    \n"; +echo "

    \n"; + +echo "RECORDINGS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11] $row[13]
    \n"; + diff --git a/LANG_www/vicidial/admin_search_lead.php b/LANG_www/vicidial/admin_search_lead.php index a727e3a1..6b8b0b69 100644 --- a/LANG_www/vicidial/admin_search_lead.php +++ b/LANG_www/vicidial/admin_search_lead.php @@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT"); Lead Lookup - VICIDIAL ADMIN: Lead search
    \n"; + if ( (!$vendor_id) and (!$phone) and (!$lead_id) ) { diff --git a/LANG_www/vicidial/group_hourly_stats.php b/LANG_www/vicidial/group_hourly_stats.php index b7eb1b31..3f8e4fb9 100644 --- a/LANG_www/vicidial/group_hourly_stats.php +++ b/LANG_www/vicidial/group_hourly_stats.php @@ -111,7 +111,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: Group Hourly Stats  
    @@ -160,7 +160,7 @@ echo "
    " ?>   VICIDIAL ADMIN: Group Hourly Stats  
    \n"; echo "
    \n"; -echo "TSR HOUR COUNTS: $group | $status | $date_with_hour | $date_no_hour\n"; +echo "TSR HOUR COUNTS: $group | $status | $date_with_hour | $date_no_hour\n"; echo "
    \n"; echo "\n"; diff --git a/LANG_www/vicidial/phone_stats.php b/LANG_www/vicidial/phone_stats.php new file mode 100644 index 00000000..fca796f2 --- /dev/null +++ b/LANG_www/vicidial/phone_stats.php @@ -0,0 +1,245 @@ + LICENSE: GPLv2 +# +# +# changes: +# 60620-1333 - Added variable filtering to eliminate SQL injection attack threat +# - Added required user/pass to gain access to this page +# 60927-1548 - Changed to vicidial_users for authentication +# + +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["group"])) {$group=$_GET["group"];} + elseif (isset($_POST["group"])) {$group=$_POST["group"];} +if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];} + elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];} +if (isset($_GET["begin_date"])) {$begin_date=$_GET["begin_date"];} + elseif (isset($_POST["begin_date"])) {$begin_date=$_POST["begin_date"];} +if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];} + elseif (isset($_POST["end_date"])) {$end_date=$_POST["end_date"];} +if (isset($_GET["extension"])) {$extension=$_GET["extension"];} + elseif (isset($_POST["extension"])) {$extension=$_POST["extension"];} +if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} + elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} +if (isset($_GET["user"])) {$user=$_GET["user"];} + elseif (isset($_POST["user"])) {$user=$_POST["user"];} +if (isset($_GET["full_name"])) {$full_name=$_GET["full_name"];} + elseif (isset($_POST["full_name"])) {$full_name=$_POST["full_name"];} +if (isset($_GET["submit"])) {$submit=$_GET["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} +if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} + elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} + +$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"); +$admin_page = './admin.php'; + +if (!isset($begin_date)) {$begin_date = $TODAY;} +if (!isset($end_date)) {$end_date = $TODAY;} + + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7;"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + $auth=$row[0]; + +$fp = fopen ("./project_auth_entries.txt", "a"); +$date = date("r"); +$ip = getenv("REMOTE_ADDR"); +$browser = getenv("HTTP_USER_AGENT"); + + if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth)) + { + Header("WWW-Authenticate: Basic realm=\"VICI-ASTERISK\""); + Header("HTTP/1.0 401 Unauthorized"); + echo "Invalid Username/Password: |$PHP_AUTH_USER|$PHP_AUTH_PW|\n"; + exit; + } + else + { + + if($auth>0) + { + $office_no=strtoupper($PHP_AUTH_USER); + $password=strtoupper($PHP_AUTH_PW); + $stmt="SELECT full_name from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW'"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + $LOGfullname=$row[0]; + fwrite ($fp, "ASTERISK|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n"); + fclose($fp); + + ##### get server listing for dynamic pulldown + $stmt="SELECT fullname from phones where server_ip='$server_ip' and extension='$extension'"; + $rsltx=mysql_query($stmt, $link); + $rowx=mysql_fetch_row($rsltx); + $fullname = $row[0]; + } + else + { + fwrite ($fp, "ASTERISK|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n"); + fclose($fp); + } + } + +?> + + +VICIDIAL ADMIN: Phone Stats + + +
    +
    TSR ID   $status   TOTAL CALLS   $status DAY    
    + + + + + + +\n"; +echo "
      VICIDIAL ADMIN: Administration  
      LIST ALL PHONES | ADD A NEW PHONE | SEARCH FOR A PHONE | ADD A SERVER | LIST ALL SERVERS
      SHOW ALL CONFERENCES | ADD A NEW CONFERENCE
      \n"; + +echo "
    \n"; +echo "\n"; +echo "\n"; +echo " to \n"; +echo "  \n"; +echo "\n"; + + +echo "           $user - $full_name\n"; + +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"; + $rslt=mysql_query($stmt, $link); + $statuses_to_print = mysql_num_rows($rslt); +# echo "|$stmt|\n"; + +echo "
    \n"; + +echo "CALL TIME AND CHANNELS:\n"; + +echo "
    \n"; +echo "\n"; + + $total_calls=0; + $o=0; + while ($statuses_to_print > $o) { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $o)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $call_seconds = $row[2]; + $call_hours = ($call_seconds / 3600); + $call_hours = round($call_hours, 2); + $call_hours_int = intval("$call_hours"); + $call_minutes = ($call_hours - $call_hours_int); + $call_minutes = ($call_minutes * 60); + $call_minutes_int = round($call_minutes, 0); + if ($call_minutes_int < 10) {$call_minutes_int = "0$call_minutes_int";} + + echo ""; + echo "\n"; + echo "\n"; + $total_calls = ($total_calls + $row[0]); + + $call_seconds=0; + $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'"; + $rslt=mysql_query($stmt, $link); + $counts_to_print = mysql_num_rows($rslt); + $row=mysql_fetch_row($rslt); + $call_seconds = $row[0]; + $call_hours = ($call_seconds / 3600); + $call_hours = round($call_hours, 2); + $call_hours_int = intval("$call_hours"); + $call_minutes = ($call_hours - $call_hours_int); + $call_minutes = ($call_minutes * 60); + $call_minutes_int = round($call_minutes, 0); + if ($call_minutes_int < 10) {$call_minutes_int = "0$call_minutes_int";} +# echo "|$stmt|\n"; + +echo "\n"; +echo "
    CHANNEL GROUP COUNT HOURS:MINUTES
    $row[1] $row[0] $call_hours_int:$call_minutes_int
    TOTAL CALLS $total_calls $call_hours_int:$call_minutes_int
    \n"; +echo "

    \n"; + +echo "
    \n"; + +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"; + $rslt=mysql_query($stmt, $link); + $events_to_print = mysql_num_rows($rslt); +# echo "|$stmt|\n"; + + $total_calls=0; + $o=0; + $event_start_seconds=''; + $event_stop_seconds=''; + while ($events_to_print > $o) { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $o)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + + + $call_seconds=0; + $o++; + } + + +echo "
    NUMBER CHANNEL GROUP DATE LENGTH(MIN.)
    $row[0] $row[1] $row[2] $row[3]
    \n"; + + +$ENDtime = date("U"); + +$RUNtime = ($ENDtime - $STARTtime); + +echo "\n\n\n


    \n\n"; + + +echo "\n\n\n


    \nscript runtime: $RUNtime seconds
    "; + + +?> + + +
    + + + + + + + + + diff --git a/LANG_www/vicidial/test.txt b/LANG_www/vicidial/test.txt deleted file mode 100644 index 70c379b6..00000000 --- a/LANG_www/vicidial/test.txt +++ /dev/null @@ -1 +0,0 @@ -Hello world \ No newline at end of file diff --git a/LANG_www/vicidial/user_stats.php b/LANG_www/vicidial/user_stats.php index bdada227..f753c9d2 100644 --- a/LANG_www/vicidial/user_stats.php +++ b/LANG_www/vicidial/user_stats.php @@ -6,6 +6,7 @@ # CHANGES # # 60619-1743 - Added variable filtering to eliminate SQL injection attack threat +# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit # header ("Content-type: text/html; charset=utf-8"); @@ -92,7 +93,7 @@ echo "\n"
    -
    +
      VICIDIAL ADMIN: User Stats for  
    @@ -254,11 +255,11 @@ echo "

    \n"; echo "
    \n"; -echo "LAST 50 CALLS:\n"; +echo "CALLS FOR THIS TIME PERIOD: (10000 record limit)\n"; echo "
    " ?>   VICIDIAL ADMIN: User Stats for  
    \n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); @@ -270,7 +271,10 @@ echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -278,13 +282,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; } echo "
    DATE/TIME LENGTH STATUS PHONE CAMPAIGN LIST LEAD
    # DATE/TIME LENGTH STATUS PHONE CAMPAIGN LIST LEAD
    DATE/TIME LENGTH$row[4]
    $u$row[4] $row[7] $row[8] $row[10]
    DATE/TIME LENGTH $row[1]
    \n"; + +echo "RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATION
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11]
    \n"; + $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); diff --git a/LANG_www/vicidial/user_status.php b/LANG_www/vicidial/user_status.php index 8efe670f..91d106ab 100644 --- a/LANG_www/vicidial/user_status.php +++ b/LANG_www/vicidial/user_status.php @@ -124,7 +124,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: User Status for  
    diff --git a/LANG_www/vicidial/voice_lab.php b/LANG_www/vicidial/voice_lab.php new file mode 100644 index 00000000..0fc209d3 --- /dev/null +++ b/LANG_www/vicidial/voice_lab.php @@ -0,0 +1,255 @@ + LICENSE: GPLv2 +### +# +# CHANGES +# +# 61220-1050 - First Build +# + +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["session_id"])) {$session_id=$_GET["session_id"];} + elseif (isset($_POST["session_id"])) {$session_id=$_POST["session_id"];} +if (isset($_GET["campaign_id"])) {$campaign_id=$_GET["campaign_id"];} + elseif (isset($_POST["campaign_id"])) {$campaign_id=$_POST["campaign_id"];} +if (isset($_GET["NEW_VOICE_LAB"])) {$NEW_VOICE_LAB=$_GET["NEW_VOICE_LAB"];} + elseif (isset($_POST["NEW_VOICE_LAB"])) {$NEW_VOICE_LAB=$_POST["NEW_VOICE_LAB"];} +if (isset($_GET["KILL_VOICE_LAB"])) {$KILL_VOICE_LAB=$_GET["KILL_VOICE_LAB"];} + elseif (isset($_POST["KILL_VOICE_LAB"])) {$KILL_VOICE_LAB=$_POST["KILL_VOICE_LAB"];} +if (isset($_GET["submit"])) {$submit=$_GET["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} +if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} + elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} + +$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"); +$MYSQL_datetime = date("Y-m-d H:i:s"); +$FILE_datetime = date("Ymd-His_"); +$secX = $STARTtime; + +$local_DEF = 'Local/'; +$local_AMP = '@'; +$ext_context = 'demo'; + + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7;"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + $auth=$row[0]; + +$fp = fopen ("./project_auth_entries.txt", "a"); +$date = date("r"); +$ip = getenv("REMOTE_ADDR"); +$browser = getenv("HTTP_USER_AGENT"); + + if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth)) + { + Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\""); + Header("HTTP/1.0 401 Unauthorized"); + echo "Invalid Username/Password: |$PHP_AUTH_USER|$PHP_AUTH_PW|\n"; + exit; + } + else + { + + if($auth>0) + { + $office_no=strtoupper($PHP_AUTH_USER); + $password=strtoupper($PHP_AUTH_PW); + $stmt="SELECT full_name from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW'"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + $LOGfullname=$row[0]; + fwrite ($fp, "VICIDIAL|GOOD|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|$LOGfullname|\n"); + fclose($fp); + } + else + { + fwrite ($fp, "VICIDIAL|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n"); + fclose($fp); + } + + $stmt="SELECT full_name from vicidial_users where user='$user';"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + $full_name = $row[0]; + + } + + +##### get server listing for dynamic pulldown +$stmt="SELECT server_ip,server_description from servers order by server_ip"; +$rslt=mysql_query($stmt, $link); +$servers_to_print = mysql_num_rows($rslt); +$servers_list=''; + +$o=0; +while ($servers_to_print > $o) + { + $rowx=mysql_fetch_row($rslt); + $servers_list .= "\n"; + $o++; + } + +##### get campaigns listing for dynamic pulldown +$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id"; +$rslt=mysql_query($stmt, $link); +$campaigns_to_print = mysql_num_rows($rslt); +$campaigns_list=''; + +$o=0; +while ($campaigns_to_print > $o) + { + $rowx=mysql_fetch_row($rslt); + $campaigns_list .= "\n"; + $o++; + } + + + + +?> + + +VICIDIAL VOICE LAB: Admin +\n"; +?> + + +
    + + 0) +{ + if ( (strlen($server_ip) > 6) && (strlen($session_id) > 6) && (strlen($campaign_id) > 2) ) + { + echo "


    TO START YOUR VOICE LAB, DIAL $session_id ON YOUR PHONE NOW


    \n"; + + + $S='*'; + $D_s_ip = explode('.', $server_ip); + if (strlen($D_s_ip[0])<2) {$D_s_ip[0] = "0$D_s_ip[0]";} + if (strlen($D_s_ip[0])<3) {$D_s_ip[0] = "0$D_s_ip[0]";} + if (strlen($D_s_ip[1])<2) {$D_s_ip[1] = "0$D_s_ip[1]";} + if (strlen($D_s_ip[1])<3) {$D_s_ip[1] = "0$D_s_ip[1]";} + if (strlen($D_s_ip[2])<2) {$D_s_ip[2] = "0$D_s_ip[2]";} + if (strlen($D_s_ip[2])<3) {$D_s_ip[2] = "0$D_s_ip[2]";} + if (strlen($D_s_ip[3])<2) {$D_s_ip[3] = "0$D_s_ip[3]";} + if (strlen($D_s_ip[3])<3) {$D_s_ip[3] = "0$D_s_ip[3]";} + $remote_dialstring = "$D_s_ip[0]$S$D_s_ip[1]$S$D_s_ip[2]$S$D_s_ip[3]$S$session_id"; + + $thirty_minutes_old = mktime(date("H"), date("i"), date("s")-30, date("m"), date("d"), date("Y")); + $past_thirty = date("Y-m-d H:i:s",$thirty_minutes_old); + + $stmt="SELECT conf_exten,server_ip,user from vicidial_live_agents where last_update_time > '$past_thirty' and campaign_id='$campaign_id';"; + $rslt=mysql_query($stmt, $link); + $agents_to_loop = mysql_num_rows($rslt); + $agents_sessions[0]=''; + $agents_servers[0]=''; + $agents_users[0]=''; + + $o=0; + while ($agents_to_loop > $o) + { + $rowx=mysql_fetch_row($rslt); + $agents_sessions[$o] = "$rowx[0]"; + $agents_servers[$o] = "$rowx[1]"; + $agents_users[$o] = "$rowx[2]"; + $o++; + } + + $o=0; + while ($agents_to_loop > $o) + { + if ($agents_servers[$o] == "$server_ip") + {$dial_string = $session_id;} + else + {$dial_string = $remote_dialstring;} + + $stmt="INSERT INTO vicidial_manager values('','','$MYSQL_datetime','NEW','N','$agents_servers[$o]','','Originate','VL$FILE_datetime$o','Channel: $local_DEF$dial_string$local_AMP$ext_context','Context: $ext_context','Exten: $agents_sessions[$o]','Priority: 1','Callerid: VL$FILE_datetime$o','','','','','')"; + echo "|$stmt|\n

    \n"; + $rslt=mysql_query($stmt, $link); + + echo "LOGGED IN USER $agents_users[$o] at session $agents_sessions[$o] on server $agents_servers[$o]\n"; + + $o++; + } + + + + echo "
    Kill a Voice Lab Session: 8600900\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "


    \n"; + } + else + { + echo "ERROR!!!! Not all info entered properly\n

    \n"; + echo "|$server_ip| |$session_id| |$campaign_id|\n

    \n"; + echo "Back to main voicelab screen\n

    \n"; + } +} +else +{ +echo "
    Start a Voice Lab Session: 8600900
    \n"; +echo "\n"; +echo "\n"; +echo "Your Server: \n"; +echo "
    \n"; +echo "Campaign: "; +echo "
    \n"; +echo "\n"; +echo "


    \n"; + + +echo "
    Kill a Voice Lab Session: 8600900
    \n"; +echo "\n"; +echo "\n"; +echo "Your Server: \n"; +echo "
    \n"; +echo "Campaign: "; +echo "
    \n"; +echo "\n"; +echo "


    \n"; + +} + + +if ($KILL_VOICE_LAB > 1) +{ + if ( (strlen($server_ip) > 6) && (strlen($session_id) > 6) && (strlen($campaign_id) > 2) ) + { + $kill_dial_string = "5555$session_id"; + $hangup_exten='8300'; + $stmt="INSERT INTO vicidial_manager values('','','$MYSQL_datetime','NEW','N','$server_ip','','Originate','VLK$FILE_datetime','Channel: $local_DEF$kill_dial_string$local_AMP$ext_context','Context: $ext_context','Exten: $hangup_exten','Priority: 1','Callerid: VLK$FILE_datetime','','','','','')"; + echo "|$stmt|\n

    \n"; + $rslt=mysql_query($stmt, $link); + + echo "VOICELAB SESSION KILLED: $session_id at $server_ip | $KILL_VOICE_LAB\n"; + } + else + { + echo "ERROR!!!! Not all info entered properly\n

    \n"; + echo "|$server_ip| |$session_id| |$campaign_id|\n

    \n"; + echo "Back to main voicelab screen\n

    \n"; + } + +} + +?> + + \ No newline at end of file diff --git a/LANG_www/vicidial_de/AST_VDADstats.php b/LANG_www/vicidial_de/AST_VDADstats.php index 9e5c18a9..957b6c61 100644 --- a/LANG_www/vicidial_de/AST_VDADstats.php +++ b/LANG_www/vicidial_de/AST_VDADstats.php @@ -7,6 +7,7 @@ # # 60619-1718 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 61215-1139 - Added drop percentage of answered and round-2 decimal # header ("Content-type: text/html; charset=utf-8"); @@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Gesamtanrufe gesetzt von dieser Kampagne: $TOTALcalls\n"; @@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= ' $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); - $DROPcalls = sprintf("%10s", $row[0]); +$DROPcallsRAW = $row[0]; +$DROPseconds = $row[1]; + +$stmt="select count(*) from vicidial_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 status NOT IN('NA','B');"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); +$ANSWERcalls = $row[0]; + if ( ($DROPcalls < 1) or ($TOTALcalls < 1) ) {$DROPpercent = '0';} else { - $DROPpercent = (($DROPcalls / $TOTALcalls) * 100); - $DROPpercent = round($DROPpercent, 0); + $DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100); + $DROPpercent = round($DROPpercent, 2); } -if ( ($row[0] < 1) or ($row[1] < 1) ) +if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) ) + {$DROPANSWERpercent = '0';} +else + { + $DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100); + $DROPANSWERpercent = round($DROPANSWERpercent, 2); + } + +if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) ) {$average_hold_seconds = ' 0';} else { - $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = ($DROPseconds / $DROPcallsRAW); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Gesamt-TROPFEN Anrufe: $DROPcalls $DROPpercent%\n"; +echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n"; echo "Durchschnittliche Länge für TROPFEN Anrufe in den Sekunden: $average_hold_seconds\n"; echo "\n"; echo "----------AUTO-DIAL KEINE ANTWORTEN\n"; -$stmt="select count(*),sum(length_in_sec) from vicidial_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 status='NA' and (length_in_sec <= 60 or length_in_sec is null);"; +$stmt="select count(*),sum(length_in_sec) from vicidial_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 status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); @@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) ) else { $NApercent = (($NAcalls / $TOTALcalls) * 100); - $NApercent = round($NApercent, 0); + $NApercent = round($NApercent, 2); } if ( ($row[0] < 1) or ($row[1] < 1) ) @@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_na_seconds = ($row[1] / $row[0]); - $average_na_seconds = round($average_na_seconds, 0); + $average_na_seconds = round($average_na_seconds, 2); $average_na_seconds = sprintf("%10s", $average_na_seconds); } -echo "Gesamt-Na benennt - beschäftigt, Trennung, BTvoicemail: $NAcalls $NApercent%\n"; +echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n"; echo "Durchschnittliche Anruf-Länge für Na benennt in den Sekunden: $average_na_seconds\n"; diff --git a/LANG_www/vicidial_de/AST_agent_time_sheet.php b/LANG_www/vicidial_de/AST_agent_time_sheet.php index ccc62e80..317925f9 100644 --- a/LANG_www/vicidial_de/AST_agent_time_sheet.php +++ b/LANG_www/vicidial_de/AST_agent_time_sheet.php @@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;} \n"; echo "VICIDIAL: Agent Time Sheet\n"; -echo "
    \n"; -echo "\n"; -echo "\n"; +echo "VICIDIAL ADMIN: Agent Time Sheet
    \n"; +echo "   \n"; +echo "Date: \n"; +echo "User ID: \n"; echo "\n"; echo "\n\n"; diff --git a/LANG_www/vicidial_de/AST_timeonVDADall.php b/LANG_www/vicidial_de/AST_timeonVDADall.php index d3fadbb1..f554a5f1 100644 --- a/LANG_www/vicidial_de/AST_timeonVDADall.php +++ b/LANG_www/vicidial_de/AST_timeonVDADall.php @@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; if ($group=='XXXX-ALL-ACTIVE-XXXX') { - $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;"; + $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;"; } $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); @@ -298,6 +298,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -348,7 +349,7 @@ echo ""; echo "
    "; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_de/AST_timeonVDADallSUMMARY.php b/LANG_www/vicidial_de/AST_timeonVDADallSUMMARY.php index d424b11f..dcae6abd 100644 --- a/LANG_www/vicidial_de/AST_timeonVDADallSUMMARY.php +++ b/LANG_www/vicidial_de/AST_timeonVDADallSUMMARY.php @@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $DAleads = $row[0]; @@ -165,6 +165,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -211,7 +212,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_de/admin.php b/LANG_www/vicidial_de/admin.php index f9255919..271b4155 100644 --- a/LANG_www/vicidial_de/admin.php +++ b/LANG_www/vicidial_de/admin.php @@ -1907,7 +1907,7 @@ echo "
    " ?>   VICIDIAL ADMIN: User Status for  
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    Index-Text - This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, 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, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----

    Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

    This would read----

    Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

    You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
    -<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> +<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> </iframe>
    @@ -2009,7 +2009,7 @@ Die VICIDIAL grundlegende Netz-gegründete Leitung Ladevorrichtung isteinfach en
  • Anmerkungen -
    ANMERKUNGEN: Die übertreffenleitung Ladevorrichtung Funktionalitätwird durch eine Reihe Perl Indexe ermöglicht und muß eine richtigzusammengebaute /home/cron/AST_SERVER_conf.pl Akte im Platz auf demweb server haben. Auch ein Paarperl Module müssen für sie, umaußerdem zu arbeiten - OLE-Storage_Lite-Storage_Lite undVerteilungsbogen-ParseExcel geladen werden. Sie können aufLaufzeitfehler in diesen überprüfen, indem Sie Ihre Apache error_logAkte betrachten. +
    NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file. @@ -2576,7 +2576,7 @@ exit; if ($ADD==7111111) { ##### TEST VARIABLES ##### - $vendor_lead_code = 'VENDORLEADCODE'; + $vendor_lead_code = 'VENDOR:LEAD;CODE'; $list_id = 'LISTID'; $gmt_offset_now = 'GMTOFFSET'; $phone_code = '1'; @@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt); $script_name = $row[1]; $script_text = $row[3]; +if (eregi("iframe src",$script_text)) + { + $vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code); + $list_id = eregi_replace(' ','+',$list_id); + $gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now); + $phone_code = eregi_replace(' ','+',$phone_code); + $phone_number = eregi_replace(' ','+',$phone_number); + $title = eregi_replace(' ','+',$title); + $first_name = eregi_replace(' ','+',$first_name); + $middle_initial = eregi_replace(' ','+',$middle_initial); + $last_name = eregi_replace(' ','+',$last_name); + $address1 = eregi_replace(' ','+',$address1); + $address2 = eregi_replace(' ','+',$address2); + $address3 = eregi_replace(' ','+',$address2); + $city = eregi_replace(' ','+',$city); + $state = eregi_replace(' ','+',$state); + $province = eregi_replace(' ','+',$province); + $postal_code = eregi_replace(' ','+',$postal_code); + $country_code = eregi_replace(' ','+',$country_code); + $gender = eregi_replace(' ','+',$gender); + $date_of_birth = eregi_replace(' ','+',$date_of_birth); + $alt_phone = eregi_replace(' ','+',$alt_phone); + $email = eregi_replace(' ','+',$email); + $security_phrase = eregi_replace(' ','+',$security_phrase); + $comments = eregi_replace(' ','+',$comments); + $RGfullname = eregi_replace(' ','+',$RGfullname); + $RGuser = eregi_replace(' ','+',$RGuser); + $RGlead_id = eregi_replace(' ','+',$RGlead_id); + $RGcampaign = eregi_replace(' ','+',$RGcampaign); + $RGphone_login = eregi_replace(' ','+',$RGphone_login); + $RGgroup = eregi_replace(' ','+',$RGgroup); + $RGchannel_group = eregi_replace(' ','+',$RGchannel_group); + $RGSQLdate = eregi_replace(' ','+',$RGSQLdate); + $RGepoch = eregi_replace(' ','+',$RGepoch); + $RGuniqueid = eregi_replace(' ','+',$RGuniqueid); + $RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel); + $RGserver_ip = eregi_replace(' ','+',$RGserver_ip); + $RGSIPexten = eregi_replace(' ','+',$RGSIPexten); + $RGsession_id = eregi_replace(' ','+',$RGsession_id); + } + $script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text); $script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text); $script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text); @@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","
    ",$script_text); echo ""; echo "Vorbetrachtung-Index: $script_id
    \n"; -echo "
    \n"; +echo "
    \n"; echo "
    $script_name
    \n"; echo "$script_text\n"; echo "
    \n"; @@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink diff --git a/LANG_www/vicidial_de/admin_modify_lead.php b/LANG_www/vicidial_de/admin_modify_lead.php index d3fd2386..9f502050 100644 --- a/LANG_www/vicidial_de/admin_modify_lead.php +++ b/LANG_www/vicidial_de/admin_modify_lead.php @@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW); # 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60609-1112 - Added DNC list addition if status changed to DNC # 60619-1539 - Added variable filtering to eliminate SQL injection attack threat +# 61130-1639 - Added recording_log lookup and list for this lead_id +# 61201-1136 - Added recording_log user(TSR) display and link # $STARTtime = date("U"); @@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
    - VICIDIAL ADMIN: Leitung notieren Änderung
    \n"; if ($end_call > 0) { @@ -413,21 +415,25 @@ echo "
    \n"; echo "ANRUFE ZU DIESEM LEITUNG:\n"; echo "\n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); $u=0; - while ($logs_to_print > $u) { + while ($logs_to_print > $u) + { $row=mysql_fetch_row($rslt); if (eregi("1$|3$|5$|7$|9$", $u)) {$bgcolor='bgcolor="#B9CBFD"';} else {$bgcolor='bgcolor="#9BB9FB"';} - echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -435,11 +441,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; - } + } echo "
    DATE/TIME LENGTH STATUS TSR KAMPAGNE LIST LEAD
    # DATE/TIME LENGTH STATUS TSR KAMPAGNE LIST LEAD
    $row[4]
    $u$row[4] $row[7] $row[8] $row[11]
    DATE/TIME LENGTH $row[1]
    \n"; +echo "

    \n"; + +echo "RECORDINGS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11] $row[13]
    \n"; + diff --git a/LANG_www/vicidial_de/admin_search_lead.php b/LANG_www/vicidial_de/admin_search_lead.php index 26e58758..8ab91e83 100644 --- a/LANG_www/vicidial_de/admin_search_lead.php +++ b/LANG_www/vicidial_de/admin_search_lead.php @@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT"); Leitung Nachschlagen - VICIDIAL ADMIN: Lead search
    \n"; + if ( (!$vendor_id) and (!$phone) and (!$lead_id) ) { diff --git a/LANG_www/vicidial_de/group_hourly_stats.php b/LANG_www/vicidial_de/group_hourly_stats.php index 954f159c..a8c3d7da 100644 --- a/LANG_www/vicidial_de/group_hourly_stats.php +++ b/LANG_www/vicidial_de/group_hourly_stats.php @@ -111,7 +111,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: Gruppe Stündlicher Notfall  
    @@ -160,7 +160,7 @@ echo "
    " ?>   VICIDIAL ADMIN: Gruppe Stündlicher Notfall  
    \n"; echo "
    \n"; -echo "TSR STUNDE ZÄHLIMPULSE: $group | $status | $date_with_hour | $date_no_hour\n"; +echo "TSR STUNDE ZÄHLIMPULSE: $group | $status | $date_with_hour | $date_no_hour\n"; echo "
    \n"; echo "\n"; diff --git a/LANG_www/vicidial_de/user_stats.php b/LANG_www/vicidial_de/user_stats.php index a32851eb..60174978 100644 --- a/LANG_www/vicidial_de/user_stats.php +++ b/LANG_www/vicidial_de/user_stats.php @@ -6,6 +6,7 @@ # CHANGES # # 60619-1743 - Added variable filtering to eliminate SQL injection attack threat +# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit # header ("Content-type: text/html; charset=utf-8"); @@ -92,7 +93,7 @@ echo "\n"
    -
    TSR ID   $status   GESAMTANRUFE   $status DAY    
    +
      VICIDIAL ADMIN: User Stats for  
    @@ -254,11 +255,11 @@ echo "

    \n"; echo "
    \n"; -echo "ANRUFE DES LETZT-50:\n"; +echo "CALLS FOR THIS TIME PERIOD: (10000 record limit)\n"; echo "
    " ?>   VICIDIAL ADMIN: User Stats for  
    \n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); @@ -270,7 +271,10 @@ echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -278,13 +282,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; } echo "
    DATE/TIME LENGTH STATUS PHONE KAMPAGNE LIST LEAD
    # DATE/TIME LENGTH STATUS PHONE KAMPAGNE LIST LEAD
    DATE/TIME LENGTH$row[4]
    $u$row[4] $row[7] $row[8] $row[10]
    DATE/TIME LENGTH $row[1]
    \n"; + +echo "RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATION
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11]
    \n"; + $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); diff --git a/LANG_www/vicidial_de/user_status.php b/LANG_www/vicidial_de/user_status.php index b92d57bb..f27a6ab8 100644 --- a/LANG_www/vicidial_de/user_status.php +++ b/LANG_www/vicidial_de/user_status.php @@ -124,7 +124,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: User Status for  
    diff --git a/LANG_www/vicidial_el/AST_VDADstats.php b/LANG_www/vicidial_el/AST_VDADstats.php index 0266a8a4..4a7e5b42 100644 --- a/LANG_www/vicidial_el/AST_VDADstats.php +++ b/LANG_www/vicidial_el/AST_VDADstats.php @@ -7,6 +7,7 @@ # # 60619-1718 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 61215-1139 - Added drop percentage of answered and round-2 decimal # header ("Content-type: text/html; charset=utf-8"); @@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Συνολικά κλήσεις που τοποθετήθηκαν από την Εκστρατεία: $TOTALcalls\n"; @@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= ' $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); - $DROPcalls = sprintf("%10s", $row[0]); +$DROPcallsRAW = $row[0]; +$DROPseconds = $row[1]; + +$stmt="select count(*) from vicidial_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 status NOT IN('NA','B');"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); +$ANSWERcalls = $row[0]; + if ( ($DROPcalls < 1) or ($TOTALcalls < 1) ) {$DROPpercent = '0';} else { - $DROPpercent = (($DROPcalls / $TOTALcalls) * 100); - $DROPpercent = round($DROPpercent, 0); + $DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100); + $DROPpercent = round($DROPpercent, 2); } -if ( ($row[0] < 1) or ($row[1] < 1) ) +if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) ) + {$DROPANSWERpercent = '0';} +else + { + $DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100); + $DROPANSWERpercent = round($DROPANSWERpercent, 2); + } + +if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) ) {$average_hold_seconds = ' 0';} else { - $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = ($DROPseconds / $DROPcallsRAW); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Συνολικά ΕΓΚΑΤΑΛΕΙΜΕΝΕΣ κλήσεις: $DROPcalls $DROPpercent%\n"; +echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n"; echo "Μέσος όρος σε δευτερόλεπτα για ΕΓΚΑΤΑΕΙΜΕΝΕΣ κλήσεις: $average_hold_seconds\n"; echo "\n"; echo "---------- ΜΗ ΑΠΑΝΤ ΑΥΤ ΚΛΗΣΕΙΣ\n"; -$stmt="select count(*),sum(length_in_sec) from vicidial_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 status='NA' and (length_in_sec <= 60 or length_in_sec is null);"; +$stmt="select count(*),sum(length_in_sec) from vicidial_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 status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); @@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) ) else { $NApercent = (($NAcalls / $TOTALcalls) * 100); - $NApercent = round($NApercent, 0); + $NApercent = round($NApercent, 2); } if ( ($row[0] < 1) or ($row[1] < 1) ) @@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_na_seconds = ($row[1] / $row[0]); - $average_na_seconds = round($average_na_seconds, 0); + $average_na_seconds = round($average_na_seconds, 2); $average_na_seconds = sprintf("%10s", $average_na_seconds); } -echo "Συνολικά ΝΑ κλήσεις -Busy,Disconnect,BTvoicemail: $NAcalls $NApercent%\n"; +echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n"; echo "Μέσος όρος σε δευτερόλεπτα για ΝΑ κλήσεις: $average_na_seconds\n"; diff --git a/LANG_www/vicidial_el/AST_agent_time_sheet.php b/LANG_www/vicidial_el/AST_agent_time_sheet.php index 75c707af..454248c6 100644 --- a/LANG_www/vicidial_el/AST_agent_time_sheet.php +++ b/LANG_www/vicidial_el/AST_agent_time_sheet.php @@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;} \n"; echo "VICIDIAL: Agent Time Sheet\n"; -echo "\n"; -echo "\n"; -echo "\n"; +echo "ΔΙΑΧΕΙΡΙΣΗ: Agent Time Sheet
    \n"; +echo "   \n"; +echo "Date: \n"; +echo "User ID: \n"; echo "\n"; echo "\n\n"; diff --git a/LANG_www/vicidial_el/AST_timeonVDADall.php b/LANG_www/vicidial_el/AST_timeonVDADall.php index 43ec1531..1d3b472d 100644 --- a/LANG_www/vicidial_el/AST_timeonVDADall.php +++ b/LANG_www/vicidial_el/AST_timeonVDADall.php @@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; if ($group=='XXXX-ALL-ACTIVE-XXXX') { - $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;"; + $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;"; } $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); @@ -298,6 +298,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -348,7 +349,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_el/AST_timeonVDADallSUMMARY.php b/LANG_www/vicidial_el/AST_timeonVDADallSUMMARY.php index f4fdd998..a4611397 100644 --- a/LANG_www/vicidial_el/AST_timeonVDADallSUMMARY.php +++ b/LANG_www/vicidial_el/AST_timeonVDADallSUMMARY.php @@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $DAleads = $row[0]; @@ -165,6 +165,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -211,7 +212,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_el/admin.php b/LANG_www/vicidial_el/admin.php index 90d27121..64c433bc 100644 --- a/LANG_www/vicidial_el/admin.php +++ b/LANG_www/vicidial_el/admin.php @@ -1910,7 +1910,7 @@ echo "
    " ?>   VICIDIAL ADMIN: User Status for  
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    Κείμενο χειρόγραφου - This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, 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, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----

    Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

    This would read----

    Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

    You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
    -<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> +<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> </iframe>
    @@ -2013,7 +2013,7 @@ echo "
    Σχόλια -
    ΣΗΜΕΙΩΣΕΙΣ: Η λειτουργία εισαγωγής οδηγών Excel επιτρέπεται από μια σειρά προγραμμάτων και πρέπει να έχει κατάλληλα διαμορφωμένο ένα αρχείο home/cron/AST_SERVER_conf.pl στον κεντρικό υπολογιστή δικτύου. Επίσης, κάποια υπο-προγράμματα πρέπει να φορτωθούν για να εργαστούν επίσης - OLE- τα Storage_Lite και Spreadsheet-ParseExcel. Μπορείτε να ελέγξετε για λάθη χρόνου εκτέλεσης στο αρχείο error_log του apache σας . +
    NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file. @@ -2580,7 +2580,7 @@ exit; if ($ADD==7111111) { ##### TEST VARIABLES ##### - $vendor_lead_code = 'VENDORLEADCODE'; + $vendor_lead_code = 'VENDOR:LEAD;CODE'; $list_id = 'LISTID'; $gmt_offset_now = 'GMTOFFSET'; $phone_code = '1'; @@ -2629,6 +2629,47 @@ $row=mysql_fetch_row($rslt); $script_name = $row[1]; $script_text = $row[3]; +if (eregi("iframe src",$script_text)) + { + $vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code); + $list_id = eregi_replace(' ','+',$list_id); + $gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now); + $phone_code = eregi_replace(' ','+',$phone_code); + $phone_number = eregi_replace(' ','+',$phone_number); + $title = eregi_replace(' ','+',$title); + $first_name = eregi_replace(' ','+',$first_name); + $middle_initial = eregi_replace(' ','+',$middle_initial); + $last_name = eregi_replace(' ','+',$last_name); + $address1 = eregi_replace(' ','+',$address1); + $address2 = eregi_replace(' ','+',$address2); + $address3 = eregi_replace(' ','+',$address2); + $city = eregi_replace(' ','+',$city); + $state = eregi_replace(' ','+',$state); + $province = eregi_replace(' ','+',$province); + $postal_code = eregi_replace(' ','+',$postal_code); + $country_code = eregi_replace(' ','+',$country_code); + $gender = eregi_replace(' ','+',$gender); + $date_of_birth = eregi_replace(' ','+',$date_of_birth); + $alt_phone = eregi_replace(' ','+',$alt_phone); + $email = eregi_replace(' ','+',$email); + $security_phrase = eregi_replace(' ','+',$security_phrase); + $comments = eregi_replace(' ','+',$comments); + $RGfullname = eregi_replace(' ','+',$RGfullname); + $RGuser = eregi_replace(' ','+',$RGuser); + $RGlead_id = eregi_replace(' ','+',$RGlead_id); + $RGcampaign = eregi_replace(' ','+',$RGcampaign); + $RGphone_login = eregi_replace(' ','+',$RGphone_login); + $RGgroup = eregi_replace(' ','+',$RGgroup); + $RGchannel_group = eregi_replace(' ','+',$RGchannel_group); + $RGSQLdate = eregi_replace(' ','+',$RGSQLdate); + $RGepoch = eregi_replace(' ','+',$RGepoch); + $RGuniqueid = eregi_replace(' ','+',$RGuniqueid); + $RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel); + $RGserver_ip = eregi_replace(' ','+',$RGserver_ip); + $RGSIPexten = eregi_replace(' ','+',$RGSIPexten); + $RGsession_id = eregi_replace(' ','+',$RGsession_id); + } + $script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text); $script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text); $script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text); @@ -2673,7 +2714,7 @@ $script_text = eregi_replace("\n","
    ",$script_text); echo ""; echo "Προεπισκόπιση Βοηθού: $script_id
    \n"; -echo "
    \n"; +echo "
    \n"; echo "
    $script_name
    \n"; echo "$script_text\n"; echo "
    \n"; @@ -2712,7 +2753,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink diff --git a/LANG_www/vicidial_el/admin_modify_lead.php b/LANG_www/vicidial_el/admin_modify_lead.php index cf2fd712..ef8b25b6 100644 --- a/LANG_www/vicidial_el/admin_modify_lead.php +++ b/LANG_www/vicidial_el/admin_modify_lead.php @@ -167,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
    - ΔΙΑΧΕΙΡΙΣΗ: Τροποποίηση οδηγού
    \n"; if ($end_call > 0) { diff --git a/LANG_www/vicidial_el/admin_search_lead.php b/LANG_www/vicidial_el/admin_search_lead.php index c1903336..680a422a 100644 --- a/LANG_www/vicidial_el/admin_search_lead.php +++ b/LANG_www/vicidial_el/admin_search_lead.php @@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT"); Ψάξιμο Καθοδήγησης - ΔΙΑΧΕΙΡΙΣΗ: Lead search
    \n"; + if ( (!$vendor_id) and (!$phone) and (!$lead_id) ) { diff --git a/LANG_www/vicidial_el/group_hourly_stats.php b/LANG_www/vicidial_el/group_hourly_stats.php index fa64248e..76ee651f 100644 --- a/LANG_www/vicidial_el/group_hourly_stats.php +++ b/LANG_www/vicidial_el/group_hourly_stats.php @@ -111,7 +111,7 @@ echo "\n"
    - +
      ΔΙΑΧΕΙΡΙΣΗ: Ομαδοποιημένα Ωριαία Στατιστικά  
    @@ -160,7 +160,7 @@ echo "
    " ?>   ΔΙΑΧΕΙΡΙΣΗ: Ομαδοποιημένα Ωριαία Στατιστικά  
    \n"; echo "
    \n"; -echo "ΜΕΤΡΗΣΗ ΩΡΩΝ TSR: $group | $status | $date_with_hour | $date_no_hour\n"; +echo "ΜΕΤΡΗΣΗ ΩΡΩΝ TSR: $group | $status | $date_with_hour | $date_no_hour\n"; echo "
    \n"; echo "\n"; diff --git a/LANG_www/vicidial_el/listloader_stmts.txt b/LANG_www/vicidial_el/listloader_stmts.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/LANG_www/vicidial_el/project_auth_entries.txt b/LANG_www/vicidial_el/project_auth_entries.txt deleted file mode 100644 index 805a9ec1..00000000 --- a/LANG_www/vicidial_el/project_auth_entries.txt +++ /dev/null @@ -1,114 +0,0 @@ -VICIDIAL|GOOD|Tue, 22 Nov 2005 14:58:40 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:02:51 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:03:00 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:03:10 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:03:12 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:05:07 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:05:10 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:28:49 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:30:11 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:30:15 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:07:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:07:17 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:07:21 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:30 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:43 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:45 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:46 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:21 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:10 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:15 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:33 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:04:19 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:04:24 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:04:28 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:04 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:08 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:45 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:11:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:15:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:15:56 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -LIST_LOAD|GOOD|Thu, 27 Apr 2006 17:18:51 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:18:56 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:19:07 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:19:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:21:55 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:16 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:21 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:23:29 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:24:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:24:25 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:31 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:41 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:45 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:25:46 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:26:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:26:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:26:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:38 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:39 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:41 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:48 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:55 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:57 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:33:58 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:48 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:58 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:03 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:19 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:29 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:42 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:01:59 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:01 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:03 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:05 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:11 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:12 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:15 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:16 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:26 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:28 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:02:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:07:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:13 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:22 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:24 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:25 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:27 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:08:28 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:33 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:35 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:37 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:44 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:46 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:51 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:21:00 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:21:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:21:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:22:17 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|| -LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:25:37 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|| -LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:27:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|| -LIST_LOAD|GOOD|Thu, 27 Apr 2006 22:34:07 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:40:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:26 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:31 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| diff --git a/LANG_www/vicidial_el/user_stats.php b/LANG_www/vicidial_el/user_stats.php index 71e03e88..7ca9dd0e 100644 --- a/LANG_www/vicidial_el/user_stats.php +++ b/LANG_www/vicidial_el/user_stats.php @@ -93,7 +93,7 @@ echo "\n"
    -
    TSR ID   $status   ΣΥΝΟΛΙΚΕΣ ΚΛΗΣΕΙΣ   $status DAY    
    +
      ΔΙΑΧΕΙΡΙΣΗ: User Stats for  
    diff --git a/LANG_www/vicidial_el/user_status.php b/LANG_www/vicidial_el/user_status.php index 6b8aaaa8..44120136 100644 --- a/LANG_www/vicidial_el/user_status.php +++ b/LANG_www/vicidial_el/user_status.php @@ -124,7 +124,7 @@ echo "\n"
    -
    " ?>   ΔΙΑΧΕΙΡΙΣΗ: User Stats for  
    +
      ΔΙΑΧΕΙΡΙΣΗ: User Status for  
    diff --git a/LANG_www/vicidial_en/AST_VDADstats.php b/LANG_www/vicidial_en/AST_VDADstats.php index 5dde09ac..3dd9b290 100644 --- a/LANG_www/vicidial_en/AST_VDADstats.php +++ b/LANG_www/vicidial_en/AST_VDADstats.php @@ -7,6 +7,7 @@ # # 60619-1718 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 61215-1139 - Added drop percentage of answered and round-2 decimal # header ("Content-type: text/html; charset=utf-8"); @@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Total Calls placed from this Campaign: $TOTALcalls\n"; @@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= ' $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); - $DROPcalls = sprintf("%10s", $row[0]); +$DROPcallsRAW = $row[0]; +$DROPseconds = $row[1]; + +$stmt="select count(*) from vicidial_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 status NOT IN('NA','B');"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); +$ANSWERcalls = $row[0]; + if ( ($DROPcalls < 1) or ($TOTALcalls < 1) ) {$DROPpercent = '0';} else { - $DROPpercent = (($DROPcalls / $TOTALcalls) * 100); - $DROPpercent = round($DROPpercent, 0); + $DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100); + $DROPpercent = round($DROPpercent, 2); } -if ( ($row[0] < 1) or ($row[1] < 1) ) +if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) ) + {$DROPANSWERpercent = '0';} +else + { + $DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100); + $DROPANSWERpercent = round($DROPANSWERpercent, 2); + } + +if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) ) {$average_hold_seconds = ' 0';} else { - $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = ($DROPseconds / $DROPcallsRAW); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Total DROP Calls: $DROPcalls $DROPpercent%\n"; +echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n"; echo "Average Length for DROP Calls in seconds: $average_hold_seconds\n"; echo "\n"; echo "---------- AUTO-DIAL NO ANSWERS\n"; -$stmt="select count(*),sum(length_in_sec) from vicidial_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 status='NA' and (length_in_sec <= 60 or length_in_sec is null);"; +$stmt="select count(*),sum(length_in_sec) from vicidial_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 status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); @@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) ) else { $NApercent = (($NAcalls / $TOTALcalls) * 100); - $NApercent = round($NApercent, 0); + $NApercent = round($NApercent, 2); } if ( ($row[0] < 1) or ($row[1] < 1) ) @@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_na_seconds = ($row[1] / $row[0]); - $average_na_seconds = round($average_na_seconds, 0); + $average_na_seconds = round($average_na_seconds, 2); $average_na_seconds = sprintf("%10s", $average_na_seconds); } -echo "Total NA calls -Busy,Disconnect,BTvoicemail: $NAcalls $NApercent%\n"; +echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n"; echo "Average Call Length for NA Calls in seconds: $average_na_seconds\n"; diff --git a/LANG_www/vicidial_en/AST_agent_time_sheet.php b/LANG_www/vicidial_en/AST_agent_time_sheet.php index 46659eb6..017d39d6 100644 --- a/LANG_www/vicidial_en/AST_agent_time_sheet.php +++ b/LANG_www/vicidial_en/AST_agent_time_sheet.php @@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;} \n"; echo "VICIDIAL: Agent Time Sheet\n"; -echo "\n"; -echo "\n"; -echo "\n"; +echo "VICIDIAL ADMIN: Agent Time Sheet
    \n"; +echo "   \n"; +echo "Date: \n"; +echo "User ID: \n"; echo "\n"; echo "\n\n"; diff --git a/LANG_www/vicidial_en/AST_timeonVDADall.php b/LANG_www/vicidial_en/AST_timeonVDADall.php index b4c93e08..3eae6859 100644 --- a/LANG_www/vicidial_en/AST_timeonVDADall.php +++ b/LANG_www/vicidial_en/AST_timeonVDADall.php @@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; if ($group=='XXXX-ALL-ACTIVE-XXXX') { - $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;"; + $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;"; } $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); @@ -298,6 +298,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -348,7 +349,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_en/AST_timeonVDADallSUMMARY.php b/LANG_www/vicidial_en/AST_timeonVDADallSUMMARY.php index 0a0557e4..a14194f8 100644 --- a/LANG_www/vicidial_en/AST_timeonVDADallSUMMARY.php +++ b/LANG_www/vicidial_en/AST_timeonVDADallSUMMARY.php @@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $DAleads = $row[0]; @@ -165,6 +165,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -211,7 +212,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_en/admin.php b/LANG_www/vicidial_en/admin.php index 0fee6faa..ee46df35 100644 --- a/LANG_www/vicidial_en/admin.php +++ b/LANG_www/vicidial_en/admin.php @@ -1907,7 +1907,7 @@ echo "
    " ?>   ΔΙΑΧΕΙΡΙΣΗ: User Status for  
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    Script Text - This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, 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, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----

    Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

    This would read----

    Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

    You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
    -<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> +<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> </iframe>
    @@ -2009,7 +2009,7 @@ The VICIDIAL basic web-based lead loader is designed simply to take a lead file
  • Comments -
    NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /home/cron/AST_SERVER_conf.pl file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file. +
    NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file. @@ -2576,7 +2576,7 @@ exit; if ($ADD==7111111) { ##### TEST VARIABLES ##### - $vendor_lead_code = 'VENDORLEADCODE'; + $vendor_lead_code = 'VENDOR:LEAD;CODE'; $list_id = 'LISTID'; $gmt_offset_now = 'GMTOFFSET'; $phone_code = '1'; @@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt); $script_name = $row[1]; $script_text = $row[3]; +if (eregi("iframe src",$script_text)) + { + $vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code); + $list_id = eregi_replace(' ','+',$list_id); + $gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now); + $phone_code = eregi_replace(' ','+',$phone_code); + $phone_number = eregi_replace(' ','+',$phone_number); + $title = eregi_replace(' ','+',$title); + $first_name = eregi_replace(' ','+',$first_name); + $middle_initial = eregi_replace(' ','+',$middle_initial); + $last_name = eregi_replace(' ','+',$last_name); + $address1 = eregi_replace(' ','+',$address1); + $address2 = eregi_replace(' ','+',$address2); + $address3 = eregi_replace(' ','+',$address2); + $city = eregi_replace(' ','+',$city); + $state = eregi_replace(' ','+',$state); + $province = eregi_replace(' ','+',$province); + $postal_code = eregi_replace(' ','+',$postal_code); + $country_code = eregi_replace(' ','+',$country_code); + $gender = eregi_replace(' ','+',$gender); + $date_of_birth = eregi_replace(' ','+',$date_of_birth); + $alt_phone = eregi_replace(' ','+',$alt_phone); + $email = eregi_replace(' ','+',$email); + $security_phrase = eregi_replace(' ','+',$security_phrase); + $comments = eregi_replace(' ','+',$comments); + $RGfullname = eregi_replace(' ','+',$RGfullname); + $RGuser = eregi_replace(' ','+',$RGuser); + $RGlead_id = eregi_replace(' ','+',$RGlead_id); + $RGcampaign = eregi_replace(' ','+',$RGcampaign); + $RGphone_login = eregi_replace(' ','+',$RGphone_login); + $RGgroup = eregi_replace(' ','+',$RGgroup); + $RGchannel_group = eregi_replace(' ','+',$RGchannel_group); + $RGSQLdate = eregi_replace(' ','+',$RGSQLdate); + $RGepoch = eregi_replace(' ','+',$RGepoch); + $RGuniqueid = eregi_replace(' ','+',$RGuniqueid); + $RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel); + $RGserver_ip = eregi_replace(' ','+',$RGserver_ip); + $RGSIPexten = eregi_replace(' ','+',$RGSIPexten); + $RGsession_id = eregi_replace(' ','+',$RGsession_id); + } + $script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text); $script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text); $script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text); @@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","
    ",$script_text); echo ""; echo "Preview Script: $script_id
    \n"; -echo "
    \n"; +echo "
    \n"; echo "
    $script_name
    \n"; echo "$script_text\n"; echo "
    \n"; @@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink diff --git a/LANG_www/vicidial_en/admin_changes_log.txt b/LANG_www/vicidial_en/admin_changes_log.txt deleted file mode 100644 index e4750d94..00000000 --- a/LANG_www/vicidial_en/admin_changes_log.txt +++ /dev/null @@ -1,37 +0,0 @@ -Wed, 14 Dec 2005 10:17:51 -0500|ADD A NEW SCRIPT ENTRY |6666|10.10.6.19|'TESTCAMP01','first test script','script_comments','script_text','Y'| -Wed, 14 Dec 2005 17:02:06 -0500|ADD A NEW SCRIPT ENTRY |6666|10.10.6.19|'TESTCAMP02','first test script','for testing purposes only','asdf asdf as dfafd as dfas fda sf as fa sdf a sdf as fda sdf a sdf as fas df as fa sf as dfa sdf a fd - - -hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there ','Y'| -Wed, 14 Dec 2005 17:04:05 -0500|ADD A NEW SCRIPT ENTRY |6666|10.10.6.19|'TESTCAMP03','first test script','for testing purposes only','asdf asdf as dfafd as dfas fda sf as fa sdf a sdf as fda sdf a sdf as fas df as fa sf as dfa sdf a fd - - -hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there hello there ','Y'| -Tue, 03 Jan 2006 11:33:22 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='test domestic lists'| -Tue, 03 Jan 2006 11:33:22 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='test domestic lists',campaign_id='TESTCAMP',active='Y' where list_id='101'| -Mon, 23 Jan 2006 10:45:26 -0500|ADD A NEW CAMPAIGN |123456|10.10.6.19|INSERT INTO vicidial_campaigns (campaign_id,campaign_name,active,dial_status_a,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,campaign_script,get_call_launch) values('CCONFIRM','College Partnership Confirm','Y','NEW','DOWN','','','','Y','50','1','oldest_call_finish','9am-9pm','','','NONE')| -Mon, 23 Jan 2006 10:46:09 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='60', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N| -Mon, 23 Jan 2006 10:47:08 -0500|ADD A NEW CAMPAIGN HOTKEY |123456|10.10.6.19|'A','1','Answering Machine','Y','CCONFIRM'| -Mon, 23 Jan 2006 10:47:14 -0500|ADD A NEW CAMPAIGN HOTKEY |123456|10.10.6.19|'N','2','No Answer','Y','CCONFIRM'| -Mon, 23 Jan 2006 10:48:06 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership',active='Y',dial_status_a='N',dial_status_b='NEW',dial_status_c='DROP',dial_status_d='A',dial_status_e='NA',lead_order='DOWN COUNT',allow_closers='Y',hopper_level='200', auto_dial_level='2.7', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership.php', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CPARTNER'|N| -Mon, 23 Jan 2006 10:48:22 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N| -Mon, 23 Jan 2006 10:49:01 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N| -Mon, 23 Jan 2006 11:07:57 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N| -Mon, 23 Jan 2006 12:10:13 -0500|ADD A NEW LIST |123456|10.10.6.19|'80204','CP Confirm Jan28-29','CCONFIRM','N'| -Mon, 23 Jan 2006 12:14:26 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='N' where list_id='80204'| -Mon, 23 Jan 2006 12:14:31 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E'| -Mon, 23 Jan 2006 12:14:31 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='Y' where list_id='80204'| -Mon, 23 Jan 2006 12:14:48 -0500|ADD A NEW LIST |123456|10.10.6.19|'80304','CPConfirm Jan28-29 W','CCONFIRM','Y'| -Mon, 23 Jan 2006 12:15:57 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='SALE',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N| -Mon, 23 Jan 2006 12:16:16 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E'| -Mon, 23 Jan 2006 12:16:16 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='Y' where list_id='80204'| -Mon, 23 Jan 2006 12:16:37 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W'| -Mon, 23 Jan 2006 12:16:37 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W',campaign_id='CCONFIRM',active='Y' where list_id='80304'| -Mon, 23 Jan 2006 12:18:31 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W'| -Mon, 23 Jan 2006 12:18:31 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 W',campaign_id='CCONFIRM',active='Y' where list_id='80304'| -Mon, 23 Jan 2006 12:18:42 -0500|RESET LIST CALLED |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E'| -Mon, 23 Jan 2006 12:18:42 -0500|MODIFY LIST INFO |123456|10.10.6.19|list_name='CPConfirm Jan28-29 E',campaign_id='CCONFIRM',active='Y' where list_id='80204'| -Mon, 23 Jan 2006 12:21:01 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|N| -Mon, 23 Jan 2006 12:21:13 -0500|CAMPAIGN HOPPERRESET|123456|10.10.6.19|campaign_name='College Partnership Confirm'| -Mon, 23 Jan 2006 12:21:13 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='College Partnership Confirm',active='Y',dial_status_a='NEW',dial_status_b='',dial_status_c='',dial_status_d='',dial_status_e='',lead_order='DOWN',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='9am-9pm', voicemail_ext='', dial_timeout='30', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8367', web_form_address='http://10.10.10.196/vicidial/vicidial_college_partnership_confirm.php?STAGE=CONFIRMLOOKUP', park_ext='', park_file_name='', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='FULLDATE_AGENT', campaign_script='', get_call_launch='NONE', am_message_exten='' where campaign_id='CCONFIRM'|Y| -Tue, 24 Jan 2006 11:35:57 -0500|MODIFY CAMPAIGN INFO|123456|10.10.6.19|campaign_name='UMG Card on File',active='Y',dial_status_a='N',dial_status_b='B',dial_status_c='DROP',dial_status_d='A',dial_status_e='NA',lead_order='DOWN COUNT',hopper_level='500', auto_dial_level='4.0' where campaign_id='UMGCOF'|N| diff --git a/LANG_www/vicidial_en/admin_modify_lead.php b/LANG_www/vicidial_en/admin_modify_lead.php index 9dad4f62..34016b29 100644 --- a/LANG_www/vicidial_en/admin_modify_lead.php +++ b/LANG_www/vicidial_en/admin_modify_lead.php @@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW); # 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60609-1112 - Added DNC list addition if status changed to DNC # 60619-1539 - Added variable filtering to eliminate SQL injection attack threat +# 61130-1639 - Added recording_log lookup and list for this lead_id +# 61201-1136 - Added recording_log user(TSR) display and link # $STARTtime = date("U"); @@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
    - VICIDIAL ADMIN: Lead record modification
    \n"; if ($end_call > 0) { @@ -413,21 +415,25 @@ echo "
    \n"; echo "CALLS TO THIS LEAD:\n"; echo "\n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); $u=0; - while ($logs_to_print > $u) { + while ($logs_to_print > $u) + { $row=mysql_fetch_row($rslt); if (eregi("1$|3$|5$|7$|9$", $u)) {$bgcolor='bgcolor="#B9CBFD"';} else {$bgcolor='bgcolor="#9BB9FB"';} - echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -435,11 +441,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; - } + } echo "
    DATE/TIME LENGTH STATUS TSR CAMPAIGN LIST LEAD
    # DATE/TIME LENGTH STATUS TSR CAMPAIGN LIST LEAD
    $row[4]
    $u$row[4] $row[7] $row[8] $row[11]
    DATE/TIME LENGTH $row[1]
    \n"; +echo "

    \n"; + +echo "RECORDINGS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11] $row[13]
    \n"; + diff --git a/LANG_www/vicidial_en/admin_search_lead.php b/LANG_www/vicidial_en/admin_search_lead.php index a727e3a1..6b8b0b69 100644 --- a/LANG_www/vicidial_en/admin_search_lead.php +++ b/LANG_www/vicidial_en/admin_search_lead.php @@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT"); Lead Lookup - VICIDIAL ADMIN: Lead search
    \n"; + if ( (!$vendor_id) and (!$phone) and (!$lead_id) ) { diff --git a/LANG_www/vicidial_en/group_hourly_stats.php b/LANG_www/vicidial_en/group_hourly_stats.php index b7eb1b31..3f8e4fb9 100644 --- a/LANG_www/vicidial_en/group_hourly_stats.php +++ b/LANG_www/vicidial_en/group_hourly_stats.php @@ -111,7 +111,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: Group Hourly Stats  
    @@ -160,7 +160,7 @@ echo "
    " ?>   VICIDIAL ADMIN: Group Hourly Stats  
    \n"; echo "
    \n"; -echo "TSR HOUR COUNTS: $group | $status | $date_with_hour | $date_no_hour\n"; +echo "TSR HOUR COUNTS: $group | $status | $date_with_hour | $date_no_hour\n"; echo "
    \n"; echo "\n"; diff --git a/LANG_www/vicidial_en/project_auth_entries.txt b/LANG_www/vicidial_en/project_auth_entries.txt deleted file mode 100644 index b152bf1c..00000000 --- a/LANG_www/vicidial_en/project_auth_entries.txt +++ /dev/null @@ -1,129 +0,0 @@ -VICIDIAL|GOOD|Thu, 22 Sep 2005 17:42:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:14 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:17 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:18 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:20 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:35 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:37 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:03:39 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 13:14:51 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 16:18:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:48 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:57 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:48:00 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:48:01 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:43 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 30 Sep 2005 15:50:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Tue, 04 Oct 2005 10:57:45 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -LIST_LOAD|GOOD|Tue, 04 Oct 2005 10:57:52 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|| -VICIDIAL|GOOD|Tue, 04 Oct 2005 10:57:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:02:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:17 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:02:48 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 13 Dec 2005 17:44:00 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 13 Dec 2005 17:44:50 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 13 Dec 2005 17:53:06 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 13 Dec 2005 17:53:08 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 13 Dec 2005 17:53:11 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 10:17:14 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 10:17:51 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:01:30 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:02:01 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:02:06 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:05 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:07 -0500|6666|sales|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:25 -0500|123456|bob5|10.10.6.19|Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)|1 - TESTCAMP remote agent| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:33 -0500|123456|bob5|10.10.6.19|Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)|1 - TESTCAMP remote agent| -VICIDIAL|GOOD|Wed, 14 Dec 2005 17:04:36 -0500|123456|bob5|10.10.6.19|Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)|1 - TESTCAMP remote agent| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:09:08 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:37 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:11 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:15 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:18 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:22 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Tue, 03 Jan 2006 11:33:25 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:37:53 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:04 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:06 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:55 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:47:46 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:47:48 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:44:44 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:45:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:46:09 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:08 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:14 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:47 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:47:54 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:06 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:14 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:22 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:23 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:25 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:27 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:39 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:42 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:48:52 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 10:49:01 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 11:07:57 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:18 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:20 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:23 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:06:43 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:09:37 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:10:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:31 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:36 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:48 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:51 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:14:56 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:15:45 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:15:57 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:04 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:16 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:31 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:34 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:16:37 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:31 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:36 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:39 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:42 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:43 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:18:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:21:01 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Mon, 23 Jan 2006 12:21:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 10:01:26 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 10:01:30 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 10:08:30 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 10:08:33 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 11:34:58 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:04 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:22 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:49 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Tue, 24 Jan 2006 11:35:57 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:19 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:05 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:23 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:45 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:56 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:57 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:21:59 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:22:00 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:22:01 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:41:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 10:05:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 10:05:35 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 10:06:06 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:54 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| diff --git a/LANG_www/vicidial_en/user_stats.php b/LANG_www/vicidial_en/user_stats.php index bdada227..f753c9d2 100644 --- a/LANG_www/vicidial_en/user_stats.php +++ b/LANG_www/vicidial_en/user_stats.php @@ -6,6 +6,7 @@ # CHANGES # # 60619-1743 - Added variable filtering to eliminate SQL injection attack threat +# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit # header ("Content-type: text/html; charset=utf-8"); @@ -92,7 +93,7 @@ echo "\n"
    -
    TSR ID   $status   TOTAL CALLS   $status DAY    
    +
      VICIDIAL ADMIN: User Stats for  
    @@ -254,11 +255,11 @@ echo "

    \n"; echo "
    \n"; -echo "LAST 50 CALLS:\n"; +echo "CALLS FOR THIS TIME PERIOD: (10000 record limit)\n"; echo "
    " ?>   VICIDIAL ADMIN: User Stats for  
    \n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); @@ -270,7 +271,10 @@ echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -278,13 +282,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; } echo "
    DATE/TIME LENGTH STATUS PHONE CAMPAIGN LIST LEAD
    # DATE/TIME LENGTH STATUS PHONE CAMPAIGN LIST LEAD
    DATE/TIME LENGTH$row[4]
    $u$row[4] $row[7] $row[8] $row[10]
    DATE/TIME LENGTH $row[1]
    \n"; + +echo "RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATION
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11]
    \n"; + $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); diff --git a/LANG_www/vicidial_en/user_status.php b/LANG_www/vicidial_en/user_status.php index 8efe670f..91d106ab 100644 --- a/LANG_www/vicidial_en/user_status.php +++ b/LANG_www/vicidial_en/user_status.php @@ -124,7 +124,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: User Status for  
    diff --git a/LANG_www/vicidial_es/AST_VDADstats.php b/LANG_www/vicidial_es/AST_VDADstats.php index 0911d7aa..dff98a5a 100644 --- a/LANG_www/vicidial_es/AST_VDADstats.php +++ b/LANG_www/vicidial_es/AST_VDADstats.php @@ -7,6 +7,7 @@ # # 60619-1718 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page +# 61215-1139 - Added drop percentage of answered and round-2 decimal # header ("Content-type: text/html; charset=utf-8"); @@ -119,7 +120,7 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Llamadas dentro de esta campaña $TOTALcalls\n"; @@ -132,32 +133,49 @@ $stmt="select count(*),sum(length_in_sec) from vicidial_log where call_date >= ' $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); - $DROPcalls = sprintf("%10s", $row[0]); +$DROPcallsRAW = $row[0]; +$DROPseconds = $row[1]; + +$stmt="select count(*) from vicidial_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 status NOT IN('NA','B');"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); +$ANSWERcalls = $row[0]; + if ( ($DROPcalls < 1) or ($TOTALcalls < 1) ) {$DROPpercent = '0';} else { - $DROPpercent = (($DROPcalls / $TOTALcalls) * 100); - $DROPpercent = round($DROPpercent, 0); + $DROPpercent = (($DROPcallsRAW / $TOTALcalls) * 100); + $DROPpercent = round($DROPpercent, 2); } -if ( ($row[0] < 1) or ($row[1] < 1) ) +if ( ($DROPcalls < 1) or ($ANSWERcalls < 1) ) + {$DROPANSWERpercent = '0';} +else + { + $DROPANSWERpercent = (($DROPcallsRAW / $ANSWERcalls) * 100); + $DROPANSWERpercent = round($DROPANSWERpercent, 2); + } + +if ( ($DROPseconds < 1) or ($DROPcallsRAW < 1) ) {$average_hold_seconds = ' 0';} else { - $average_hold_seconds = ($row[1] / $row[0]); - $average_hold_seconds = round($average_hold_seconds, 0); + $average_hold_seconds = ($DROPseconds / $DROPcallsRAW); + $average_hold_seconds = round($average_hold_seconds, 2); $average_hold_seconds = sprintf("%10s", $average_hold_seconds); } echo "Total DROP Calls: $DROPcalls $DROPpercent%\n"; +echo "Percent of DROP Calls taken out of Answers: $DROPcalls / $ANSWERcalls $DROPANSWERpercent%\n"; echo "Longitud media para las llamadas DROP en segundos: $average_hold_seconds\n"; echo "\n"; echo "---------- AUTO-DIAL SIN RESPUESTA\n"; -$stmt="select count(*),sum(length_in_sec) from vicidial_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 status='NA' and (length_in_sec <= 60 or length_in_sec is null);"; +$stmt="select count(*),sum(length_in_sec) from vicidial_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 status IN('NA','B') and (length_in_sec <= 60 or length_in_sec is null);"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $row=mysql_fetch_row($rslt); @@ -168,7 +186,7 @@ if ( ($NAcalls < 1) or ($TOTALcalls < 1) ) else { $NApercent = (($NAcalls / $TOTALcalls) * 100); - $NApercent = round($NApercent, 0); + $NApercent = round($NApercent, 2); } if ( ($row[0] < 1) or ($row[1] < 1) ) @@ -176,11 +194,11 @@ if ( ($row[0] < 1) or ($row[1] < 1) ) else { $average_na_seconds = ($row[1] / $row[0]); - $average_na_seconds = round($average_na_seconds, 0); + $average_na_seconds = round($average_na_seconds, 2); $average_na_seconds = sprintf("%10s", $average_na_seconds); } -echo "Llamadas sin Respuesta - ocupado, desconexión,..: $NAcalls $NApercent%\n"; +echo "Total NA calls -Busy,Disconnect,RingNoAnswer: $NAcalls $NApercent%\n"; echo "Longitud media para las Llamadas sin Respuesta en segundos: $average_na_seconds\n"; diff --git a/LANG_www/vicidial_es/AST_agent_time_sheet.php b/LANG_www/vicidial_es/AST_agent_time_sheet.php index a01653c9..71aa363a 100644 --- a/LANG_www/vicidial_es/AST_agent_time_sheet.php +++ b/LANG_www/vicidial_es/AST_agent_time_sheet.php @@ -63,9 +63,10 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;} \n"; echo "VICIDIAL: Agent Time Sheet\n"; -echo "\n"; -echo "\n"; -echo "\n"; +echo "VICIDIAL ADMIN: Agent Time Sheet
    \n"; +echo "   \n"; +echo "Date: \n"; +echo "User ID: \n"; echo "\n"; echo "\n\n"; diff --git a/LANG_www/vicidial_es/AST_timeonVDADall.php b/LANG_www/vicidial_es/AST_timeonVDADall.php index 604aea08..ff57fabc 100644 --- a/LANG_www/vicidial_es/AST_timeonVDADall.php +++ b/LANG_www/vicidial_es/AST_timeonVDADall.php @@ -284,10 +284,10 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; if ($group=='XXXX-ALL-ACTIVE-XXXX') { - $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill) from vicidial_campaign_stats;"; + $stmt="select sum(dialable_leads),sum(calls_today),sum(drops_today),avg(drops_answers_today_pct),avg(differential_onemin),avg(agents_average_onemin),sum(balance_trunk_fill),sum(answers_today) from vicidial_campaign_stats;"; } $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); @@ -298,6 +298,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -348,7 +349,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_es/AST_timeonVDADallSUMMARY.php b/LANG_www/vicidial_es/AST_timeonVDADallSUMMARY.php index bfb0a043..4317a4a3 100644 --- a/LANG_www/vicidial_es/AST_timeonVDADallSUMMARY.php +++ b/LANG_www/vicidial_es/AST_timeonVDADallSUMMARY.php @@ -155,7 +155,7 @@ $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $VDhop = $row[0]; -$stmt="select dialable_leads,calls_today,drops_today,drops_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; +$stmt="select dialable_leads,calls_today,drops_today,drops_answers_today_pct,differential_onemin,agents_average_onemin,balance_trunk_fill,answers_today from vicidial_campaign_stats where campaign_id='" . mysql_real_escape_string($group) . "';"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $DAleads = $row[0]; @@ -165,6 +165,7 @@ $drpctTODAY = $row[3]; $diffONEMIN = $row[4]; $agentsONEMIN = $row[5]; $balanceFILL = $row[6]; +$answersTODAY = $row[7]; if ( ($diffONEMIN != 0) and ($agentsONEMIN > 0) ) { $diffpctONEMIN = ( ($diffONEMIN / $agentsONEMIN) * 100); @@ -211,7 +212,7 @@ echo ""; echo ""; echo ""; -echo ""; +echo ""; echo ""; echo ""; echo ""; diff --git a/LANG_www/vicidial_es/admin.php b/LANG_www/vicidial_es/admin.php index 6081f16e..2d7fd313 100644 --- a/LANG_www/vicidial_es/admin.php +++ b/LANG_www/vicidial_es/admin.php @@ -1907,7 +1907,7 @@ echo "
    " ?>   VICIDIAL ADMIN: User Status for  
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    HOPPER LEVEL:  $HOPlev     CALLS DROPPED:  $dropsTODAY     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatusA, $DIALstatusB, $DIALstatusC, $DIALstatusD, $DIALstatusE    
    Texto de la escritura - This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, 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, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----

    Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?

    This would read----

    Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?

    You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
    -<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:460;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> +<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290"> </iframe>
    @@ -2009,7 +2009,7 @@ El VICIDIAL tela-baso' cargador del plomo se diseña simplemente llevar un file(
  • Comentarios -
    NOTAS: La funcionalidad del cargador del plomo del sobresalir es permitida por una serie de escrituras del Perl y necesita tener un archivo correctamente configurado de /home/cron/AST_SERVER_conf.pl en lugar en el web server. También, los módulos de un Perl de los pares se deben cargar para ella para trabajar también - oLE-Storage_Lite-Storage_Lite y la Hoja de balance-ParseExcel. Usted puede comprobar para saber si hay errores runtime en éstos mirando su archivo del error_log de apache. +
    NOTES: The Excel Lead loader functionality is enabled by a series of perl scripts and needs to have a properly configured /etc/astguiclient.conf file in place on the web server. Also, a couple perl modules must be loaded for it to work as well - OLE-Storage_Lite and Spreadsheet-ParseExcel. You can check for runtime errors in these by looking at your apache error_log file. @@ -2576,7 +2576,7 @@ exit; if ($ADD==7111111) { ##### TEST VARIABLES ##### - $vendor_lead_code = 'VENDORLEADCODE'; + $vendor_lead_code = 'VENDOR:LEAD;CODE'; $list_id = 'LISTID'; $gmt_offset_now = 'GMTOFFSET'; $phone_code = '1'; @@ -2625,6 +2625,47 @@ $row=mysql_fetch_row($rslt); $script_name = $row[1]; $script_text = $row[3]; +if (eregi("iframe src",$script_text)) + { + $vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code); + $list_id = eregi_replace(' ','+',$list_id); + $gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now); + $phone_code = eregi_replace(' ','+',$phone_code); + $phone_number = eregi_replace(' ','+',$phone_number); + $title = eregi_replace(' ','+',$title); + $first_name = eregi_replace(' ','+',$first_name); + $middle_initial = eregi_replace(' ','+',$middle_initial); + $last_name = eregi_replace(' ','+',$last_name); + $address1 = eregi_replace(' ','+',$address1); + $address2 = eregi_replace(' ','+',$address2); + $address3 = eregi_replace(' ','+',$address2); + $city = eregi_replace(' ','+',$city); + $state = eregi_replace(' ','+',$state); + $province = eregi_replace(' ','+',$province); + $postal_code = eregi_replace(' ','+',$postal_code); + $country_code = eregi_replace(' ','+',$country_code); + $gender = eregi_replace(' ','+',$gender); + $date_of_birth = eregi_replace(' ','+',$date_of_birth); + $alt_phone = eregi_replace(' ','+',$alt_phone); + $email = eregi_replace(' ','+',$email); + $security_phrase = eregi_replace(' ','+',$security_phrase); + $comments = eregi_replace(' ','+',$comments); + $RGfullname = eregi_replace(' ','+',$RGfullname); + $RGuser = eregi_replace(' ','+',$RGuser); + $RGlead_id = eregi_replace(' ','+',$RGlead_id); + $RGcampaign = eregi_replace(' ','+',$RGcampaign); + $RGphone_login = eregi_replace(' ','+',$RGphone_login); + $RGgroup = eregi_replace(' ','+',$RGgroup); + $RGchannel_group = eregi_replace(' ','+',$RGchannel_group); + $RGSQLdate = eregi_replace(' ','+',$RGSQLdate); + $RGepoch = eregi_replace(' ','+',$RGepoch); + $RGuniqueid = eregi_replace(' ','+',$RGuniqueid); + $RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel); + $RGserver_ip = eregi_replace(' ','+',$RGserver_ip); + $RGSIPexten = eregi_replace(' ','+',$RGSIPexten); + $RGsession_id = eregi_replace(' ','+',$RGsession_id); + } + $script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text); $script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text); $script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text); @@ -2669,7 +2710,7 @@ $script_text = eregi_replace("\n","
    ",$script_text); echo ""; echo "Escritura De la Inspección previo: $script_id
    \n"; -echo "
    \n"; +echo "
    \n"; echo "
    $script_name
    \n"; echo "$script_text\n"; echo "
    \n"; @@ -2708,7 +2749,7 @@ if ($hh=='server') {$server_hh='bgcolor ="#FF99FF"'; $server_fc='BLACK';} # pink diff --git a/LANG_www/vicidial_es/admin_changes_log.txt b/LANG_www/vicidial_es/admin_changes_log.txt deleted file mode 100644 index 9664215b..00000000 --- a/LANG_www/vicidial_es/admin_changes_log.txt +++ /dev/null @@ -1,5 +0,0 @@ -Mon, 26 Sep 2005 12:20:13 -0400|MODIFY CAMPAIGN INFO|444|10.10.10.19|campaign_name='Test campaign for VICIDIAL 2',active='Y',dial_status_a='NEW',dial_status_b='N',dial_status_c='DROP',dial_status_d='A',dial_status_e='B',lead_order='DOWN',allow_closers='Y',hopper_level='100', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='24hours', voicemail_ext='138', dial_timeout='28', dial_prefix='9', campaign_cid='0000000000', campaign_vdad_exten='8365' where campaign_id='TESTCAMP'|N| -Mon, 26 Sep 2005 17:31:20 -0400|MODIFY USER INFO |444|10.10.10.19|pass='sales',full_name='1 - TESTCAMP remote agent',user_level='4',user_group='ADMIN' where user='123456'| -Fri, 28 Apr 2006 11:34:07 -0400|MODIFY CAMPAIGN INFO|123456|10.10.8.19|campaign_name='Test campaign for VICIDIAL 2',active='Y',dial_status_a='NA',dial_status_b='NP',dial_status_c='DROP',dial_status_d='N',dial_status_e='A',lead_order='DOWN COUNT',allow_closers='Y',hopper_level='50', auto_dial_level='1', next_agent_call='oldest_call_finish', local_call_time='24hours', voicemail_ext='138', dial_timeout='50', dial_prefix='9', campaign_cid='8775154102', campaign_vdad_exten='8365', web_form_address='http://10.10.10.196/vicidial/closer-fronter_popupX2-1.php', park_ext='8305', park_file_name='classical', campaign_rec_exten='8309', campaign_recording='ONDEMAND', campaign_rec_filename='TINYDATE_AGENT_CUSTPHONE', campaign_script='TESTCAMP04', get_call_launch='NONE', am_message_exten='8320', amd_send_to_vmx='N', xferconf_a_dtmf='1234',xferconf_a_number='7274514920', xferconf_b_dtmf='4321',xferconf_b_number='7274514032',lead_filter_id='NEWHIGH',alt_number_dialing='N',scheduled_callbacks='Y' where campaign_id='TESTCAMP'|N| -Fri, 28 Apr 2006 11:34:38 -0400|RESET LIST CALLED |123456|10.10.8.19|list_name='test domestic lists'| -Fri, 28 Apr 2006 11:34:38 -0400|MODIFY LIST INFO |123456|10.10.8.19|list_name='test domestic lists',campaign_id='TESTCAMP',active='Y' where list_id='101'| diff --git a/LANG_www/vicidial_es/admin_modify_lead.php b/LANG_www/vicidial_es/admin_modify_lead.php index 7cb31f31..f8c0e7c8 100644 --- a/LANG_www/vicidial_es/admin_modify_lead.php +++ b/LANG_www/vicidial_es/admin_modify_lead.php @@ -103,6 +103,8 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW); # 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES # 60609-1112 - Added DNC list addition if status changed to DNC # 60619-1539 - Added variable filtering to eliminate SQL injection attack threat +# 61130-1639 - Added recording_log lookup and list for this lead_id +# 61201-1136 - Added recording_log user(TSR) display and link # $STARTtime = date("U"); @@ -165,8 +167,8 @@ $browser = getenv("HTTP_USER_AGENT");
    - VICIDIAL ADMIN: Registro del Lead modificado
    \n"; if ($end_call > 0) { @@ -413,21 +415,25 @@ echo "
    \n"; echo "LLAMADAS A ESTE LEAD:\n"; echo "\n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by uniqueid desc limit 500;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); $u=0; - while ($logs_to_print > $u) { + while ($logs_to_print > $u) + { $row=mysql_fetch_row($rslt); if (eregi("1$|3$|5$|7$|9$", $u)) {$bgcolor='bgcolor="#B9CBFD"';} else {$bgcolor='bgcolor="#9BB9FB"';} - echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -435,11 +441,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; - } + } echo "
    DATE/TIME LENGTH STATUS TSR CAMPAÑA LIST LEAD
    # DATE/TIME LENGTH STATUS TSR CAMPAÑA LIST LEAD
    $row[4]
    $u$row[4] $row[7] $row[8] $row[11]
    DATE/TIME LENGTH $row[1]
    \n"; +echo "

    \n"; + +echo "RECORDINGS FOR THIS LEAD:\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where lead_id='" . mysql_real_escape_string($lead_id) . "' order by recording_id desc limit 500;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATIONTSR
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11] $row[13]
    \n"; + diff --git a/LANG_www/vicidial_es/admin_search_lead.php b/LANG_www/vicidial_es/admin_search_lead.php index 9867543d..745e3ef5 100644 --- a/LANG_www/vicidial_es/admin_search_lead.php +++ b/LANG_www/vicidial_es/admin_search_lead.php @@ -98,8 +98,9 @@ $browser = getenv("HTTP_USER_AGENT"); Operaciones de búsqueda del Lead - VICIDIAL ADMIN: Lead search
    \n"; + if ( (!$vendor_id) and (!$phone) and (!$lead_id) ) { diff --git a/LANG_www/vicidial_es/group_hourly_stats.php b/LANG_www/vicidial_es/group_hourly_stats.php index 9323fcef..018000d2 100644 --- a/LANG_www/vicidial_es/group_hourly_stats.php +++ b/LANG_www/vicidial_es/group_hourly_stats.php @@ -111,7 +111,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: Stats Cada hora Del Grupo  
    @@ -160,7 +160,7 @@ echo "
    " ?>   VICIDIAL ADMIN: Stats Cada hora Del Grupo  
    \n"; echo "
    \n"; -echo "CUENTAS DE HORAS DE TSR: $group | $status | $date_with_hour | $date_no_hour\n"; +echo "CUENTAS DE HORAS DE TSR: $group | $status | $date_with_hour | $date_no_hour\n"; echo "
    \n"; echo "\n"; diff --git a/LANG_www/vicidial_es/project_auth_entries.txt b/LANG_www/vicidial_es/project_auth_entries.txt deleted file mode 100644 index 6269ce8e..00000000 --- a/LANG_www/vicidial_es/project_auth_entries.txt +++ /dev/null @@ -1,170 +0,0 @@ -VICIDIAL|GOOD|Thu, 22 Sep 2005 17:42:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Thu, 22 Sep 2005 17:42:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Thu, 22 Sep 2005 18:35:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 11:28:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 11:32:26 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 11:32:28 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 12:39:09 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 12:52:43 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 12:52:45 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 14:33:18 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 14:33:20 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:02 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:09 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:11 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Fri, 23 Sep 2005 16:31:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:05:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:22 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:32 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:34 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:38 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:06:55 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:22 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:23 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:26 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:07:36 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:02 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:21 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:24 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 12:20:26 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 13:04:03 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -LIST_LOAD|GOOD|Mon, 26 Sep 2005 13:04:19 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|| -VICIDIAL|GOOD|Mon, 26 Sep 2005 13:14:49 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 13:14:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -LIST_LOAD|GOOD|Mon, 26 Sep 2005 13:15:08 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|| -VICIDIAL|GOOD|Mon, 26 Sep 2005 13:56:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 13:56:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VD_CLOSER|GOOD|Mon, 26 Sep 2005 13:56:28 -0400|over|ride|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|| -VICIDIAL|GOOD|Mon, 26 Sep 2005 16:17:15 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:01 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:05 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:20 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:29 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:34 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:37 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:39 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Mon, 26 Sep 2005 17:31:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:44 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:46 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:48 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:50 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Wed, 28 Sep 2005 17:47:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:44 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:46 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:48 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 30 Sep 2005 15:48:52 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 30 Sep 2005 15:59:10 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:36 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:36 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:09:53 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:11:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:13 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:40 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:41 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:42 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:42 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:44 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:46 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:47 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:50 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:52 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:54 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -LIST_LOAD|GOOD|Thu, 06 Oct 2005 10:12:55 -0400|lead|load|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:58 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:12:59 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:00 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:00 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:02 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:04 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:06 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:09 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:52 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:13:59 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:26:16 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:26:17 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 06 Oct 2005 10:26:19 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 07 Oct 2005 10:09:58 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:01 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:05 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:12 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 07 Oct 2005 10:10:39 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Fri, 07 Oct 2005 10:36:07 -0400|444|444|10.10.10.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:07 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:19 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:23 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:29 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 10 Nov 2005 15:02:34 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Thu, 10 Nov 2005 15:03:08 -0500|444|444|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|Manager| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:02:45 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Tue, 22 Nov 2005 15:29:13 -0500|6666|sales|10.10.6.1|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|test user| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:05:59 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:07 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:33 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:06:38 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 22 Dec 2005 17:09:05 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Fri, 23 Dec 2005 14:39:34 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051111 Firefox/1.5|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:10 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:13 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 19 Jan 2006 15:38:14 -0500|123456|bob5|10.10.6.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:23 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:38 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 03 Mar 2006 16:14:55 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 17 Mar 2006 14:22:24 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 17 Mar 2006 14:22:27 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 17 Mar 2006 14:22:29 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 17 Mar 2006 14:59:52 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 17 Mar 2006 14:59:53 -0500|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:03:08 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:34:00 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 17:34:03 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 18:00:32 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:09:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:12:38 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:31 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:53 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:55 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:13:57 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:14:01 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:08 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 22:18:12 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Thu, 27 Apr 2006 23:40:33 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:41 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:43 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:47 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:33:49 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:07 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:20 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:24 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:26 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:38 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:46 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:34:50 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| -VICIDIAL|GOOD|Fri, 28 Apr 2006 11:35:52 -0400|123456|bob5|10.10.8.19|Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7|1 - MATT admin| diff --git a/LANG_www/vicidial_es/user_stats.php b/LANG_www/vicidial_es/user_stats.php index 04d67509..3c5abf3c 100644 --- a/LANG_www/vicidial_es/user_stats.php +++ b/LANG_www/vicidial_es/user_stats.php @@ -6,6 +6,7 @@ # CHANGES # # 60619-1743 - Added variable filtering to eliminate SQL injection attack threat +# 61201-1136 - Added recordings display and changed calls to time range with 10000 limit # header ("Content-type: text/html; charset=utf-8"); @@ -92,7 +93,7 @@ echo "\n"
    -
    TSR ID   $status   LLAMADAS TOTALES   $status DAY    
    +
      VICIDIAL ADMIN: User Stats for  
    @@ -254,11 +255,11 @@ echo "

    \n"; echo "
    \n"; -echo "ÚLTIMAS 50 LLAMADAS:\n"; +echo "CALLS FOR THIS TIME PERIOD: (10000 record limit)\n"; echo "
    " ?>   VICIDIAL ADMIN: User Stats for  
    \n"; -echo "\n"; +echo "\n"; - $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' order by uniqueid desc limit 50;"; + $stmt="select * from vicidial_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;"; $rslt=mysql_query($stmt, $link); $logs_to_print = mysql_num_rows($rslt); @@ -270,7 +271,10 @@ echo ""; + $u++; + echo ""; + echo ""; + echo ""; echo "\n"; echo "\n"; echo "\n"; @@ -278,13 +282,46 @@ echo " $row[2] \n"; echo "\n"; - $u++; } echo "
    DATE/TIME LENGTH STATUS PHONE CAMPAÑA LIST LEAD
    # DATE/TIME LENGTH STATUS PHONE CAMPAÑA LIST LEAD
    DATE/TIME LENGTH$row[4]
    $u$row[4] $row[7] $row[8] $row[10]
    DATE/TIME LENGTH $row[1]
    \n"; + +echo "RECORDINGS FOR THIS TIME PERIOD: (10000 record limit)\n"; +echo "\n"; +echo "\n"; + + $stmt="select * from recording_log where user='" . mysql_real_escape_string($user) . "' and start_time >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and start_time <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by recording_id desc limit 10000;"; + $rslt=mysql_query($stmt, $link); + $logs_to_print = mysql_num_rows($rslt); + + $u=0; + while ($logs_to_print > $u) + { + $row=mysql_fetch_row($rslt); + if (eregi("1$|3$|5$|7$|9$", $u)) + {$bgcolor='bgcolor="#B9CBFD"';} + else + {$bgcolor='bgcolor="#9BB9FB"';} + + $u++; + echo ""; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + + } + + +echo "
    # LEADDATE/TIME SECONDS   RECIDFILENAMELOCATION
    $u $row[12] $row[4] $row[8] $row[0] $row[10] $row[11]
    \n"; + $ENDtime = date("U"); $RUNtime = ($ENDtime - $STARTtime); diff --git a/LANG_www/vicidial_es/user_status.php b/LANG_www/vicidial_es/user_status.php index 477db530..a39e51a6 100644 --- a/LANG_www/vicidial_es/user_status.php +++ b/LANG_www/vicidial_es/user_status.php @@ -124,7 +124,7 @@ echo "\n"
    - +
      VICIDIAL ADMIN: User Status for  
    diff --git a/www/vicidial/test.txt b/www/vicidial/test.txt deleted file mode 100644 index 70c379b6..00000000 --- a/www/vicidial/test.txt +++ /dev/null @@ -1 +0,0 @@ -Hello world \ No newline at end of file
    " ?>   VICIDIAL ADMIN: User Status for