diff --git a/UPGRADE b/UPGRADE
index ee114e06..48b36903 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -514,6 +514,12 @@ OTHER CHANGES:
Also added an option to auto-resume the agent when leaving those
funtions.
+119. Changed almost all of the browser alerts to HTML alerts. These are the
+ messages that tell you for example that you cannot do this when paused.
+ The reason for the change is that browser alerts are blocking and will
+ halt executiong of javascript on the agent workstation. This change
+ should require no alterations to any configurations.
+
diff --git a/bin/AST_VDauto_dial.pl b/bin/AST_VDauto_dial.pl
index e2ccf548..d8ef8e5f 100644
--- a/bin/AST_VDauto_dial.pl
+++ b/bin/AST_VDauto_dial.pl
@@ -1245,7 +1245,7 @@ while($one_day_interval > 0)
if ($sthArows > 0)
{
@aryA = $sthA->fetchrow_array;
- $CLuser = "$aryA[0]";
+ $CLuser = $aryA[0];
}
$sthA->finish();
if ( (length($CLlead_id) < 1) || ($CLlead_id < 1) )
diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt
index e8441d93..9a82ef32 100644
--- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt
+++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt
@@ -537,6 +537,23 @@ QM Phone Environment||
If QueueMetrics integration is enabled in the system settings then this setting allow the insertion of this data value in the data4 field of the queue_log for agent activity records. Default is empty for disabled||
Active Twin Server IP||
Some vicidial systems require setting up vicidial servers in pairs. This setting is where you can put the server IP of another vicidial server that this server is twinned with. Default is empty for disabled||
+NOTES: For ring_all, the agents that are using phones that have On Hook Agent enabled will have their phones ring and the first one to answer will receive the call and the information on the agent screen. Since ring_all ignores agent wait time and ranking and will call every agent that is available for the queue, we do not recommend using this method for large queues. When using ring_all, agents logged with phones that have the On Hook Agent disabled will have to use the Calls In Queue panel and click on the TAKE CALL link to take calls in queue. The amount of time the agents phone will ring for ring_all is set to the On-Hook Ring Time setting or the shortest ring time of the phones that will be called. We do not recommend using ring_all on high call volume queues, or queues with many agents. The ring_all method is intended to be used with only a few agents and on low call volume in-groups||
+This option is only used for agents that are logged in with phones that have the agent-on-hook feature enabled. This is the number of seconds that each call attempt to the agent will ring for until the system will wait one second and start ringing the available agent phones again. This field can be overridden if the agent phones are set to a lower ring time which may be necessary to prevent calls from being sent one phones voicemail. Default is 15||
+On-Hook Agent||
+On-Hook Ring Time||
+This option is only used for inbound calls going to this remote agent. This feature will call the remote agent and will not send the customer to the remote agent until the line is answered. Default is N for disabled||
+This option is only used when the On-Hook Agent field above is set to Y and then only for inbound calls coming to this remote agent. This is the number of seconds that each call attempt will ring to try to get an answer. It is recommended that you set this to a few seconds less than it takes for a call to be sent to voicemail. Default is 15||
+On-Hook Agent Login||
+This option is only used for inbound calls going to an agent logged in with this phone. This feature will call the agent and will not send the customer to the agents session until the line is answered. Default is N for disabled||
+This is a Phone On-Hook Agent||
+Maximum Ring Time||
+The DEFER options will stop blinking and-or displaying in red when you check the callbacks, until the number of callbacks changes||
+Auto Pause Pre-Call Work||
+In auto-dial mode, this setting if enabled will set the agent to paused automatically when the agent clicks on any of the following functions that requires them to be paused- Manual Dial, Fast Dial, Lead Search, Call Log View, Callbacks Check, Enter Pause Code. Default is N for inactive||
+Auto Resume Pre-Call Work||
+In auto-dial mode, this setting if enabled will set the agent to active automatically when the agent clicks out of, or cancels, on any of the following functions that requires them to be paused- Manual Dial, Fast Dial, Lead Search, Call Log View, Callbacks Check, Enter Pause Code. Default is N for inactive||
+Auto Pause Pre-Call Code||
+If the Auto Pause Pre-Call Work function above is active, and Agent Pause Codes is active, this setting will be the pause code that is used when the agent is paused for these activities. Default is PRECAL||
AST_LISTS_campaign_stats.php
@@ -586,23 +603,7 @@ Callback Trigger Time||
Callback Comments||
To see information on one of the callbacks below, click on the INFO link. To call the customer back now, click on the DIAL link. If you click on a record below to dial it, it will be removed from the list||
rings all available agents until one picks up the phone||
-NOTES: For ring_all, the agents that are using phones that have On Hook Agent enabled will have their phones ring and the first one to answer will receive the call and the information on the agent screen. Since ring_all ignores agent wait time and ranking and will call every agent that is available for the queue, we do not recommend using this method for large queues. When using ring_all, agents logged with phones that have the On Hook Agent disabled will have to use the Calls In Queue panel and click on the TAKE CALL link to take calls in queue. The amount of time the agents phone will ring for ring_all is set to the On-Hook Ring Time setting or the shortest ring time of the phones that will be called. We do not recommend using ring_all on high call volume queues, or queues with many agents. The ring_all method is intended to be used with only a few agents and on low call volume in-groups||
-This option is only used for agents that are logged in with phones that have the agent-on-hook feature enabled. This is the number of seconds that each call attempt to the agent will ring for until the system will wait one second and start ringing the available agent phones again. This field can be overridden if the agent phones are set to a lower ring time which may be necessary to prevent calls from being sent one phones voicemail. Default is 15||
-On-Hook Agent||
-On-Hook Ring Time||
-This option is only used for inbound calls going to this remote agent. This feature will call the remote agent and will not send the customer to the remote agent until the line is answered. Default is N for disabled||
-This option is only used when the On-Hook Agent field above is set to Y and then only for inbound calls coming to this remote agent. This is the number of seconds that each call attempt will ring to try to get an answer. It is recommended that you set this to a few seconds less than it takes for a call to be sent to voicemail. Default is 15||
-On-Hook Agent Login||
-This option is only used for inbound calls going to an agent logged in with this phone. This feature will call the agent and will not send the customer to the agents session until the line is answered. Default is N for disabled||
-This is a Phone On-Hook Agent||
-Maximum Ring Time||
-The DEFER options will stop blinking and-or displaying in red when you check the callbacks, until the number of callbacks changes||
-Auto Pause Pre-Call Work||
-In auto-dial mode, this setting if enabled will set the agent to paused automatically when the agent clicks on any of the following functions that requires them to be paused- Manual Dial, Fast Dial, Lead Search, Call Log View, Callbacks Check, Enter Pause Code. Default is N for inactive||
-Auto Resume Pre-Call Work||
-In auto-dial mode, this setting if enabled will set the agent to active automatically when the agent clicks out of, or cancels, on any of the following functions that requires them to be paused- Manual Dial, Fast Dial, Lead Search, Call Log View, Callbacks Check, Enter Pause Code. Default is N for inactive||
-Auto Pause Pre-Call Code||
-If the Auto Pause Pre-Call Work function above is active, and Agent Pause Codes is active, this setting will be the pause code that is used when the agent is paused for these activities. Default is PRECAL||
+No calls for this lead||
############################################################ MANAGER Manual
diff --git a/www/agc/images/alert.gif b/www/agc/images/alert.gif
new file mode 100644
index 00000000..b28cda56
Binary files /dev/null and b/www/agc/images/alert.gif differ
diff --git a/www/agc/vdc_db_query.php b/www/agc/vdc_db_query.php
index 14c6df45..92157f85 100644
--- a/www/agc/vdc_db_query.php
+++ b/www/agc/vdc_db_query.php
@@ -279,10 +279,11 @@
# 110303-1616 - Added vicidial_log_extended logging for manual dial calls
# 110304-1207 - Changed lead search with territory restriction to work with agents that cannot select territories
# 110310-0546 - Added ability to set a pause code at the same time of a pause
+# 100310-1628 - removed callslogview, extended lead info function to be used instead
#
-$version = '2.4-184';
-$build = '110310-0546';
+$version = '2.4-185';
+$build = '100310-1628';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=408;
$one_mysql_log=0;
@@ -5961,7 +5962,7 @@ if ($ACTION == 'updateDISPO')
}
$PADlead_id = sprintf("%010s", $lead_id);
- while (strlen($PADlead_id) > 10) {$PADlead_id = substr("$PADlead_id", 1);}
+ while (strlen($PADlead_id) > 9) {$PADlead_id = substr("$PADlead_id", 1);}
$FAKEcall_id = "$StarTtime.$PADlead_id";
$stmt = "INSERT INTO vicidial_log set uniqueid='$FAKEcall_id',lead_id='$lead_id',list_id='$VLlist_id',campaign_id='$campaign',call_date='$NOW_TIME',start_epoch='$StarTtime',end_epoch='$StarTtime',length_in_sec='0',status='$log_dispo_choice',phone_code='$VLphone_code',phone_number='$VLphone_number',user='$user',comments='MANUAL',processed='N',user_group='$user_group',term_reason='AGENT',alt_dial='$VLalt';";
if ($DB) {echo "$stmt\n";}
@@ -8499,8 +8500,9 @@ if ($ACTION == 'SEARCHRESULTSview')
}
+
################################################################################
-### LEADINFOview - display the information for a lead
+### LEADINFOview - display the information for a lead and logs for that lead
################################################################################
if ($ACTION == 'LEADINFOview')
{
@@ -8511,6 +8513,10 @@ if ($ACTION == 'LEADINFOview')
$hide_dial_links=0;
echo "
\n";
+ if ($search == 'logfirst')
+ {$hide_dial_links++;}
+
+ ### BEGIN Display callback information ###
$callback_id = preg_replace('/\D/','',$callback_id);
if (strlen($callback_id) > 0)
{
@@ -8533,7 +8539,12 @@ if ($ACTION == 'LEADINFOview')
$hide_dial_links++;
}
}
+ ### END Display callback information ###
+
+
+ ### BEGIN Display lead info and custom fields ###
### BEGIN find any custom field labels ###
+ $INFOout='';
$label_title = 'Title';
$label_first_name = 'First';
$label_middle_initial = 'MI';
@@ -8578,64 +8589,64 @@ if ($ACTION == 'LEADINFOview')
if (strlen($row[18])>0) {$label_comments = $row[18];}
### END find any custom field labels ###
- echo "";
+ $INFOout .= "";
$stmt="select status,vendor_lead_code,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,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner,entry_list_id from vicidial_list where lead_id='$lead_id' limit 1;";
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00398',$user,$server_ip,$session_name,$one_mysql_log);}
$info_to_print = mysql_num_rows($rslt);
- if ($format=='debug') {echo "|$out_logs_to_print|$stmt|";}
+ if ($format=='debug') {$INFOout .= "|$out_logs_to_print|$stmt|";}
if ($info_to_print > 0)
{
$row=mysql_fetch_row($rslt);
- echo "| Status: | $row[0] |
";
- echo "| $label_vendor_lead_code: | $row[1] |
";
- echo "| List ID: | $row[2] |
";
- echo "| Timezone: | $row[3] |
";
- echo "| Called Since Last Reset: | $row[4] |
";
- echo "| $label_phone_code: | $row[5] |
";
- echo "| $label_phone_number: | $row[6] - ";
+ $INFOout .= "| Status: | $row[0] | ";
+ $INFOout .= "| $label_vendor_lead_code: | $row[1] | ";
+ $INFOout .= "| List ID: | $row[2] | ";
+ $INFOout .= "| Timezone: | $row[3] | ";
+ $INFOout .= "| Called Since Last Reset: | $row[4] | ";
+ $INFOout .= "| $label_phone_code: | $row[5] | ";
+ $INFOout .= "| $label_phone_number: | $row[6] - ";
if ($hide_dial_links < 1)
- {echo "DIAL";}
- echo " | ";
- echo "| $label_title: | $row[7] | ";
- echo "| $label_first_name: | $row[8] | ";
- echo "| $label_middle_initial: | $row[9] | ";
- echo "| $label_last_name: | $row[10] | ";
- echo "| $label_address1: | $row[11] | ";
- echo "| $label_address2: | $row[12] | ";
- echo "| $label_address3: | $row[13] | ";
- echo "| $label_city: | $row[14] | ";
- echo "| $label_state: | $row[15] | ";
- echo "| $label_province: | $row[16] | ";
- echo "| $label_postal_code: | $row[17] | ";
- echo "| Country: | $row[18] | ";
- echo "| $label_gender: | $row[19] | ";
- echo "| $label_alt_phone: | $row[20] - ";
+ {$INFOout .= "DIAL";}
+ $INFOout .= " | ";
+ $INFOout .= "| $label_title: | $row[7] | ";
+ $INFOout .= "| $label_first_name: | $row[8] | ";
+ $INFOout .= "| $label_middle_initial: | $row[9] | ";
+ $INFOout .= "| $label_last_name: | $row[10] | ";
+ $INFOout .= "| $label_address1: | $row[11] | ";
+ $INFOout .= "| $label_address2: | $row[12] | ";
+ $INFOout .= "| $label_address3: | $row[13] | ";
+ $INFOout .= "| $label_city: | $row[14] | ";
+ $INFOout .= "| $label_state: | $row[15] | ";
+ $INFOout .= "| $label_province: | $row[16] | ";
+ $INFOout .= "| $label_postal_code: | $row[17] | ";
+ $INFOout .= "| Country: | $row[18] | ";
+ $INFOout .= "| $label_gender: | $row[19] | ";
+ $INFOout .= "| $label_alt_phone: | $row[20] - ";
if ($hide_dial_links < 1)
- {echo "DIAL";}
- echo " | ";
- echo "| $label_email: | $row[21] | ";
- echo "| $label_security_phrase: | $row[22] | ";
- echo "| $label_comments: | $row[23] | ";
- echo "| Called Count: | $row[24] | ";
- echo "| Last Local Call Time: | $row[25] | ";
- # echo "| Rank: | $row[26] | ";
- # echo "| Owner: | $row[27] | ";
- # echo "| Entry List ID: | $row[28] | ";
+ {$INFOout .= "DIAL";}
+ $INFOout .= " |
";
+ $INFOout .= "| $label_email: | $row[21] |
";
+ $INFOout .= "| $label_security_phrase: | $row[22] |
";
+ $INFOout .= "| $label_comments: | $row[23] |
";
+ $INFOout .= "| Called Count: | $row[24] |
";
+ $INFOout .= "| Last Local Call Time: | $row[25] |
";
+ # $INFOout .= "| Rank: | $row[26] |
";
+ # $INFOout .= "| Owner: | $row[27] |
";
+ # $INFOout .= "| Entry List ID: | $row[28] |
";
$entry_list_id = $row[28];
$CFoutput='';
$stmt="SHOW TABLES LIKE \"custom_$entry_list_id\";";
- if ($DB>0) {echo "$stmt";}
+ if ($DB>0) {$INFOout .= "$stmt";}
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00382',$user,$server_ip,$session_name,$one_mysql_log);}
$tablecount_to_print = mysql_num_rows($rslt);
if ($tablecount_to_print > 0)
{
$stmt="SELECT count(*) from custom_$entry_list_id where lead_id='$lead_id';";
- if ($DB>0) {echo "$stmt";}
+ if ($DB>0) {$INFOout .= "$stmt";}
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00383',$user,$server_ip,$session_name,$one_mysql_log);}
$fieldscount_to_print = mysql_num_rows($rslt);
@@ -8664,7 +8675,7 @@ if ($ACTION == 'LEADINFOview')
$stmt="SELECT $select_SQL FROM custom_$entry_list_id where lead_id='$lead_id' LIMIT 1;";
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00385',$user,$server_ip,$session_name,$one_mysql_log);}
- if ($DB) {echo "$stmt\n";}
+ if ($DB) {$INFOout .= "$stmt\n";}
$list_lead_ct = mysql_num_rows($rslt);
if ($list_lead_ct > 0)
{
@@ -8674,7 +8685,7 @@ if ($ACTION == 'LEADINFOview')
{
$A_field_value = trim("$row[$o]");
- echo "| $A_field_name[$o]: | $A_field_value |
";
+ $INFOout .= "| $A_field_name[$o]: | $A_field_value |
";
$o++;
}
@@ -8684,31 +8695,36 @@ if ($ACTION == 'LEADINFOview')
}
}
- echo "
";
- echo "
";
+ $INFOout .= "
";
+ $INFOout .= "
";
+ ### END Display lead info and custom fields ###
- echo "CALL LOG FOR THIS LEAD:
\n";
- echo "";
- echo "";
- echo "| # | ";
- echo " DATE/TIME | ";
- echo " AGENT | ";
- echo " LENGTH | ";
- echo " STATUS | ";
- echo " PHONE | ";
- echo " CAMPAIGN | ";
- echo " IN/OUT | ";
- echo " ALT | ";
- echo " HANGUP | ";
- # echo "
";
- # echo "| FULL NAME | ";
- echo "
";
+
+ ### BEGIN Gather Call Log and notes ###
+ $NOTESout='';
+ if ($search != 'logfirst')
+ {$NOTESout .= "CALL LOG FOR THIS LEAD:
\n";}
+ $NOTESout .= "";
+ $NOTESout .= "";
+ $NOTESout .= "| # | ";
+ $NOTESout .= " DATE/TIME | ";
+ $NOTESout .= " AGENT | ";
+ $NOTESout .= " LENGTH | ";
+ $NOTESout .= " STATUS | ";
+ $NOTESout .= " PHONE | ";
+ $NOTESout .= " CAMPAIGN | ";
+ $NOTESout .= " IN/OUT | ";
+ $NOTESout .= " ALT | ";
+ $NOTESout .= " HANGUP | ";
+ # $NOTESout .= "
";
+ # $NOTESout .= "| FULL NAME | ";
+ $NOTESout .= "
";
$stmt="select start_epoch,call_date,campaign_id,length_in_sec,status,phone_code,phone_number,lead_id,term_reason,alt_dial,comments,uniqueid,user from vicidial_log where lead_id='$lead_id' order by call_date desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$out_logs_to_print = mysql_num_rows($rslt);
- if ($format=='debug') {echo "|$out_logs_to_print|$stmt|";}
+ if ($format=='debug') {$NOTESout .= "|$out_logs_to_print|$stmt|";}
$g=0;
$u=0;
@@ -8759,7 +8775,7 @@ if ($ACTION == 'LEADINFOview')
$stmt="select start_epoch,call_date,campaign_id,length_in_sec,status,phone_code,phone_number,lead_id,term_reason,queue_seconds,uniqueid,closecallid,user from vicidial_closer_log where lead_id='$lead_id' order by call_date desc limit 10000;";
$rslt=mysql_query($stmt, $link);
$in_logs_to_print = mysql_num_rows($rslt);
- if ($format=='debug') {echo "|$in_logs_to_print|$stmt|";}
+ if ($format=='debug') {$NOTESout .= "|$in_logs_to_print|$stmt|";}
$u=0;
while ($in_logs_to_print > $u)
@@ -8810,7 +8826,7 @@ if ($ACTION == 'LEADINFOview')
if ($g > 0)
{sort($ALLsort, SORT_NUMERIC);}
else
- {echo "| No calls found |
";}
+ {$NOTESout .= "| No calls found |
";}
$u=0;
while ($g > $u)
@@ -8824,202 +8840,38 @@ if ($ACTION == 'LEADINFOview')
{$bgcolor='bgcolor="#9BB9FB"';}
$u++;
- echo "";
- echo "| $u | ";
- echo "$ALLcall_date[$i] | ";
- echo " $ALLuser[$i] | \n";
- echo " $ALLlength_in_sec[$i] | \n";
- echo " $ALLstatus[$i] | \n";
- echo " $ALLphone_code[$i] $ALLphone_number[$i] | \n";
- echo " $ALLcampaign_id[$i] | \n";
- echo " $ALLin_out[$i] | \n";
- echo " $ALLalt_dial[$i] | \n";
- echo " $ALLhangup_reason[$i] | \n";
- echo "
";
- echo " | ";
- echo " $Allcall_notes[$i] | ";
- echo "
\n";
+ $NOTESout .= "";
+ $NOTESout .= "| $u | ";
+ $NOTESout .= "$ALLcall_date[$i] | ";
+ $NOTESout .= " $ALLuser[$i] | \n";
+ $NOTESout .= " $ALLlength_in_sec[$i] | \n";
+ $NOTESout .= " $ALLstatus[$i] | \n";
+ $NOTESout .= " $ALLphone_code[$i] $ALLphone_number[$i] | \n";
+ $NOTESout .= " $ALLcampaign_id[$i] | \n";
+ $NOTESout .= " $ALLin_out[$i] | \n";
+ $NOTESout .= " $ALLalt_dial[$i] | \n";
+ $NOTESout .= " $ALLhangup_reason[$i] | \n";
+ $NOTESout .= "
";
+ $NOTESout .= " | ";
+ $NOTESout .= " $Allcall_notes[$i] | ";
+ $NOTESout .= "
\n";
}
- echo "
";
- echo "
";
+ $NOTESout .= "
";
+ $NOTESout .= "
";
+ ### END Gather Call Log and notes ###
+
+
+ if ($search == 'logfirst')
+ {echo "$NOTESout\n$INFOout\n";}
+ else
+ {echo "$INFOout\n$NOTESout\n";}
- echo "Close Info Box";
echo "";
}
}
-################################################################################
-### CALLNOTESview - display all notes for a specific lead
-################################################################################
-if ($ACTION == 'CALLNOTESview')
- {
- if (strlen($stage) < 3)
- {$stage = '670';}
-
- echo "\n";
- echo "";
- echo "";
- echo "| # | ";
- echo " DATE/TIME | ";
- echo " AGENT | ";
- echo " LENGTH | ";
- echo " STATUS | ";
- echo " PHONE | ";
- echo " CAMPAIGN | ";
- echo " IN/OUT | ";
- echo " ALT | ";
- echo " HANGUP | ";
-# echo "
";
-# echo "| FULL NAME | ";
- echo "
";
-
- if (strlen($lead_id) > 0)
- {
- $stmt="select start_epoch,call_date,campaign_id,length_in_sec,status,phone_code,phone_number,lead_id,term_reason,alt_dial,comments,uniqueid,user from vicidial_log where lead_id='$lead_id' order by call_date desc limit 10000;";
- $rslt=mysql_query($stmt, $link);
- $out_logs_to_print = mysql_num_rows($rslt);
- if ($format=='debug') {echo "|$out_logs_to_print|$stmt|";}
-
- $g=0;
- $u=0;
- while ($out_logs_to_print > $u)
- {
- $row=mysql_fetch_row($rslt);
- $ALLsort[$g] = "$row[0]-----$g";
- $ALLstart_epoch[$g] = $row[0];
- $ALLcall_date[$g] = $row[1];
- $ALLcampaign_id[$g] = $row[2];
- $ALLlength_in_sec[$g] = $row[3];
- $ALLstatus[$g] = $row[4];
- $ALLphone_code[$g] = $row[5];
- $ALLphone_number[$g] = $row[6];
- $ALLlead_id[$g] = $row[7];
- $ALLhangup_reason[$g] = $row[8];
- $ALLalt_dial[$g] = $row[9];
- $ALLuniqueid[$g] = $row[11];
- $ALLuser[$g] = $row[12];
- $ALLin_out[$g] = "OUT-AUTO";
- if ($row[10] == 'MANUAL') {$ALLin_out[$g] = "OUT-MANUAL";}
-
- $stmtA="SELECT call_notes FROM vicidial_call_notes WHERE lead_id='$ALLlead_id[$g]' and vicidial_id='$ALLuniqueid[$g]';";
- $rsltA=mysql_query($stmtA, $link);
- $out_notes_to_print = mysql_num_rows($rslt);
- if ($out_notes_to_print > 0)
- {
- $rowA=mysql_fetch_row($rsltA);
- $Allcall_notes[$g] = $rowA[0];
- if (strlen($Allcall_notes[$g]) > 0)
- {$Allcall_notes[$g] = "NOTES: $Allcall_notes[$g]";}
- }
- $stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';";
- $rsltA=mysql_query($stmtA, $link);
- $users_to_print = mysql_num_rows($rslt);
- if ($users_to_print > 0)
- {
- $rowA=mysql_fetch_row($rsltA);
- $ALLuser[$g] .= " - $rowA[0]";
- }
-
- $Allcounter[$g] = $g;
-
- $g++;
- $u++;
- }
-
- $stmt="select start_epoch,call_date,campaign_id,length_in_sec,status,phone_code,phone_number,lead_id,term_reason,queue_seconds,uniqueid,closecallid,user from vicidial_closer_log where lead_id='$lead_id' order by call_date desc limit 10000;";
- $rslt=mysql_query($stmt, $link);
- $in_logs_to_print = mysql_num_rows($rslt);
- if ($format=='debug') {echo "|$in_logs_to_print|$stmt|";}
-
- $u=0;
- while ($in_logs_to_print > $u)
- {
- $row=mysql_fetch_row($rslt);
- $ALLsort[$g] = "$row[0]-----$g";
- $ALLstart_epoch[$g] = $row[0];
- $ALLcall_date[$g] = $row[1];
- $ALLcampaign_id[$g] = $row[2];
- $ALLlength_in_sec[$g] = ($row[3] - $row[9]);
- if ($ALLlength_in_sec[$g] < 0) {$ALLlength_in_sec[$g]=0;}
- $ALLstatus[$g] = $row[4];
- $ALLphone_code[$g] = $row[5];
- $ALLphone_number[$g] = $row[6];
- $ALLlead_id[$g] = $row[7];
- $ALLhangup_reason[$g] = $row[8];
- $ALLuniqueid[$g] = $row[10];
- $ALLclosecallid[$g] = $row[11];
- $ALLuser[$g] = $row[12];
- $ALLalt_dial[$g] = "MAIN";
- $ALLin_out[$g] = "IN";
-
- $stmtA="SELECT call_notes FROM vicidial_call_notes WHERE lead_id='$ALLlead_id[$g]' and vicidial_id='$ALLclosecallid[$g]';";
- $rsltA=mysql_query($stmtA, $link);
- $in_notes_to_print = mysql_num_rows($rslt);
- if ($in_notes_to_print > 0)
- {
- $rowA=mysql_fetch_row($rsltA);
- $Allcall_notes[$g] = $rowA[0];
- if (strlen($Allcall_notes[$g]) > 0)
- {$Allcall_notes[$g] = "NOTES: $Allcall_notes[$g]";}
- }
- $stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';";
- $rsltA=mysql_query($stmtA, $link);
- $users_to_print = mysql_num_rows($rslt);
- if ($users_to_print > 0)
- {
- $rowA=mysql_fetch_row($rsltA);
- $ALLuser[$g] .= " - $rowA[0]";
- }
-
- $Allcounter[$g] = $g;
-
- $g++;
- $u++;
- }
-
- if ($g > 0)
- {sort($ALLsort, SORT_NUMERIC);}
- else
- {echo "| No calls on this day |
";}
-
- $u=0;
- while ($g > $u)
- {
- $sort_split = explode("-----",$ALLsort[$u]);
- $i = $sort_split[1];
-
- if (eregi("1$|3$|5$|7$|9$", $u))
- {$bgcolor='bgcolor="#B9CBFD"';}
- else
- {$bgcolor='bgcolor="#9BB9FB"';}
-
- $u++;
- echo "";
- echo "| $u | ";
- echo "$ALLcall_date[$i] | ";
- echo " $ALLuser[$i] | \n";
- echo " $ALLlength_in_sec[$i] | \n";
- echo " $ALLstatus[$i] | \n";
- echo " $ALLphone_code[$i] $ALLphone_number[$i] | \n";
- echo " $ALLcampaign_id[$i] | \n";
- echo " $ALLin_out[$i] | \n";
- echo " $ALLalt_dial[$i] | \n";
- echo " $ALLhangup_reason[$i] | \n";
- echo "
";
- echo " | ";
- echo " $Allcall_notes[$i] | ";
- echo "
\n";
- }
- }
-
- echo "
";
- echo "
";
- echo "Close Call Notes";
- echo "";
- }
-
################################################################################
### CALLSINQUEUEgrab - grab a call in queue and reserve it for that agent
diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php
index a0527a20..b0ef5380 100644
--- a/www/agc/vicidial.php
+++ b/www/agc/vicidial.php
@@ -341,10 +341,11 @@
# 110303-2321 - Added notice of on-hook phone use, and ability to click 'ring' to call into session, minor queue_log fix
# 110304-1623 - Added callback count notification defer options
# 110310-0331 - Added auto-pause/resume functions in auto-dial mode for pre-call work
+# 110310-1627 - Changed most browser alerts to HTML alerts, other bug fixes
#
-$version = '2.4-318c';
-$build = '110310-0331';
+$version = '2.4-319c';
+$build = '110310-1627';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=72;
$one_mysql_log=0;
@@ -2678,6 +2679,9 @@ $HSwidth = ($MASTERwidth + 1); # 431 - Header spacer
$PBwidth = ($MASTERwidth + 0); # 430 - Presets list
$CLwidth = ($MASTERwidth - 120); # 310 - Calls in queue link
+
+$GHheight = ($MASTERheight + 1260);# 1560 - Gender Hide span
+$DBheight = ($MASTERheight + 260); # 560 - Debug span
$WRheight = ($MASTERheight + 160); # 460 - Warning boxes
$CQheight = ($MASTERheight + 140); # 440 - Calls in queue section
$SLheight = ($MASTERheight + 122); # 422 - SideBar link, Agents view link
@@ -3085,6 +3089,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var manual_dial_in_progress = 0;
var auto_dial_alt_dial = 0;
var reselect_preview_dial = 0;
+ var in_lead_preview_state = 0;
var reselect_alt_dial = 0;
var alt_dial_active = 0;
var alt_dial_status_display = 0;
@@ -3404,7 +3409,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
{
Nactiveext = null;
Nactiveext = xmlhttp.responseText;
- alert(xmlhttp.responseText);
+ alert_box(xmlhttp.responseText);
}
}
delete xmlhttp;
@@ -3798,7 +3803,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var BOresponse = xmlhttp.responseText;
if (BOresponse.match(regBOerr))
{
- alert(BOresponse);
+ alert_box(BOresponse);
}
if ((taskdialvalue.length > 0) && (tasknowait != 'YES'))
@@ -4009,7 +4014,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{
if (PausENotifYCounTer > 10)
{
- alert('Your session has been paused');
+ alert_box('Your session has been paused');
AutoDial_ReSume_PauSe('VDADpause');
PausENotifYCounTer=0;
}
@@ -4219,7 +4224,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
else
{document.vicidial_form.LeadLookuP.checked=false;}
if (APIDiaL_array_detail[4] == 'YES') // focus on vicidial agent screen
- {window.focus(); alert("Placing call to:" + APIDiaL_array_detail[1] + " " + APIDiaL_array_detail[0]);}
+ {window.focus(); alert_box("Placing call to:" + APIDiaL_array_detail[1] + " " + APIDiaL_array_detail[0]);}
if (APIDiaL_array_detail[3] == 'YES') // call preview
{NeWManuaLDiaLCalLSubmiT('PREVIEW');}
else
@@ -4685,7 +4690,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{
xferredirect_query='';
taskvar = 'NOTHING';
- alert("Transfer number must have at least 1 digit:" + blindxferdialstring);
+ alert_box("Transfer number must have at least 1 digit:" + blindxferdialstring);
}
else
{
@@ -5216,16 +5221,16 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
function CalLBacKsLisTCheck()
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ( (auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ( (auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1',auto_pause_precall_code);
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO CHECK CALLBACKS IN AUTO-DIAL MODE");
+ alert_box("YOU MUST BE PAUSED TO CHECK CALLBACKS IN AUTO-DIAL MODE");
}
}
if (move_on == 1)
@@ -5302,6 +5307,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
}
+// ################################################################################
+// closes callback list screen
+ function alert_box(temp_message)
+ {
+ document.getElementById("AlertBoxContent").innerHTML = temp_message;
+
+ showDiv('AlertBox');
+
+ document.alert_form.alert_button.focus();
+ }
+
+
// ################################################################################
// closes callback list screen
function CalLBacKsLisTClose()
@@ -5376,16 +5393,16 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
function NeWManuaLDiaLCalL(TVfast,TVphone_code,TVphone_number,TVlead_id,TVtype)
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1',auto_pause_precall_code);
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO MANUAL DIAL A NEW LEAD IN AUTO-DIAL MODE");
+ alert_box("YOU MUST BE PAUSED TO MANUAL DIAL A NEW LEAD IN AUTO-DIAL MODE");
}
}
if (move_on == 1)
@@ -5509,7 +5526,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
if ( (MDDiaLCodEform.length < 1) || (MDPhonENumbeRform.length < 5) )
{
- alert("YOU MUST ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL");
+ alert_box("YOU MUST ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL");
}
else
{
@@ -5782,7 +5799,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{
MD_channel_look=0;
MD_ring_secondS=0;
- alert("Dial timed out, contact your system administrator\n");
+ alert_box("Dial timed out, contact your system administrator\n");
}
}
@@ -5965,7 +5982,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
}
else
{
- alert("Update Fields Error!: " + xmlhttp.responseText);
+ alert_box("Update Fields Error!: " + xmlhttp.responseText);
}
}
}
@@ -6002,6 +6019,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
if (document.vicidial_form.LeadPreview.checked==true)
{
reselect_preview_dial = 1;
+ in_lead_preview_state = 1;
var man_preview = 'YES';
var man_status = "Preview the Lead then DIAL LEAD or SKIP LEAD";
if (manual_preview_dial=='PREVIEW_ONLY')
@@ -6083,15 +6101,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
CalLBacKsCounTCheck();
if (MDnextCID.match(regMNCvar))
- {alert("No more leads in the hopper for campaign:\n" + campaign); alert_displayed=1;}
+ {alert_box("No more leads in the hopper for campaign:\n" + campaign); alert_displayed=1;}
if (MDnextCID.match(regMDFvarDNC))
- {alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
+ {alert_box("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
if (MDnextCID.match(regMDFvarCAMP))
- {alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
+ {alert_box("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
if (MDnextCID.match(regMDFvarTIME))
- {alert("This phone number is outside of the local call time:\n" + mdnPhonENumbeR); alert_displayed=1;}
+ {alert_box("This phone number is outside of the local call time:\n" + mdnPhonENumbeR); alert_displayed=1;}
if (alert_displayed==0)
- {alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
+ {alert_box("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
if (starting_dial_level == 0)
{
@@ -6327,10 +6345,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{
if (manual_dial_in_progress==1)
{
- alert('YOU CANNOT SKIP A CALLBACK OR MANUAL DIAL, YOU MUST DIAL THE LEAD');
+ alert_box('YOU CANNOT SKIP A CALLBACK OR MANUAL DIAL, YOU MUST DIAL THE LEAD');
}
else
{
+ in_lead_preview_state=0;
if (dial_method == "INBOUND_MAN")
{
auto_dial_level=starting_dial_level;
@@ -6380,7 +6399,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
MDSnextCID = MDSnextResponse_array[0];
if (MDSnextCID == "LEAD NOT REVERTED")
{
- alert("Lead was not reverted, there was an error:\n" + MDSnextResponse);
+ alert_box("Lead was not reverted, there was an error:\n" + MDSnextResponse);
}
else
{
@@ -6452,6 +6471,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
// Send the Manual Dial Only - dial the previewed lead
function ManualDialOnly(taskaltnum)
{
+ in_lead_preview_state=0;
inOUT = 'OUT';
alt_dial_status_display = 0;
all_record = 'NO';
@@ -6558,7 +6578,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
agent_log_id = MDOnextResponse_array[1];
if (MDnextCID == " CALL NOT PLACED")
{
- alert("call was not placed, there was an error:\n" + MDOnextResponse);
+ alert_box("call was not placed, there was an error:\n" + MDOnextResponse);
}
else
{
@@ -8060,16 +8080,16 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
function PauseCodeSelectContent_create()
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1','');
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO ENTER A PAUSE CODE IN AUTO-DIAL MODE");
+ alert_box("YOU MUST BE PAUSED TO ENTER A PAUSE CODE IN AUTO-DIAL MODE");
}
}
if (move_on == 1)
@@ -8117,16 +8137,16 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
function OpeNSearcHForMDisplaYBox()
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1',auto_pause_precall_code);
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO SEARCH FOR A LEAD");
+ alert_box("YOU MUST BE PAUSED TO SEARCH FOR A LEAD");
}
}
if (move_on == 1)
@@ -8270,7 +8290,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var DispoChoice = document.vicidial_form.DispoSelection.value;
- if (DispoChoice.length < 1) {alert("You Must Select a Disposition");}
+ if (DispoChoice.length < 1) {alert_box("You Must Select a Disposition");}
else
{
document.getElementById("CusTInfOSpaN").innerHTML = "";
@@ -8314,7 +8334,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var DispoChoice = document.vicidial_form.DispoSelection.value;
- if (DispoChoice.length < 1) {alert("You Must Select a Disposition");}
+ if (DispoChoice.length < 1) {alert_box("You Must Select a Disposition");}
else
{
document.getElementById("CusTInfOSpaN").innerHTML = "";
@@ -10093,16 +10113,16 @@ function phone_number_format(formatphone) {
if (CQauto_call_id > 0)
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1','GRABCL');
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO GRAB CALLS IN QUEUE");
+ alert_box("YOU MUST BE PAUSED TO GRAB CALLS IN QUEUE");
}
}
if (move_on == 1)
@@ -10140,7 +10160,7 @@ function phone_number_format(formatphone) {
var regCQerror = new RegExp("ERROR","ig");
if (CQgrabresponse.match(regCQerror))
{
- alert(CQgrabresponse);
+ alert_box(CQgrabresponse);
}
else
{
@@ -10393,16 +10413,16 @@ function phone_number_format(formatphone) {
function VieWCalLLoG(logdate,formdate)
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1',auto_pause_precall_code);
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO VIEW YOUR CALL LOG");
+ alert_box("YOU MUST BE PAUSED TO VIEW YOUR CALL LOG");
}
}
if (move_on == 1)
@@ -10456,9 +10476,9 @@ function phone_number_format(formatphone) {
// Gather and display lead search data
function LeadSearchSubmit()
{
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- alert("YOU MUST BE PAUSED TO SEARCH FOR A LEAD");
+ alert_box("YOU MUST BE PAUSED TO SEARCH FOR A LEAD");
}
else
{
@@ -10571,7 +10591,7 @@ function phone_number_format(formatphone) {
}
if (xmlhttp)
{
- RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=CALLNOTESview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&stage=";
+ RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=LEADINFOview&search=logfirst&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign + "&stage=";
xmlhttp.open('POST', 'vdc_db_query.php');
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
xmlhttp.send(RAview_query);
@@ -10673,23 +10693,23 @@ function phone_number_format(formatphone) {
function OpeNGrouPSelectioN()
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1',auto_pause_precall_code);
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO CHANGE GROUPS");
+ alert_box("YOU MUST BE PAUSED TO CHANGE GROUPS");
}
}
if (move_on == 1)
{
if (manager_ingroups_set > 0)
{
- alert("Manager " + external_igb_set_name + " has selected your in-group choices");
+ alert_box("Manager " + external_igb_set_name + " has selected your in-group choices");
}
else
{
@@ -10705,16 +10725,16 @@ function phone_number_format(formatphone) {
function OpeNTerritorYSelectioN()
{
var move_on=1;
- if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) )
+ if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) )
{
- if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) )
+ if ((auto_pause_precall == 'Y') && ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) && (AutoDialWaiting == 1) && (VD_live_customer_call!=1) && (alt_dial_active!=1) && (MD_channel_look!=1) && (in_lead_preview_state!=1) )
{
agent_log_id = AutoDial_ReSume_PauSe("VDADpause",'','','','','1',auto_pause_precall_code);
}
else
{
move_on=0;
- alert("YOU MUST BE PAUSED TO CHANGE TERRITORIES");
+ alert_box("YOU MUST BE PAUSED TO CHANGE TERRITORIES");
}
}
if (move_on == 1)
@@ -10777,7 +10797,7 @@ function phone_number_format(formatphone) {
CallBackDatEForM = document.vicidial_form.CallBackDatESelectioN.value;
CallBackCommenTs = document.vicidial_form.CallBackCommenTsField.value;
if (CallBackDatEForM.length < 2)
- {alert("You must choose a date");}
+ {alert_box("You must choose a date");}
else
{
@@ -10975,6 +10995,7 @@ function phone_number_format(formatphone) {
if (VICIDiaL_closer_login_checked==0)
{
hideDiv('NothingBox');
+ hideDiv('AlertBox');
// hideDiv('NothingBox2');
hideDiv('CBcommentsBox');
hideDiv('EAcommentsBox');
@@ -11793,7 +11814,7 @@ function phone_number_format(formatphone) {
{
if (showxfervar != 'OFF')
{
- alert('YOU DO NOT HAVE PERMISSIONS TO TRANSFER CALLS');
+ alert_box('YOU DO NOT HAVE PERMISSIONS TO TRANSFER CALLS');
}
}
}
@@ -12257,6 +12278,7 @@ $zi=2;
+
MANUAL DIAL FAST DIAL
@@ -12900,6 +12922,7 @@ Available Agents Transfer:
Call Notes List
+ Close Info Box
@@ -12912,6 +12935,7 @@ Available Agents Transfer:
Lead Info
+ Close Info Box
@@ -12958,12 +12982,11 @@ Available Agents Transfer:
-
-
-
+
+