Added timer_alt_seconds and options to automatically manual dial Alt Phone or Address3 and more Manual Auto Dial options
git-svn-id: svn://192.168.202.10@2121 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -220,6 +220,10 @@ OTHER CHANGES:
|
||||
44. Added frozen call clearing system setting, used in admin.php(Reports page)
|
||||
and optional AST_timecheck.pl script
|
||||
|
||||
45. Added campaign options to auto-select the ALT DIAL checkbox, and to
|
||||
automatically dial the Alt Phone or Address3 field after a set number
|
||||
of seconds
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -711,7 +711,7 @@ xferconf_a_dtmf VARCHAR(50),
|
||||
xferconf_a_number VARCHAR(50),
|
||||
xferconf_b_dtmf VARCHAR(50),
|
||||
xferconf_b_number VARCHAR(50),
|
||||
alt_number_dialing ENUM('Y','N') default 'N',
|
||||
alt_number_dialing ENUM('N','Y','SELECTED','SELECTED_TIMER_ALT','SELECTED_TIMER_ADDR3') default 'N',
|
||||
scheduled_callbacks ENUM('Y','N') default 'N',
|
||||
lead_filter_id VARCHAR(10) default 'NONE',
|
||||
drop_call_seconds TINYINT(3) default '5',
|
||||
@@ -902,7 +902,8 @@ dispo_max_dispo VARCHAR(6) default 'DISMX',
|
||||
pause_max SMALLINT(5) UNSIGNED default '0',
|
||||
max_inbound_calls SMALLINT(5) UNSIGNED default '0',
|
||||
manual_dial_search_checkbox ENUM('SELECTED','SELECTED_RESET','UNSELECTED','UNSELECTED_RESET') default 'SELECTED',
|
||||
hide_call_log_info ENUM('Y','N') default 'N'
|
||||
hide_call_log_info ENUM('Y','N') default 'N',
|
||||
timer_alt_seconds SMALLINT(5) default '0'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -3267,4 +3268,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version';
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1377',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1378',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -256,3 +256,8 @@ UPDATE system_settings SET db_schema_version='1376',db_schema_update_date=NOW()
|
||||
ALTER TABLE system_settings ADD frozen_server_call_clear ENUM('0','1') default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1377',db_schema_update_date=NOW() where db_schema_version < 1377;
|
||||
|
||||
ALTER TABLE vicidial_campaigns MODIFY alt_number_dialing ENUM('N','Y','SELECTED','SELECTED_TIMER_ALT','SELECTED_TIMER_ADDR3') default 'N';
|
||||
ALTER TABLE vicidial_campaigns ADD timer_alt_seconds SMALLINT(5) default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1378',db_schema_update_date=NOW() where db_schema_version < 1378;
|
||||
|
||||
@@ -286,6 +286,14 @@ QueueMetrics Pause Type Logging||
|
||||
If enabled, this option will log the type of pause in the queue_log table data5 field. You must make sure that you have a data5 field or enabling this feature will break QM compatibility. Default is 0 for disabled||
|
||||
Clear Frozen Calls||
|
||||
This option can enable the ability for the general Reports page and the optional AST_timecheck.pl script to clear out the auto_calls entries for a frozen server so they do not affect call routing. Default is 0 for disabled||
|
||||
Clear List||
|
||||
LIST NOT CLEARED||
|
||||
LIST CLEAR CONFIRMATION||
|
||||
Click here to clear list and all of its leads||
|
||||
Manual Alt Num Dialing||
|
||||
This option allows an agent to manually dial the alternate phone number or address3 field after the main number has been called. If the option has SELECTED in it then the Alt Dial checkbox will be automatically checked for each call. If the option has TIMER in it then the Alt Phone or Address3 field will be automatically be dialed after Timer Alt Seconds. Default is N for disabled||
|
||||
Timer Alt Seconds||
|
||||
If the Manual Alt Num Dialing setting has TIMER in it then the Alt Phone or Address3 field will be automatically be dialed after this number of seconds. Default is 0 for disabled||
|
||||
|
||||
|
||||
########################## CHANGES TO EXISTING PHRASES IN ADMIN TRANSLATION
|
||||
@@ -299,6 +307,12 @@ Dial Lead ID||
|
||||
Agent Form Display Script||
|
||||
Agent Notes||
|
||||
You have been paused for too long, you have been logged out of your session||
|
||||
Too many network errors, please contact your administrator||
|
||||
No available servers, please contact your administrator||
|
||||
No available phones, please contact your administrator||
|
||||
You are already logged in, please log out of your other session first||
|
||||
Too many agents logged in, please contact your administrator||
|
||||
Dial Countdown||
|
||||
|
||||
|
||||
########################## CHANGES TO EXISTING PHRASES IN AGENT TRANSLATION
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
# 130705-2004 - Added optional encrypted passwords compatibility
|
||||
# 130802-1004 - Changed to PHP mysqli functions
|
||||
# 140429-2035 - Added TABLEper_call_notes display script variable for form display
|
||||
# 140521-1314 - Added more agent login error messages
|
||||
#
|
||||
|
||||
# $mysql_queries = 19
|
||||
@@ -30,7 +31,7 @@ function user_authorization($user,$pass,$user_option,$user_update,$bcrypt,$retur
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,webroot_writable,pass_hash_enabled,pass_key,pass_cost FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,webroot_writable,pass_hash_enabled,pass_key,pass_cost,hosted_settings FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -42,6 +43,7 @@ function user_authorization($user,$pass,$user_option,$user_update,$bcrypt,$retur
|
||||
$SSpass_hash_enabled = $row[2];
|
||||
$SSpass_key = $row[3];
|
||||
$SSpass_cost = $row[4];
|
||||
$SShosted_settings = $row[5];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -123,15 +125,91 @@ function user_authorization($user,$pass,$user_option,$user_update,$bcrypt,$retur
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($user_update > 0)
|
||||
$login_problem=0;
|
||||
$aas_total=0;
|
||||
$ap_total=0;
|
||||
$vla_total=0;
|
||||
$mvla_total=0;
|
||||
$vla_set=0;
|
||||
$vla_on=0;
|
||||
|
||||
$stmt = "SELECT count(*) FROM servers where active='Y' and active_asterisk_server='Y';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$aas_ct = mysqli_num_rows($rslt);
|
||||
if ($aas_ct > 0)
|
||||
{
|
||||
$stmt="UPDATE vicidial_users set last_login_date=NOW(),last_ip='$ip',failed_login_count=0 where user='$user';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'05013',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$aas_total = $row[0];
|
||||
}
|
||||
|
||||
$stmt = "SELECT count(*) FROM phones where active='Y';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$ap_ct = mysqli_num_rows($rslt);
|
||||
if ($ap_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$ap_total = $row[0];
|
||||
}
|
||||
|
||||
$stmt = "SELECT count(*) FROM vicidial_live_agents where user!='$user';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$vla_ct = mysqli_num_rows($rslt);
|
||||
if ($vla_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$vla_total = $row[0];
|
||||
}
|
||||
|
||||
$stmt = "SELECT count(*) FROM vicidial_live_agents where user='$user';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$mvla_ct = mysqli_num_rows($rslt);
|
||||
if ($mvla_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$mvla_total = $row[0];
|
||||
}
|
||||
|
||||
if ( (preg_match("/MXAG/",$SShosted_settings)) and ($mvla_total < 1) )
|
||||
{
|
||||
$vla_set = $SShosted_settings;
|
||||
$vla_set = preg_replace("/.*MXAG|_BUILD_|DRA| /",'',$vla_set);
|
||||
$vla_set = preg_replace('/[^0-9]/','',$vla_set);
|
||||
if (strlen($vla_set)>0)
|
||||
{$vla_on++;}
|
||||
}
|
||||
|
||||
if ($aas_total < 1)
|
||||
{
|
||||
$auth_key='ERRSERVERS';
|
||||
$login_problem++;
|
||||
}
|
||||
if ($ap_total < 1)
|
||||
{
|
||||
$auth_key='ERRPHONES';
|
||||
$login_problem++;
|
||||
}
|
||||
if ( ($vla_total >= $vla_set) and ($vla_on > 0) )
|
||||
{
|
||||
$auth_key='ERRAGENTS';
|
||||
$login_problem++;
|
||||
}
|
||||
|
||||
if ($login_problem < 1)
|
||||
{
|
||||
if ($user_update > 0)
|
||||
{
|
||||
$stmt="UPDATE vicidial_users set last_login_date=NOW(),last_ip='$ip',failed_login_count=0 where user='$user';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'05013',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
}
|
||||
$auth_key='GOOD';
|
||||
if ( ($return_hash == '1') and ($SSpass_hash_enabled > 0) and (strlen($pass_hash) > 12) )
|
||||
{$auth_key .= "|$pass_hash";}
|
||||
}
|
||||
$auth_key='GOOD';
|
||||
if ( ($return_hash == '1') and ($SSpass_hash_enabled > 0) and (strlen($pass_hash) > 12) )
|
||||
{$auth_key .= "|$pass_hash";}
|
||||
}
|
||||
return $auth_key;
|
||||
}
|
||||
|
||||
@@ -429,10 +429,11 @@
|
||||
# 140428-1514 - Added pause_type
|
||||
# 140429-2040 - Added called_count and call notes display option as script and form variables
|
||||
# 140519-1011 - Fixed calls in this session to not count monitoring channels
|
||||
# 140521-2147 - Added manual alt dial options and more agent login error messages
|
||||
#
|
||||
|
||||
$version = '2.8-398c';
|
||||
$build = '140519-1011';
|
||||
$version = '2.8-399c';
|
||||
$build = '140521-2147';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=80;
|
||||
$one_mysql_log=0;
|
||||
@@ -1443,7 +1444,7 @@ else
|
||||
$HKstatusnames = substr("$HKstatusnames", 0, -1);
|
||||
|
||||
##### 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,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info 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,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
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";}
|
||||
@@ -1562,6 +1563,7 @@ else
|
||||
$CP_max_inbound_calls = $row[111];
|
||||
$manual_dial_search_checkbox = $row[112];
|
||||
$hide_call_log_info = $row[113];
|
||||
$timer_alt_seconds = $row[114];
|
||||
|
||||
if ( ($pause_max < 10) or (strlen($pause_max)<2) )
|
||||
{$pause_max=0;}
|
||||
@@ -1789,7 +1791,7 @@ else
|
||||
{$manual_dial_prefix = $dial_prefix;}
|
||||
if (strlen($three_way_dial_prefix) < 1)
|
||||
{$three_way_dial_prefix = $dial_prefix;}
|
||||
if ($alt_number_dialing=='Y')
|
||||
if ( ($alt_number_dialing=='Y') or ($alt_number_dialing=='SELECTED') or ($alt_number_dialing=='SELECTED_TIMER_ALT') or ($alt_number_dialing=='SELECTED_TIMER_ADDR3') )
|
||||
{$alt_phone_dialing='1';}
|
||||
else
|
||||
{
|
||||
@@ -2043,6 +2045,16 @@ else
|
||||
$VDdisplayMESSAGE = "Login incorrect, please try again<br />";
|
||||
if ($auth_message == 'LOCK')
|
||||
{$VDdisplayMESSAGE = "Too many login attempts, try again in 15 minutes<br />";}
|
||||
if ($auth_message == 'ERRNETWORK')
|
||||
{$VDdisplayMESSAGE = "Too many network errors, please contact your administrator<br />";}
|
||||
if ($auth_message == 'ERRSERVERS')
|
||||
{$VDdisplayMESSAGE = "No available servers, please contact your administrator<br />";}
|
||||
if ($auth_message == 'ERRPHONES')
|
||||
{$VDdisplayMESSAGE = "No available phones, please contact your administrator<br />";}
|
||||
if ($auth_message == 'ERRDUPLICATE')
|
||||
{$VDdisplayMESSAGE = "You are already logged in, please log out of your other session first<br />";}
|
||||
if ($auth_message == 'ERRAGENTS')
|
||||
{$VDdisplayMESSAGE = "Too many agents logged in, please contact your administrator<br />";}
|
||||
}
|
||||
}
|
||||
if ($VDloginDISPLAY)
|
||||
@@ -3597,6 +3609,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var manual_preview_dial = '<?php echo $manual_preview_dial ?>';
|
||||
var starting_alt_phone_dialing = '<?php echo $alt_phone_dialing ?>';
|
||||
var alt_phone_dialing = '<?php echo $alt_phone_dialing ?>';
|
||||
var alt_number_dialing = '<?php echo $alt_number_dialing ?>';
|
||||
var timer_alt_seconds = '<?php echo $timer_alt_seconds ?>';
|
||||
var timer_alt_count=0;
|
||||
var timer_alt_trigger=0;
|
||||
var last_mdtype='';
|
||||
var DefaulTAlTDiaL = '<?php echo $DefaulTAlTDiaL ?>';
|
||||
var wrapup_seconds = '<?php echo $wrapup_seconds ?>';
|
||||
var wrapup_message = '<?php echo $wrapup_message ?>';
|
||||
@@ -4975,7 +4992,6 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
vtiger_callback_id = APIDiaL_array_detail[10];
|
||||
document.vicidial_form.MDLeadID.value = APIDiaL_array_detail[11];
|
||||
document.vicidial_form.MDType.value = APIDiaL_array_detail[12];
|
||||
|
||||
// alert(APIDiaL_array_detail[1] + "-----" + APIDiaL + "-----" + document.vicidial_form.MDDiaLCodE.value + "-----" + document.vicidial_form.phone_code.value);
|
||||
|
||||
if (APIDiaL_array_detail[2] == 'YES') // lookup lead in system
|
||||
@@ -5894,6 +5910,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
reselect_alt_dial = 1;
|
||||
alt_dial_active = 1;
|
||||
alt_dial_status_display = 1;
|
||||
if ( ( (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') ) && ( (last_mdtype != 'ALT') && (last_mdtype != 'ADDR3') ) )
|
||||
{
|
||||
timer_alt_count=timer_alt_seconds;
|
||||
timer_alt_trigger=1;
|
||||
}
|
||||
var man_status = "Dial Alt Phone Number: <a href=\"#\" onclick=\"ManualDialOnly('MaiNPhonE')\"><font class=\"preview_text\">MAIN PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('ALTPhonE')\"><font class=\"preview_text\">ALT PHONE</font></a> or <a href=\"#\" onclick=\"ManualDialOnly('AddresS3')\"><font class=\"preview_text\">ADDRESS3</font></a> or <a href=\"#\" onclick=\"ManualDialAltDonE()\"><font class=\"preview_text_red\">FINISH LEAD</font></a>" + status_display_content;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = man_status;
|
||||
}
|
||||
@@ -6848,8 +6869,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
else
|
||||
{
|
||||
agent_dialed_type='MANUAL_DIALNOW';
|
||||
document.vicidial_form.LeadPreview.checked=false;
|
||||
document.vicidial_form.DiaLAltPhonE.checked=false;
|
||||
if ( (alt_number_dialing == 'SELECTED') || (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') )
|
||||
{
|
||||
document.vicidial_form.DiaLAltPhonE.checked=true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.vicidial_form.LeadPreview.checked=false;
|
||||
document.vicidial_form.DiaLAltPhonE.checked=false;
|
||||
}
|
||||
}
|
||||
if (active_group_alias.length > 1)
|
||||
{var sending_group_alias = 1;}
|
||||
@@ -8025,6 +8053,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{document.getElementById("CusTInfOSpaN").innerHTML = " <b> ALT DIAL NUMBER: ALT </b>";}
|
||||
if (dialed_label == 'ADDR3')
|
||||
{document.getElementById("CusTInfOSpaN").innerHTML = " <b> ALT DIAL NUMBER: ADDRESS3 </b>";}
|
||||
last_mdtype = dialed_label;
|
||||
var REGalt_dial = new RegExp("X","g");
|
||||
if (dialed_label.match(REGalt_dial))
|
||||
{
|
||||
@@ -10760,6 +10789,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
document.vicidial_form.MDPhonENumbeRHiddeN.value = '';
|
||||
inbound_lead_search=0;
|
||||
cid_lock=0;
|
||||
timer_alt_trigger=0;
|
||||
last_mdtype='';
|
||||
document.getElementById("timer_alt_display").innerHTML = '';
|
||||
|
||||
if (manual_dial_search_checkbox == 'SELECTED_RESET')
|
||||
{document.vicidial_form.LeadLookuP.checked=true;}
|
||||
@@ -10799,6 +10831,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
|
||||
AgentDispoing = 0;
|
||||
|
||||
if ( (alt_number_dialing == 'SELECTED') || (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') )
|
||||
{
|
||||
document.vicidial_form.DiaLAltPhonE.checked=true;
|
||||
}
|
||||
if ( (shift_logout_flag < 1) && (api_logout_flag < 1) )
|
||||
{
|
||||
if (wrapup_waiting == 0)
|
||||
@@ -13620,7 +13656,7 @@ function phone_number_format(formatphone) {
|
||||
{clearDiv('NexTCalLPausE');}
|
||||
if (volumecontrol_active != '1')
|
||||
{hideDiv('VolumeControlSpan');}
|
||||
if (DefaulTAlTDiaL == '1')
|
||||
if ( (DefaulTAlTDiaL == '1') || (alt_number_dialing == 'SELECTED') || (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') )
|
||||
{document.vicidial_form.DiaLAltPhonE.checked=true;}
|
||||
if (agent_status_view != '1')
|
||||
{document.getElementById("AgentViewLink").innerHTML = "";}
|
||||
@@ -13879,6 +13915,24 @@ function phone_number_format(formatphone) {
|
||||
{
|
||||
DiaLableLeaDsCounT();
|
||||
}
|
||||
if (timer_alt_trigger > 0)
|
||||
{
|
||||
if (timer_alt_count < 1)
|
||||
{
|
||||
timer_alt_trigger=0;
|
||||
timer_alt_count=timer_alt_seconds;
|
||||
document.getElementById("timer_alt_display").innerHTML = '';
|
||||
if (alt_number_dialing == 'SELECTED_TIMER_ALT')
|
||||
{ManualDialOnly('ALTPhonE');}
|
||||
if (alt_number_dialing == 'SELECTED_TIMER_ADDR3')
|
||||
{ManualDialOnly('AddresS3');}
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("timer_alt_display").innerHTML = " Dial Countdown: " + timer_alt_count + " " + last_mdtype;
|
||||
timer_alt_count--;
|
||||
}
|
||||
}
|
||||
if (VD_live_customer_call==1)
|
||||
{
|
||||
VD_live_call_secondS++;
|
||||
@@ -14345,7 +14399,7 @@ function phone_number_format(formatphone) {
|
||||
var buildDivHTML = "<font class=\"preview_text\"> <input type=\"checkbox\" name=\"DiaLAltPhonE\" size=\"1\" value=\"0\" /> ALT PHONE DIAL<br /></font>";
|
||||
document.getElementById("DiaLDiaLAltPhonEHide").innerHTML = buildDivHTML;
|
||||
}
|
||||
if (DefaulTAlTDiaL == '1')
|
||||
if ( (DefaulTAlTDiaL == '1') || (alt_number_dialing == 'SELECTED') || (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') )
|
||||
{document.vicidial_form.DiaLAltPhonE.checked=true;}
|
||||
}
|
||||
}
|
||||
@@ -14369,7 +14423,7 @@ function phone_number_format(formatphone) {
|
||||
document.getElementById(divvar).innerHTML = buildDivHTML;
|
||||
if (reselect_alt_dial==1)
|
||||
{document.vicidial_form.DiaLAltPhonE.checked=true}
|
||||
if (DefaulTAlTDiaL == '1')
|
||||
if ( (DefaulTAlTDiaL == '1') || (alt_number_dialing == 'SELECTED') || (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') )
|
||||
{document.vicidial_form.DiaLAltPhonE.checked=true;}
|
||||
}
|
||||
}
|
||||
@@ -14517,7 +14571,14 @@ function phone_number_format(formatphone) {
|
||||
if (resumevar != 'NO')
|
||||
{
|
||||
if (alt_phone_dialing == 1)
|
||||
{buildDiv('DiaLDiaLAltPhonE');}
|
||||
{
|
||||
buildDiv('DiaLDiaLAltPhonE');
|
||||
|
||||
if ( (alt_number_dialing == 'SELECTED') || (alt_number_dialing == 'SELECTED_TIMER_ALT') || (alt_number_dialing == 'SELECTED_TIMER_ADDR3') )
|
||||
{
|
||||
document.vicidial_form.DiaLAltPhonE.checked=true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{clearDiv('DiaLDiaLAltPhonE');}
|
||||
if (pause_after_next_call != 'ENABLED')
|
||||
@@ -14726,9 +14787,12 @@ $zi=2;
|
||||
{
|
||||
echo "<img src=\"./images/pixel.gif\" width=\"1px\" height=\"".$webphone_height."px\" /><br />\n";
|
||||
}
|
||||
$alt_phone_selected='';
|
||||
if ( ($alt_number_dialing=='SELECTED') or ($alt_number_dialing=='SELECTED_TIMER_ALT') or ($alt_number_dialing=='SELECTED_TIMER_ADDR3') )
|
||||
{$alt_phone_selected='CHECKED';}
|
||||
?>
|
||||
<span id="post_phone_time_diff_span"><b><font color="red"><span id="post_phone_time_diff_span_contents"></span></font></b></span>
|
||||
<font class="body_text"> STATUS: <span id="MainStatuSSpan"></span></font></td></tr>
|
||||
<font class="body_text"> STATUS: <span id="MainStatuSSpan"></span><span id=timer_alt_display></span></font></td></tr>
|
||||
<tr><td colspan="3"><span id="busycallsdebug"></span></td></tr>
|
||||
<tr><td width="150px" align="left" valign="top">
|
||||
<font class="body_text"><center>
|
||||
@@ -14736,7 +14800,7 @@ $zi=2;
|
||||
<span id="ManualQueueNotice"></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="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" <?php echo $alt_phone_selected ?>/> ALT PHONE DIAL<br /></font></span>
|
||||
<span id="NexTCalLPausE"> <a href="#" onclick="next_call_pause_click();return false;">Next Call Pause</a> <br /></span>
|
||||
|
||||
<!--
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -16,6 +16,7 @@
|
||||
# 140425-0912 - Added modify_custom_dialplans
|
||||
# 140425-1306 - Added queuemetrics_pause_type
|
||||
# 140509-2211 - Added frozen_server_call_clear
|
||||
# 140521-2020 - Changed alt_number_dialing and added timer_alt_seconds
|
||||
#
|
||||
|
||||
|
||||
@@ -922,7 +923,12 @@ if ($SSoutbound_autodial_active > 0)
|
||||
<BR>
|
||||
<A NAME="campaigns-alt_number_dialing">
|
||||
<BR>
|
||||
<B>Agent Alt Num Dialing -</B> This option allows an agent to manually dial the alternate phone number or address3 field after the main number has been called.
|
||||
<B>Manual Alt Num Dialing -</B> This option allows an agent to manually dial the alternate phone number or address3 field after the main number has been called. If the option has SELECTED in it then the Alt Dial checkbox will be automatically checked for each call. If the option has TIMER in it then the Alt Phone or Address3 field will be automatically be dialed after Timer Alt Seconds. Default is N for disabled.
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-timer_alt_seconds">
|
||||
<BR>
|
||||
<B>Timer Alt Seconds -</B> If the Manual Alt Num Dialing setting has TIMER in it then the Alt Phone or Address3 field will be automatically be dialed after this number of seconds. Default is 0 for disabled.
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-drop_call_seconds">
|
||||
|
||||
Reference in New Issue
Block a user