diff --git a/UPGRADE b/UPGRADE index 074e6d99..1f261e31 100644 --- a/UPGRADE +++ b/UPGRADE @@ -70,6 +70,9 @@ OTHER CHANGES: screen before the timer is finished. Also added the option to use a system Script as the Wrap Up Message +6. Added $RS_droppedOFtotal options.php option for the realtime report to allow + the drops to be calculated out of Total calls instead of just Answers + diff --git a/docs/conf_examples/extensions.conf.sample-1.4 b/docs/conf_examples/extensions.conf.sample-1.4 index 0575d178..2f731f13 100644 --- a/docs/conf_examples/extensions.conf.sample-1.4 +++ b/docs/conf_examples/extensions.conf.sample-1.4 @@ -555,8 +555,9 @@ exten => _999XXXXXX3,2,Hangup exten => _999XXXXXX4,1,Set(PRI_CAUSE=27) exten => _999XXXXXX4,2,Hangup -exten => _999XXXXXX5,1,Wait(60) -exten => _999XXXXXX5,2,Hangup +exten => _999XXXXXX5,1,Ringing +exten => _999XXXXXX5,n,Wait(120) +exten => _999XXXXXX5,n,Hangup exten => _999XXXXXX6,1,Wait(10) exten => _999XXXXXX6,2,Answer diff --git a/docs/conf_examples/extensions.conf.sample-1.8 b/docs/conf_examples/extensions.conf.sample-1.8 index f1fcb2f8..8ddc11d2 100644 --- a/docs/conf_examples/extensions.conf.sample-1.8 +++ b/docs/conf_examples/extensions.conf.sample-1.8 @@ -588,7 +588,8 @@ exten => _999XXXXXX3,n,Hangup() exten => _999XXXXXX4,1,Set(PRI_CAUSE=27) exten => _999XXXXXX4,n,Hangup() -exten => _999XXXXXX5,1,Wait(120) +exten => _999XXXXXX5,1,Ringing +exten => _999XXXXXX5,n,Wait(120) exten => _999XXXXXX5,n,Hangup() exten => _999XXXXXX6,1,Wait(10) diff --git a/www/vicidial/AST_timeonVDADall.php b/www/vicidial/AST_timeonVDADall.php index 3c89ca25..af8ae768 100644 --- a/www/vicidial/AST_timeonVDADall.php +++ b/www/vicidial/AST_timeonVDADall.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2014 Matt Florell LICENSE: AGPLv2 # # live real-time stats for the VICIDIAL Auto-Dialer all servers # @@ -86,10 +86,11 @@ # 131120-1543 - Fixed small display bug when customer phone view is enabled # 140213-1705 - Fixed division by zero bug # 140328-0006 - Converted division calculations to use MathZDC function +# 140624-1424 - Added droppedOFtotal options.php option # -$version = '2.8-75'; -$build = '140328-0006'; +$version = '2.10-76'; +$build = '140624-1424'; header ("Content-type: text/html; charset=utf-8"); @@ -163,6 +164,8 @@ if (isset($_GET["RTpass"])) {$RTpass=$_GET["RTpass"];} elseif (isset($_POST["RTpass"])) {$RTpass=$_POST["RTpass"];} if (isset($_GET["user_group_filter"])) {$user_group_filter=$_GET["user_group_filter"];} elseif (isset($_POST["user_group_filter"])) {$user_group_filter=$_POST["user_group_filter"];} +if (isset($_GET["droppedOFtotal"])) {$droppedOFtotal=$_GET["droppedOFtotal"];} + elseif (isset($_POST["droppedOFtotal"])) {$droppedOFtotal=$_POST["droppedOFtotal"];} $report_name = 'Real-Time Main Report'; @@ -745,6 +748,7 @@ $select_list .= ">YES"; $select_list .= ""; $select_list .= "
"; +$select_list .= ""; $select_list .= "         "; $select_list .= ""; $select_list .= ""; @@ -1050,7 +1054,7 @@ else \n"; echo "\n"; - echo"\n"; + echo"\n"; echo "$report_name: $group\n"; $short_header=1; @@ -1091,6 +1095,7 @@ if ($RTajax < 1) echo "\n"; echo "\n"; echo "\n"; + echo "\n"; echo "Real-Time Report                                                                               \n"; echo "\n"; echo ""; } - # http://server/vicidial/AST_timeonVDADall.php?&groups[]=ALL-ACTIVE&RR=4000&DB=0&adastats=&SIPmonitorLINK=&IAXmonitorLINK=&usergroup=&UGdisplay=1&UidORname=1&orderby=timeup&SERVdisplay=0&CALLSdisplay=1&PHONEdisplay=0&CUSTPHONEdisplay=0&with_inbound=Y&monitor_active=&monitor_phone=350a&ALLINGROUPstats=1&DROPINGROUPstats=0&NOLEADSalert=&CARRIERstats=1 ##### INBOUND ONLY ### @@ -1510,12 +1523,12 @@ if (preg_match('/O/',$with_inbound)) $stmt="select count(*) from vicidial_campaigns where agent_pause_codes_active!='N' $group_SQLand;"; - $stmtB="select sum(calls_today),sum(drops_today),sum(answers_today),max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(hold_sec_stat_one),sum(hold_sec_stat_two),sum(hold_sec_answer_calls),sum(hold_sec_drop_calls),sum(hold_sec_queue_calls) from vicidial_campaign_stats where campaign_id IN ($closer_campaignsSQL);"; + $stmtB="select sum(calls_today),sum(drops_today),$answersSQL,max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(hold_sec_stat_one),sum(hold_sec_stat_two),sum(hold_sec_answer_calls),sum(hold_sec_drop_calls),sum(hold_sec_queue_calls) from vicidial_campaign_stats where campaign_id IN ($closer_campaignsSQL);"; if (preg_match('/ALL\-ACTIVE/i',$group_string)) { $inboundSQL = "where campaign_id IN ($closer_campaignsSQL)"; - $stmtB="select sum(calls_today),sum(drops_today),sum(answers_today),max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(hold_sec_stat_one),sum(hold_sec_stat_two),sum(hold_sec_answer_calls),sum(hold_sec_drop_calls),sum(hold_sec_queue_calls) from vicidial_campaign_stats $inboundSQL;"; + $stmtB="select sum(calls_today),sum(drops_today),$answersSQL,max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(hold_sec_stat_one),sum(hold_sec_stat_two),sum(hold_sec_answer_calls),sum(hold_sec_drop_calls),sum(hold_sec_queue_calls) from vicidial_campaign_stats $inboundSQL;"; } $stmtC="select agent_non_pause_sec from vicidial_campaign_stats $group_SQLwhere;"; @@ -1614,7 +1627,7 @@ else $multi_drop++; $stmt="select avg(auto_dial_level),min(dial_status_a),min(dial_status_b),min(dial_status_c),min(dial_status_d),min(dial_status_e),min(lead_order),min(lead_filter_id),sum(hopper_level),min(dial_method),avg(adaptive_maximum_level),avg(adaptive_dropped_percentage),avg(adaptive_dl_diff_target),avg(adaptive_intensity),min(available_only_ratio_tally),min(adaptive_latest_server_time),min(local_call_time),avg(dial_timeout),min(dial_statuses),max(agent_pause_codes_active),max(list_order_mix),max(auto_hopper_level) from vicidial_campaigns where active='Y' $group_SQLand;"; - $stmtB="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),max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today) from vicidial_campaign_stats where calls_today > -1 $non_inboundSQL;"; + $stmtB="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),$answersSQL,max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today) from vicidial_campaign_stats where calls_today > -1 $non_inboundSQL;"; $stmtC="select count(*) from vicidial_campaigns where agent_pause_codes_active!='N' and active='Y' $group_SQLand;"; } @@ -1629,7 +1642,7 @@ else $stmt="select auto_dial_level,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,lead_filter_id,hopper_level,dial_method,adaptive_maximum_level,adaptive_dropped_percentage,adaptive_dl_diff_target,adaptive_intensity,available_only_ratio_tally,adaptive_latest_server_time,local_call_time,dial_timeout,dial_statuses,agent_pause_codes_active,list_order_mix,auto_hopper_level from vicidial_campaigns where campaign_id IN ($group_SQL,$closer_campaignsSQL);"; - $stmtB="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),max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today) from vicidial_campaign_stats where campaign_id IN ($group_SQL,$closer_campaignsSQL);"; + $stmtB="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),$answersSQL,max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today) from vicidial_campaign_stats where campaign_id IN ($group_SQL,$closer_campaignsSQL);"; $stmtC="select count(*) from vicidial_campaigns where agent_pause_codes_active!='N' and active='Y' and campaign_id IN ($group_SQL,$closer_campaignsSQL);"; } @@ -1637,7 +1650,7 @@ else { $stmt="select avg(auto_dial_level),max(dial_status_a),max(dial_status_b),max(dial_status_c),max(dial_status_d),max(dial_status_e),max(lead_order),max(lead_filter_id),max(hopper_level),max(dial_method),max(adaptive_maximum_level),avg(adaptive_dropped_percentage),avg(adaptive_dl_diff_target),avg(adaptive_intensity),max(available_only_ratio_tally),max(adaptive_latest_server_time),max(local_call_time),max(dial_timeout),max(dial_statuses),max(agent_pause_codes_active),max(list_order_mix),max(auto_hopper_level) from vicidial_campaigns where campaign_id IN($group_SQL);"; - $stmtB="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),max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today) from vicidial_campaign_stats where campaign_id IN($group_SQL);"; + $stmtB="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),$answersSQL,max(status_category_1),sum(status_category_count_1),max(status_category_2),sum(status_category_count_2),max(status_category_3),sum(status_category_count_3),max(status_category_4),sum(status_category_count_4),sum(agent_calls_today),sum(agent_wait_today),sum(agent_custtalk_today),sum(agent_acw_today),sum(agent_pause_today) from vicidial_campaign_stats where campaign_id IN($group_SQL);"; $stmtC="select count(*) from vicidial_campaigns where agent_pause_codes_active!='N' and active='Y' and campaign_id IN($group_SQL);"; } @@ -1775,7 +1788,7 @@ else echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -1845,60 +1858,60 @@ if ($RTajax < 1) { if ($adastats<2) { - echo "+ VIEW MORE"; + echo "+ VIEW MORE"; } else { - echo "+ VIEW LESS"; + echo "+ VIEW LESS"; } if ($UGdisplay>0) { - echo "       HIDE USER GROUP"; + echo "       HIDE USER GROUP"; } else { - echo "       VIEW USER GROUP"; + echo "       VIEW USER GROUP"; } if ($SERVdisplay>0) { - echo "       HIDE SERVER INFO"; + echo "       HIDE SERVER INFO"; } else { - echo "       SHOW SERVER INFO"; + echo "       SHOW SERVER INFO"; } if ($CALLSdisplay>0) { - echo "       HIDE WAITING CALLS"; + echo "       HIDE WAITING CALLS"; } else { - echo "       SHOW WAITING CALLS"; + echo "       SHOW WAITING CALLS"; } if ($ALLINGROUPstats>0) { - echo "       HIDE IN-GROUP STATS"; + echo "       HIDE IN-GROUP STATS"; } else { - echo "       SHOW IN-GROUP STATS"; + echo "       SHOW IN-GROUP STATS"; } if ($PHONEdisplay>0) { - echo "       HIDE PHONES"; + echo "       HIDE PHONES"; } else { - echo "       SHOW PHONES"; + echo "       SHOW PHONES"; } if ($CUSTPHONEdisplay>0) { - echo "       HIDE CUSTPHONES"; + echo "       HIDE CUSTPHONES"; } else { - echo "       SHOW CUSTPHONES"; + echo "       SHOW CUSTPHONES"; } } @@ -2176,13 +2189,13 @@ $HTbegin = "|"; $HDstation = "----------------+"; $HTstation = " STATION |"; $HDphone = "-------------+"; -$HTphone = " PHONE |"; +$HTphone = " PHONE |"; if ($RTajax > 0) {$HTphone = " PHONE |";} $HDuser = "------------------------+"; -$HTuser = " USER "; +$HTuser = " USER "; if ($RTajax > 0) {$HTuser = " USER ";} if ($UidORname>0) @@ -2191,7 +2204,7 @@ if ($UidORname>0) {$HTuser .= "SHOW ID ";} else { - $HTuser .= "SHOW ID "; + $HTuser .= "SHOW ID "; } } else @@ -2200,7 +2213,7 @@ else {$HTuser .= "SHOW NAME";} else { - $HTuser .= "SHOW NAME"; + $HTuser .= "SHOW NAME"; } } @@ -2208,7 +2221,7 @@ $HTuser .= " INFO |"; $HDusergroup = "--------------+"; -$HTusergroup = " USER GROUP |"; +$HTusergroup = " USER GROUP |"; if ($RTajax > 0) {$HTusergroup = " USER GROUP |";} $HDsessionid = "------------------+"; @@ -2224,11 +2237,11 @@ $HTserver_ip = " SERVER IP |"; $HDcall_server_ip = "-----------------+"; $HTcall_server_ip = " CALL SERVER IP |"; $HDtime = "---------+"; -$HTtime = " MM:SS |"; +$HTtime = " MM:SS |"; if ($RTajax > 0) {$HTtime = " MM:SS |";} $HDcampaign = "------------+"; -$HTcampaign = " CAMPAIGN |"; +$HTcampaign = " CAMPAIGN |"; if ($RTajax > 0) {$HTcampaign = " CAMPAIGN |";} $HDcalls = "-------+"; diff --git a/www/vicidial/options-example.php b/www/vicidial/options-example.php index b10b4372..1044eb1b 100644 --- a/www/vicidial/options-example.php +++ b/www/vicidial/options-example.php @@ -15,6 +15,7 @@ # 130123-1950 - Added option for using non-selectable statuses in admin_modify_lead.php # 130124-1735 - Added option to display first and last name in user stats results # 140124-1003 - Removed extra newline at end of file +# 140624-1422 - Added droppedOFtotal options.php option # # used by the realtime_report.php script @@ -54,6 +55,7 @@ $RS_with_inbound = 'Y'; $RS_CARRIERstats = 0; # 0=no, 1=yes $RS_PRESETstats = 0; # 0=no, 1=yes $RS_AGENTtimeSTATS = 0; # 0=no, 1=yes +$RS_droppedOFtotal = 0; # 0=no, 1=yes # used by agent reports $user_case = 0; # 1=upper-case, 2-lower-case, 0-no-case-change diff --git a/www/vicidial/realtime_report.php b/www/vicidial/realtime_report.php index f245f3e6..e2632f12 100644 --- a/www/vicidial/realtime_report.php +++ b/www/vicidial/realtime_report.php @@ -26,12 +26,13 @@ # 130616-2237 - Added filtering of input to prevent SQL injection attacks and new user auth # 130901-0858 - Changed to mysqli PHP functions # 140108-0722 - Added webserver and hostname to report logging +# 140624-1423 - Added droppedOFtotal options.php option # $startMS = microtime(); -$version = '2.8-14'; -$build = '130901-0858'; +$version = '2.10-15'; +$build = '140624-1423'; header ("Content-type: text/html; charset=utf-8"); @@ -99,6 +100,8 @@ if (isset($_GET["PRESETstats"])) {$PRESETstats=$_GET["PRESETstats"];} elseif (isset($_POST["PRESETstats"])) {$PRESETstats=$_POST["PRESETstats"];} if (isset($_GET["AGENTtimeSTATS"])) {$AGENTtimeSTATS=$_GET["AGENTtimeSTATS"];} elseif (isset($_POST["AGENTtimeSTATS"])) {$AGENTtimeSTATS=$_POST["AGENTtimeSTATS"];} +if (isset($_GET["droppedOFtotal"])) {$droppedOFtotal=$_GET["droppedOFtotal"];} + elseif (isset($_POST["droppedOFtotal"])) {$droppedOFtotal=$_POST["droppedOFtotal"];} $report_name = 'Real-Time Main Report'; $db_source = 'M'; @@ -220,6 +223,11 @@ if (!isset($AGENTtimeSTATS)) if (!isset($RS_AGENTtimeSTATS)) {$AGENTtimeSTATS='0';} else {$AGENTtimeSTATS = $RS_AGENTtimeSTATS;} } +if (!isset($droppedOFtotal)) + { + if (!isset($RS_droppedOFtotal)) {$droppedOFtotal='0';} + else {$droppedOFtotal = $RS_droppedOFtotal;} + } $ingroup_detail=''; @@ -279,6 +287,7 @@ $monitor_phone = preg_replace('/[^-_0-9a-zA-Z]/', '', $monitor_phone); $CARRIERstats = preg_replace('/[^-_0-9a-zA-Z]/', '', $CARRIERstats); $PRESETstats = preg_replace('/[^-_0-9a-zA-Z]/', '', $PRESETstats); $AGENTtimeSTATS = preg_replace('/[^-_0-9a-zA-Z]/', '', $AGENTtimeSTATS); +$droppedOFtotal = preg_replace('/[^-_0-9a-zA-Z]/', '', $droppedOFtotal); $auth=0; @@ -819,6 +828,7 @@ $select_list .= ">YES"; $select_list .= ""; $select_list .= "
\n"; @@ -1100,9 +1105,9 @@ if ($RTajax < 1) echo "\n"; echo "   "; echo "\n"; - echo "STOP | "; - echo "SLOW | "; - echo "GO"; + echo "STOP | "; + echo "SLOW | "; + echo "GO"; if (preg_match('/ALL\-ACTIVE/i',$group_string)) { echo "       MODIFY | \n"; @@ -1160,11 +1165,20 @@ if (strlen($closer_campaignsSQL)<2) if ($DB > 0) {echo "\n|$closer_campaigns|$closer_campaignsSQL|$stmt|\n";} +$answersSQL = 'sum(answers_today)'; +$answers_singleSQL = 'answers_today'; +$answers_text = 'ANSWERED'; +if ($droppedOFtotal > 0) + { + $answersSQL = 'sum(calls_today)'; + $answers_singleSQL = 'calls_today'; + $answers_text = 'TOTAL '; + } ##### SHOW IN-GROUP STATS OR INBOUND ONLY WITH VIEW-MORE ### if ( ($ALLINGROUPstats > 0) or ( (preg_match('/O/',$with_inbound)) and ($adastats > 1) ) ) { - $stmtB="select calls_today,drops_today,answers_today,status_category_1,status_category_count_1,status_category_2,status_category_count_2,status_category_3,status_category_count_3,status_category_4,status_category_count_4,hold_sec_stat_one,hold_sec_stat_two,hold_sec_answer_calls,hold_sec_drop_calls,hold_sec_queue_calls,campaign_id from vicidial_campaign_stats where campaign_id IN ($closer_campaignsSQL) order by campaign_id;"; + $stmtB="select calls_today,drops_today,$answers_singleSQL,status_category_1,status_category_count_1,status_category_2,status_category_count_2,status_category_3,status_category_count_3,status_category_4,status_category_count_4,hold_sec_stat_one,hold_sec_stat_two,hold_sec_answer_calls,hold_sec_drop_calls,hold_sec_queue_calls,campaign_id from vicidial_campaign_stats where campaign_id IN ($closer_campaignsSQL) order by campaign_id;"; if ($DB > 0) {echo "\n|$stmtB|\n";} @@ -1264,7 +1278,7 @@ if ( ($DROPINGROUPstats > 0) and (!preg_match("/ALL-ACTIVE/",$group_string)) ) $DIGcampaigns = preg_replace("/,$/",'',$DIGcampaigns); if (strlen($DIGcampaigns) < 2) {$DIGcampaigns = "''";} - $stmtB="select sum(calls_today),sum(drops_today),sum(answers_today) from vicidial_campaign_stats where campaign_id IN($DIGcampaigns);"; + $stmtB="select sum(calls_today),sum(drops_today),$answersSQL from vicidial_campaign_stats where campaign_id IN($DIGcampaigns);"; if ($DB > 0) {echo "\n|$stmtB|\n";} $rslt=mysql_to_mysqli($stmtB, $link); @@ -1500,7 +1514,6 @@ if ($PRESETstats > 0) $PRESETstatsHTML .= "
HOPPER ( min/auto ):  $HOPlev / $AHOPlev     DROPPED / ANSWERED:  $dropsTODAY / $answersTODAY   DROPPED / $answers_text:  $dropsTODAY / $answersTODAY   DL DIFF:  $diffONEMIN     STATUSES:  $DIALstatuses    

