Added more validation of agent sessions to prevent double-logins

Added campaign option to show a "Pause After Next Call" link to the agent screen below the Pause/Resume buttons
Added campaign option to set owner field to user if the owner field is empty

git-svn-id: svn://192.168.202.10@1869 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2012-10-29 11:11:16 +00:00
parent 05a7f137a2
commit 98df4848e0
8 changed files with 135 additions and 22 deletions
+8 -1
View File
@@ -100,7 +100,14 @@ OTHER CHANGES:
18. Added ability to delete audio files from the audio store 18. Added ability to delete audio files from the audio store
19. Added logging of svn version information in database 19. Added logging of svn version info in the database at server install/update
20. Added more validation of agent sessions to prevent double-logins
21. Added campaign option to show a "Pause After Next Call" link to the agent
screen below the Pause/Resume buttons
22. Added campaign option to set owner field to user if the owner field is empty
@@ -857,7 +857,9 @@ user_group VARCHAR(20) default '---ALL---',
hopper_vlc_dup_check ENUM('Y','N') default 'N', hopper_vlc_dup_check ENUM('Y','N') default 'N',
in_group_dial ENUM('DISABLED','MANUAL_DIAL','NO_DIAL','BOTH') default 'DISABLED', in_group_dial ENUM('DISABLED','MANUAL_DIAL','NO_DIAL','BOTH') default 'DISABLED',
in_group_dial_select ENUM('AGENT_SELECTED','CAMPAIGN_SELECTED','ALL_USER_GROUP') default 'CAMPAIGN_SELECTED', in_group_dial_select ENUM('AGENT_SELECTED','CAMPAIGN_SELECTED','ALL_USER_GROUP') default 'CAMPAIGN_SELECTED',
safe_harbor_audio_field VARCHAR(30) default 'DISABLED' safe_harbor_audio_field VARCHAR(30) default 'DISABLED',
pause_after_next_call ENUM('ENABLED','DISABLED') default 'DISABLED',
owner_populate ENUM('ENABLED','DISABLED') default 'DISABLED'
); );
CREATE TABLE vicidial_lists ( CREATE TABLE vicidial_lists (
@@ -2916,4 +2918,4 @@ INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,cate
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('MAXCAL','Inbound Max Calls Drop','N','Y','UNDEFINED','N','N','N','N','N','N','N'); INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('MAXCAL','Inbound Max Calls Drop','N','Y','UNDEFINED','N','N','N','N','N','N','N');
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('LRERR','Outbound Local Channel Res Err','N','Y','UNDEFINED','N','N','N','N','N','N','N'); INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('LRERR','Outbound Local Channel Res Err','N','Y','UNDEFINED','N','N','N','N','N','N','N');
UPDATE system_settings SET db_schema_version='1329',db_schema_update_date=NOW(); UPDATE system_settings SET db_schema_version='1330',db_schema_update_date=NOW();
+5
View File
@@ -87,3 +87,8 @@ ALTER TABLE servers ADD svn_revision INT(9) default '0';
ALTER TABLE servers ADD svn_info TEXT; ALTER TABLE servers ADD svn_info TEXT;
UPDATE system_settings SET db_schema_version='1329',db_schema_update_date=NOW() where db_schema_version < 1329; UPDATE system_settings SET db_schema_version='1329',db_schema_update_date=NOW() where db_schema_version < 1329;
ALTER TABLE vicidial_campaigns ADD pause_after_next_call ENUM('ENABLED','DISABLED') default 'DISABLED';
ALTER TABLE vicidial_campaigns ADD owner_populate ENUM('ENABLED','DISABLED') default 'DISABLED';
UPDATE system_settings SET db_schema_version='1330',db_schema_update_date=NOW() where db_schema_version < 1330;
@@ -22,6 +22,10 @@ This optional setting allows you to define a voicemail greeting audio file from
Allow Voicemail Greeting Chooser|| Allow Voicemail Greeting Chooser||
If this setting is enabled it will allow you to choose an audio file from the audio store to be played as the voicemail greeting to a specific voicemail box. Default is 0 for disabled|| If this setting is enabled it will allow you to choose an audio file from the audio store to be played as the voicemail greeting to a specific voicemail box. Default is 0 for disabled||
File to Delete|| File to Delete||
Agent Pause After Next Call Link||
This option if enabled will display a link on the agent screen that will let the agent go on pause automatically after they hang up their next call. Default is DISABLED||
Owner Populate||
If this is enabled and the owner field of the lead is blank, the owner field for the lead will populate with the user ID of the agent that handles the call first. Default is DISABLED||
############################################################ CLIENT ############################################################ CLIENT
@@ -39,6 +43,7 @@ Last Local Call Time||
Called Count|| Called Count||
Unidentified Hangup Cause Code|| Unidentified Hangup Cause Code||
YOU MUST SELECT AN AGENT TO TRANSFER TO WHEN USING AGENTDIRECT|| YOU MUST SELECT AN AGENT TO TRANSFER TO WHEN USING AGENTDIRECT||
Another live agent session was open using your user ID. It has been disabled. Click OK to continue to the agent screen||
############################################################ MANAGER Manual ############################################################ MANAGER Manual
+14 -4
View File
@@ -56,12 +56,13 @@
# 101208-0308 - Moved the Calls in Queue count and other counts outside of the autodial section (issue 406) # 101208-0308 - Moved the Calls in Queue count and other counts outside of the autodial section (issue 406)
# 110610-0059 - Small fix for manual dial calls lasting more than 100 minutes in real-time report # 110610-0059 - Small fix for manual dial calls lasting more than 100 minutes in real-time report
# 120809-2353 - Added external_recording function # 120809-2353 - Added external_recording function
# 121028-2305 - Added extra check on session_name to validate agent screen requests
# #
$version = '2.6-31'; $version = '2.6-32';
$build = '120809-2353'; $build = '121028-2305';
$mel=1; # Mysql Error Log enabled = 1 $mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=38; $mysql_log_count=39;
$one_mysql_log=0; $one_mysql_log=0;
$DB=0; $DB=0;
@@ -208,6 +209,7 @@ if ($ACTION == 'refresh')
if ($client == 'vdc') if ($client == 'vdc')
{ {
$Acount=0; $Acount=0;
$Scount=0;
$AexternalDEAD=0; $AexternalDEAD=0;
$Aagent_log_id=''; $Aagent_log_id='';
$Acallerid=''; $Acallerid='';
@@ -223,6 +225,14 @@ if ($ACTION == 'refresh')
$row=mysql_fetch_row($rslt); $row=mysql_fetch_row($rslt);
$Acount=$row[0]; $Acount=$row[0];
### see if the agent has a record in the vicidial_session_data table
$stmt="SELECT count(*) from vicidial_session_data where user='$user' and server_ip='$server_ip' and session_name='$session_name';";
if ($DB) {echo "|$stmt|\n";}
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'03039',$user,$server_ip,$session_name,$one_mysql_log);}
$row=mysql_fetch_row($rslt);
$Scount=$row[0];
if ($Acount > 0) if ($Acount > 0)
{ {
$stmt="SELECT status,callerid,agent_log_id,campaign_id,lead_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';"; $stmt="SELECT status,callerid,agent_log_id,campaign_id,lead_id from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
@@ -654,7 +664,7 @@ if ($ACTION == 'refresh')
if ( ( ($time_diff > 8) or ($time_diff < -8) or ($web_diff > 8) or ($web_diff < -8) ) and (eregi("0$",$StarTtime)) ) if ( ( ($time_diff > 8) or ($time_diff < -8) or ($web_diff > 8) or ($web_diff < -8) ) and (eregi("0$",$StarTtime)) )
{$Alogin='TIME_SYNC';} {$Alogin='TIME_SYNC';}
if ($Acount < 1) if ( ($Acount < 1) or ($Scount < 1) )
{$Alogin='DEAD_VLA';} {$Alogin='DEAD_VLA';}
if ($AexternalDEAD > 0) if ($AexternalDEAD > 0)
{$Alogin='DEAD_EXTERNAL';} {$Alogin='DEAD_EXTERNAL';}
+29 -5
View File
@@ -313,10 +313,11 @@
# 120731-1205 - Small fix for vendor_lead_code population on new lead during manual dial # 120731-1205 - Small fix for vendor_lead_code population on new lead during manual dial
# 120831-1438 - Added vicidial_dial_log logging of outbound phone calls # 120831-1438 - Added vicidial_dial_log logging of outbound phone calls
# 121018-2320 - Added blank option to owner only dialing # 121018-2320 - Added blank option to owner only dialing
# 121029-0159 - Added owner_populate campaign option
# #
$version = '2.6-211'; $version = '2.6-212';
$build = '121018-2320'; $build = '121029-0159';
$mel=1; # Mysql Error Log enabled = 1 $mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=443; $mysql_log_count=443;
$one_mysql_log=0; $one_mysql_log=0;
@@ -2184,7 +2185,7 @@ if ($ACTION == 'manDiaLnextCaLL')
##### BEGIN check for postal_code and phone time zones if alert enabled ##### BEGIN check for postal_code and phone time zones if alert enabled
$post_phone_time_diff_alert_message=''; $post_phone_time_diff_alert_message='';
$stmt="SELECT post_phone_time_diff_alert,local_call_time FROM vicidial_campaigns where campaign_id='$campaign';"; $stmt="SELECT post_phone_time_diff_alert,local_call_time,owner_populate FROM vicidial_campaigns where campaign_id='$campaign';";
$rslt=mysql_query($stmt, $link); $rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00414',$user,$server_ip,$session_name,$one_mysql_log);} if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00414',$user,$server_ip,$session_name,$one_mysql_log);}
if ($DB) {echo "$stmt\n";} if ($DB) {echo "$stmt\n";}
@@ -2194,6 +2195,7 @@ if ($ACTION == 'manDiaLnextCaLL')
$row=mysql_fetch_row($rslt); $row=mysql_fetch_row($rslt);
$post_phone_time_diff_alert = $row[0]; $post_phone_time_diff_alert = $row[0];
$local_call_time = $row[1]; $local_call_time = $row[1];
$owner_populate = $row[2];
} }
if ( ($post_phone_time_diff_alert == 'ENABLED') or (preg_match("/OUTSIDE_CALLTIME/",$post_phone_time_diff_alert)) ) if ( ($post_phone_time_diff_alert == 'ENABLED') or (preg_match("/OUTSIDE_CALLTIME/",$post_phone_time_diff_alert)) )
{ {
@@ -2310,8 +2312,14 @@ if ($ACTION == 'manDiaLnextCaLL')
$called_since_last_reset = "Y$called_since_last_reset"; $called_since_last_reset = "Y$called_since_last_reset";
} }
else {$called_since_last_reset = 'Y';} else {$called_since_last_reset = 'Y';}
$ownerSQL='';
if ( ($owner_populate=='ENABLED') and ( (strlen($owner) < 1) or ($owner=='NULL') ) )
{
$ownerSQL = ",owner='$user'";
$owner=$user;
}
### flag the lead as called and change it's status to INCALL ### flag the lead as called and change it's status to INCALL
$stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='$called_since_last_reset', called_count='$called_count',user='$user',last_local_call_time='$LLCT_DATE' where lead_id='$lead_id';"; $stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='$called_since_last_reset', called_count='$called_count',user='$user',last_local_call_time='$LLCT_DATE'$ownerSQL where lead_id='$lead_id';";
if ($DB) {echo "$stmt\n";} if ($DB) {echo "$stmt\n";}
$rslt=mysql_query($stmt, $link); $rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00030',$user,$server_ip,$session_name,$one_mysql_log);} if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00030',$user,$server_ip,$session_name,$one_mysql_log);}
@@ -4867,9 +4875,25 @@ if ($ACTION == 'VDADcheckINCOMING')
$CBcomments = trim("$row[3]"); $CBcomments = trim("$row[3]");
} }
} }
$stmt="SELECT owner_populate FROM vicidial_campaigns where campaign_id='$campaign';";
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
if ($DB) {echo "$stmt\n";}
$camp_op_ct = mysql_num_rows($rslt);
if ($camp_op_ct > 0)
{
$row=mysql_fetch_row($rslt);
$owner_populate = $row[0];
}
$ownerSQL='';
if ( ($owner_populate=='ENABLED') and ( (strlen($owner) < 1) or ($owner=='NULL') ) )
{
$ownerSQL = ",owner='$user'";
$owner=$user;
}
### update the lead status to INCALL ### update the lead status to INCALL
$stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';"; $stmt = "UPDATE vicidial_list set status='INCALL', user='$user' $ownerSQL where lead_id='$lead_id';";
if ($DB) {echo "$stmt\n";} if ($DB) {echo "$stmt\n";}
$rslt=mysql_query($stmt, $link); $rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00110',$user,$server_ip,$session_name,$one_mysql_log);} if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00110',$user,$server_ip,$session_name,$one_mysql_log);}
+42 -5
View File
@@ -385,10 +385,11 @@
# 120819-1747 - Added vicidial_session_data logging for webphone api function # 120819-1747 - Added vicidial_session_data logging for webphone api function
# 120914-1357 - Added group_alias to transfer_conference function # 120914-1357 - Added group_alias to transfer_conference function
# 121025-2335 - Do not allow AGENTDIRECT transfers without a user defined # 121025-2335 - Do not allow AGENTDIRECT transfers without a user defined
# 121029-0122 - Added pause_after_next_call and owner_populate campaign options
# #
$version = '2.6-353c'; $version = '2.6-354c';
$build = '121025-2335'; $build = '121029-0122';
$mel=1; # Mysql Error Log enabled = 1 $mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=79; $mysql_log_count=79;
$one_mysql_log=0; $one_mysql_log=0;
@@ -1382,7 +1383,7 @@ else
$HKstatusnames = substr("$HKstatusnames", 0, -1); $HKstatusnames = substr("$HKstatusnames", 0, -1);
##### grab the campaign settings ##### grab the campaign settings
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select FROM vicidial_campaigns where campaign_id = '$VD_campaign';"; $stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
$rslt=mysql_query($stmt, $link); $rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);} if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);}
if ($DB) {echo "$stmt\n";} if ($DB) {echo "$stmt\n";}
@@ -1490,6 +1491,8 @@ else
$pllb_grouping_limit = $row[100]; $pllb_grouping_limit = $row[100];
$in_group_dial = $row[101]; $in_group_dial = $row[101];
$in_group_dial_select = $row[102]; $in_group_dial_select = $row[102];
$pause_after_next_call = $row[103];
$owner_populate = $row[104];
if ( ($queuemetrics_pe_phone_append > 0) and (strlen($qm_phone_environment)>0) ) if ( ($queuemetrics_pe_phone_append > 0) and (strlen($qm_phone_environment)>0) )
{$qm_phone_environment .= "-$qm_extension";} {$qm_phone_environment .= "-$qm_extension";}
@@ -3630,6 +3633,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var in_group_dial_display='<?php echo $in_group_dial_display ?>'; var in_group_dial_display='<?php echo $in_group_dial_display ?>';
var active_ingroup_dial=''; var active_ingroup_dial='';
var nocall_dial_flag='DISABLED'; var nocall_dial_flag='DISABLED';
var pause_after_next_call='<?php echo $pause_after_next_call ?>';
var next_call_pause='<?php echo $pause_after_next_call ?>';
var deactivated_old_session='<?php echo $vlaLIaffected_rows ?>';
var owner_populate='<?php echo $owner_populate ?>';
var DiaLControl_auto_HTML = "<img src=\"./images/vdc_LB_pause_OFF.gif\" border=\"0\" alt=\" Pause \" /><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><img src=\"./images/vdc_LB_resume.gif\" border=\"0\" alt=\"Resume\" /></a>"; var DiaLControl_auto_HTML = "<img src=\"./images/vdc_LB_pause_OFF.gif\" border=\"0\" alt=\" Pause \" /><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><img src=\"./images/vdc_LB_resume.gif\" border=\"0\" alt=\"Resume\" /></a>";
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><img src=\"./images/vdc_LB_pause.gif\" border=\"0\" alt=\" Pause \" /></a><img src=\"./images/vdc_LB_resume_OFF.gif\" border=\"0\" alt=\"Resume\" />"; var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><img src=\"./images/vdc_LB_pause.gif\" border=\"0\" alt=\" Pause \" /></a><img src=\"./images/vdc_LB_resume_OFF.gif\" border=\"0\" alt=\"Resume\" />";
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/vdc_LB_pause_OFF.gif\" border=\"0\" alt=\" Pause \" /><img src=\"./images/vdc_LB_resume_OFF.gif\" border=\"0\" alt=\"Resume\" />"; var DiaLControl_auto_HTML_OFF = "<img src=\"./images/vdc_LB_pause_OFF.gif\" border=\"0\" alt=\" Pause \" /><img src=\"./images/vdc_LB_resume_OFF.gif\" border=\"0\" alt=\"Resume\" />";
@@ -4408,10 +4415,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) ) if ( (AGLogiN == 'DEAD_VLA') && ( (vicidial_agent_disable == 'LIVE_AGENT') || (vicidial_agent_disable == 'ALL') ) )
{ {
showDiv('AgenTDisablEBoX'); showDiv('AgenTDisablEBoX');
refresh_interval = 7300000;
} }
if ( (AGLogiN == 'DEAD_EXTERNAL') && ( (vicidial_agent_disable == 'EXTERNAL') || (vicidial_agent_disable == 'ALL') ) ) if ( (AGLogiN == 'DEAD_EXTERNAL') && ( (vicidial_agent_disable == 'EXTERNAL') || (vicidial_agent_disable == 'ALL') ) )
{ {
showDiv('AgenTDisablEBoX'); showDiv('AgenTDisablEBoX');
refresh_interval = 7300000;
} }
if ( (AGLogiN == 'TIME_SYNC') && (vicidial_agent_disable == 'ALL') ) if ( (AGLogiN == 'TIME_SYNC') && (vicidial_agent_disable == 'ALL') )
{ {
@@ -9319,7 +9328,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
document.getElementById("DispoSelectBox").style.top = '1px'; // Firefox error on this line for some reason document.getElementById("DispoSelectBox").style.top = '1px'; // Firefox error on this line for some reason
document.getElementById("DispoSelectMaxMin").innerHTML = "<a href=\"#\" onclick=\"DispoMinimize()\"> minimize </a>"; document.getElementById("DispoSelectMaxMin").innerHTML = "<a href=\"#\" onclick=\"DispoMinimize()\"> minimize </a>";
document.getElementById("DispoSelectHAspan").innerHTML = "<a href=\"#\" onclick=\"DispoHanguPAgaiN()\">Hangup Again</a>"; document.getElementById("DispoSelectHAspan").innerHTML = "<a href=\"#\" onclick=\"DispoHanguPAgaiN()\">Hangup Again</a>";
if (pause_after_next_call == 'ENABLED')
{
document.getElementById("NexTCalLPausE").innerHTML = "<a href=\"#\" onclick=\"next_call_pause_click();return false;\">Next Call Pause</a>";
}
CBcommentsBoxhide(); CBcommentsBoxhide();
EAcommentsBoxhide(); EAcommentsBoxhide();
ContactSearchReset(); ContactSearchReset();
@@ -10114,6 +10126,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
hideDiv('MainPanel'); hideDiv('MainPanel');
showDiv('LogouTBox'); showDiv('LogouTBox');
refresh_interval = 7300000;
var logout_content=''; var logout_content='';
if (tempreason=='SHIFT') if (tempreason=='SHIFT')
{logout_content='Your Shift is over or has changed, you have been logged out of your session<br /><br />';} {logout_content='Your Shift is over or has changed, you have been logged out of your session<br /><br />';}
@@ -11633,6 +11646,15 @@ function phone_number_format(formatphone) {
} }
// ################################################################################
// Trigger a pause on the next dispo screen only
function next_call_pause_click()
{
document.vicidial_form.DispoSelectStop.checked=true;
document.getElementById("NexTCalLPausE").innerHTML = "Next Call Pause Set";
}
// ################################################################################ // ################################################################################
// Show the groups selection span // Show the groups selection span
function OpeNGrouPSelectioN() function OpeNGrouPSelectioN()
@@ -12005,6 +12027,8 @@ function phone_number_format(formatphone) {
hideDiv('blind_monitor_notice_span'); hideDiv('blind_monitor_notice_span');
hideDiv('post_phone_time_diff_span'); hideDiv('post_phone_time_diff_span');
hideDiv('ivrParkControl'); hideDiv('ivrParkControl');
if (deactivated_old_session < 1)
{hideDiv('DeactivateDOlDSessioNSpan');}
if (is_webphone!='Y') if (is_webphone!='Y')
{hideDiv('webphoneSpan');} {hideDiv('webphoneSpan');}
if (view_calls_in_queue_launch != '1') if (view_calls_in_queue_launch != '1')
@@ -12029,6 +12053,8 @@ function phone_number_format(formatphone) {
{clearDiv('DiaLLeaDPrevieW');} {clearDiv('DiaLLeaDPrevieW');}
if (alt_phone_dialing != 1) if (alt_phone_dialing != 1)
{clearDiv('DiaLDiaLAltPhonE');} {clearDiv('DiaLDiaLAltPhonE');}
if (pause_after_next_call != 'ENABLED')
{clearDiv('NexTCalLPausE');}
if (volumecontrol_active != '1') if (volumecontrol_active != '1')
{hideDiv('VolumeControlSpan');} {hideDiv('VolumeControlSpan');}
if (DefaulTAlTDiaL == '1') if (DefaulTAlTDiaL == '1')
@@ -12835,6 +12861,8 @@ function phone_number_format(formatphone) {
{buildDiv('DiaLDiaLAltPhonE');} {buildDiv('DiaLDiaLAltPhonE');}
else else
{clearDiv('DiaLDiaLAltPhonE');} {clearDiv('DiaLDiaLAltPhonE');}
if (pause_after_next_call != 'ENABLED')
{clearDiv('NexTCalLPausE');}
if (auto_dial_level == 0) if (auto_dial_level == 0)
{ {
if (auto_dial_alt_dial==1) if (auto_dial_alt_dial==1)
@@ -13028,6 +13056,8 @@ $zi=2;
<span id="ManualQueueChoice"></span> <span id="ManualQueueChoice"></span>
<span id="DiaLLeaDPrevieW"><font class="preview_text"> <input type="checkbox" name="LeadPreview" size="1" value="0" /> LEAD PREVIEW<br /></font></span> <span id="DiaLLeaDPrevieW"><font class="preview_text"> <input type="checkbox" name="LeadPreview" size="1" value="0" /> LEAD PREVIEW<br /></font></span>
<span id="DiaLDiaLAltPhonE"><font class="preview_text"> <input type="checkbox" name="DiaLAltPhonE" size="1" value="0" /> ALT PHONE DIAL<br /></font></span> <span id="DiaLDiaLAltPhonE"><font class="preview_text"> <input type="checkbox" name="DiaLAltPhonE" size="1" value="0" /> ALT PHONE DIAL<br /></font></span>
<span id="NexTCalLPausE"> <a href="#" onclick="next_call_pause_click();return false;">Next Call Pause</a> <br /></span>
<!-- <!--
<?php <?php
if ( ($manual_dial_preview) and ($auto_dial_level==0) ) if ( ($manual_dial_preview) and ($auto_dial_level==0) )
@@ -13662,7 +13692,7 @@ Available Agents Transfer: <span id="AgentXferViewSelect"></span></center></font
</span> </span>
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="AgenTDisablEBoX"> <span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="AgenTDisablEBoX">
<table border="1" bgcolor="#FFFFFF" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center">Your session has been disabled<br /><a href="#" onclick="LogouT('DISABLED');return false;">LOGOUT</a><br /><br /><a href="#" onclick="hideDiv('AgenTDisablEBoX');return false;">Go Back</a> <table border="1" bgcolor="#FFFFFF" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center">Your session has been disabled<br /><a href="#" onclick="LogouT('DISABLED');return false;">LOGOUT</a><br /><br /><!--<a href="#" onclick="hideDiv('AgenTDisablEBoX');return false;">Go Back</a>-->
</td></tr></table> </td></tr></table>
</span> </span>
@@ -14081,6 +14111,13 @@ Available Agents Transfer: <span id="AgentXferViewSelect"></span></center></font
</td></tr></table> </td></tr></table>
</span> </span>
<span style="position:absolute;left:0px;top:0px;z-index:<?php $zi++; echo $zi ?>;" id="DeactivateDOlDSessioNSpan">
<table border="1" bgcolor="#FFFFFF" width="<?php echo $CAwidth ?>px" height="<?php echo $WRheight ?>px"><tr><td align="center">Another live agent session was open using your user ID. It has been disabled. Click OK to continue to the agent screen.<br /><a href="#" onclick="hideDiv('DeactivateDOlDSessioNSpan');return false;">OK</a> -->
</td></tr></table>
</span>
<span style="position:absolute;left:0px;top:<?php echo $GHheight ?>px;z-index:<?php $zi++; echo $zi ?>;" id="GENDERhideFORieALT"></span> <span style="position:absolute;left:0px;top:<?php echo $GHheight ?>px;z-index:<?php $zi++; echo $zi ?>;" id="GENDERhideFORieALT"></span>
File diff suppressed because one or more lines are too long