"; +$select_list .= ""; $select_list .= "         "; $select_list .= ""; $select_list .= ""; @@ -999,6 +1009,7 @@ var NOLEADSalert = ''; var CARRIERstats = ''; var PRESETstats = ''; var AGENTtimeSTATS = ''; +var droppedOFtotal = ''; // functions to hide and show different DIVs function showDiv(divvar) @@ -1282,7 +1293,7 @@ function gather_realtime_content() } if (xmlhttp) { - RTupdate_query = "RTajax=1&DB=" + DB + "" + groupQS + usergroupQS + "&adastats=" + adastats + "&SIPmonitorLINK=" + SIPmonitorLINK + "&IAXmonitorLINK=" + IAXmonitorLINK + "&usergroup=" + usergroup + "&UGdisplay=" + UGdisplay + "&UidORname=" + UidORname + "&orderby=" + orderby + "&SERVdisplay=" + SERVdisplay + "&CALLSdisplay=" + CALLSdisplay + "&PHONEdisplay=" + PHONEdisplay + "&CUSTPHONEdisplay=" + CUSTPHONEdisplay + "&with_inbound=" + with_inbound + "&monitor_active=" + monitor_active + "&monitor_phone=" + monitor_phone + "&ALLINGROUPstats=" + ALLINGROUPstats + "&DROPINGROUPstats=" + DROPINGROUPstats + "&NOLEADSalert=" + NOLEADSalert + "&CARRIERstats=" + CARRIERstats + "&PRESETstats=" + PRESETstats + "&AGENTtimeSTATS=" + AGENTtimeSTATS + ""; + RTupdate_query = "RTajax=1&DB=" + DB + "" + groupQS + usergroupQS + "&adastats=" + adastats + "&SIPmonitorLINK=" + SIPmonitorLINK + "&IAXmonitorLINK=" + IAXmonitorLINK + "&usergroup=" + usergroup + "&UGdisplay=" + UGdisplay + "&UidORname=" + UidORname + "&orderby=" + orderby + "&SERVdisplay=" + SERVdisplay + "&CALLSdisplay=" + CALLSdisplay + "&PHONEdisplay=" + PHONEdisplay + "&CUSTPHONEdisplay=" + CUSTPHONEdisplay + "&with_inbound=" + with_inbound + "&monitor_active=" + monitor_active + "&monitor_phone=" + monitor_phone + "&ALLINGROUPstats=" + ALLINGROUPstats + "&DROPINGROUPstats=" + DROPINGROUPstats + "&NOLEADSalert=" + NOLEADSalert + "&CARRIERstats=" + CARRIERstats + "&PRESETstats=" + PRESETstats + "&AGENTtimeSTATS=" + AGENTtimeSTATS + "&droppedOFtotal=" + droppedOFtotal + ""; xmlhttp.open('POST', 'AST_timeonVDADall.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); @@ -1411,6 +1422,7 @@ function update_variables(task_option,task_choice,force_reload) var AGENTtimeSTATSFORM = document.getElementById('AGENTtimeSTATS'); AGENTtimeSTATS = AGENTtimeSTATSFORM[AGENTtimeSTATSFORM.selectedIndex].value; var temp_monitor_phone = document.REALTIMEform.monitor_phone.value; + var droppedOFtotal = document.REALTIMEform.droppedOFtotal.value; var temp_camp_choices = ''; var selCampObj = document.getElementById('groups[]'); @@ -1451,7 +1463,7 @@ function update_variables(task_option,task_choice,force_reload) // force a reload if the phone is changed if ( (temp_monitor_phone != monitor_phone) || (force_reload=='YES') ) { - reload_url = PHP_SELF + "?RR=" + RR + "&DB=" + DB + "" + groupQS + usergroupQS + "&adastats=" + adastats + "&SIPmonitorLINK=" + SIPmonitorLINK + "&IAXmonitorLINK=" + IAXmonitorLINK + "&usergroup=" + usergroup + "&UGdisplay=" + UGdisplay + "&UidORname=" + UidORname + "&orderby=" + orderby + "&SERVdisplay=" + SERVdisplay + "&CALLSdisplay=" + CALLSdisplay + "&PHONEdisplay=" + PHONEdisplay + "&CUSTPHONEdisplay=" + CUSTPHONEdisplay + "&with_inbound=" + with_inbound + "&monitor_active=" + monitor_active + "&monitor_phone=" + temp_monitor_phone + "&ALLINGROUPstats=" + ALLINGROUPstats + "&DROPINGROUPstats=" + DROPINGROUPstats + "&NOLEADSalert=" + NOLEADSalert + "&CARRIERstats=" + CARRIERstats + "&PRESETstats=" + PRESETstats + "&AGENTtimeSTATS=" + AGENTtimeSTATS + ""; + reload_url = PHP_SELF + "?RR=" + RR + "&DB=" + DB + "" + groupQS + usergroupQS + "&adastats=" + adastats + "&SIPmonitorLINK=" + SIPmonitorLINK + "&IAXmonitorLINK=" + IAXmonitorLINK + "&usergroup=" + usergroup + "&UGdisplay=" + UGdisplay + "&UidORname=" + UidORname + "&orderby=" + orderby + "&SERVdisplay=" + SERVdisplay + "&CALLSdisplay=" + CALLSdisplay + "&PHONEdisplay=" + PHONEdisplay + "&CUSTPHONEdisplay=" + CUSTPHONEdisplay + "&with_inbound=" + with_inbound + "&monitor_active=" + monitor_active + "&monitor_phone=" + temp_monitor_phone + "&ALLINGROUPstats=" + ALLINGROUPstats + "&DROPINGROUPstats=" + DROPINGROUPstats + "&NOLEADSalert=" + NOLEADSalert + "&CARRIERstats=" + CARRIERstats + "&PRESETstats=" + PRESETstats + "&AGENTtimeSTATS=" + AGENTtimeSTATS + "&droppedOFtotal=" + droppedOFtotal + ""; // alert('|' + temp_monitor_phone + '|' + monitor_phone + '|\n' + reload_url); window.location.href = reload_url;