Added campaign setting for Dead Call to Dispo Only, to allow the Dead Call Max Seconds setting to send the agent to the dispo screen

git-svn-id: svn://192.168.202.10@2671 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2017-02-17 22:40:50 +00:00
parent 3ae77d0ca7
commit 4c6bea71f0
6 changed files with 67 additions and 27 deletions
+3
View File
@@ -84,6 +84,9 @@ OTHER CHANGES:
10. Added logging of API request URLs
11. Added campaign setting for Dead Call to Dispo Only, to allow the Dead Call
Max Seconds setting to send the agent to the dispo screen
@@ -968,7 +968,8 @@ callback_useronly_move_minutes MEDIUMINT(5) UNSIGNED default '0',
ofcom_uk_drop_calc ENUM('Y','N') default 'N',
manual_auto_next SMALLINT(5) UNSIGNED default '0',
manual_auto_show ENUM('Y','N') default 'N',
allow_required_fields ENUM('Y','N') default 'N'
allow_required_fields ENUM('Y','N') default 'N',
dead_to_dispo ENUM('ENABLED','DISABLED') default 'DISABLED'
) ENGINE=MyISAM;
CREATE TABLE vicidial_lists (
@@ -3856,4 +3857,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='1487',db_schema_update_date=NOW(),reload_timestamp=NOW();
UPDATE system_settings SET db_schema_version='1488',db_schema_update_date=NOW(),reload_timestamp=NOW();
+4
View File
@@ -49,3 +49,7 @@ url MEDIUMTEXT
CREATE TABLE vicidial_api_urls_archive LIKE vicidial_api_urls;
UPDATE system_settings SET db_schema_version='1487',db_schema_update_date=NOW() where db_schema_version < 1487;
ALTER TABLE vicidial_campaigns ADD dead_to_dispo ENUM('ENABLED','DISABLED') default 'DISABLED';
UPDATE system_settings SET db_schema_version='1488',db_schema_update_date=NOW() where db_schema_version < 1488;
+36 -20
View File
@@ -538,10 +538,11 @@
# 161222-1111 - Added more debug logging of events
# 170201-2215 - Fixes for pause-while-call-coming-in issues
# 170207-1314 - Added user option api_only_user
# 170217-1359 - Added dead_to_dispo campaign option
#
$version = '2.14-508c';
$build = '170207-1314';
$version = '2.14-509c';
$build = '170217-1359';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87;
$one_mysql_log=0;
@@ -1755,7 +1756,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,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields 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,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo 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";}
@@ -1895,6 +1896,12 @@ else
$manual_auto_next = $row[132];
$manual_auto_show = $row[133];
$allow_required_fields = $row[134];
$dead_to_dispo = $row[135];
if ($dead_to_dispo == 'ENABLED')
{$dead_to_dispo = 1;}
else
{$dead_to_dispo = 0;}
if ( ($SSmanual_auto_next < 1) or ( ($dial_method != 'INBOUND_MAN') and ($dial_method != 'MANUAL') ) )
{$manual_auto_next = 0;}
@@ -4442,6 +4449,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var agent_select_territories_skip_count=0;
var last_recording_filename='';
var dead_max='<?php echo $dead_max ?>';
var dead_to_dispo='<?php echo $dead_to_dispo ?>';
var dispo_max='<?php echo $dispo_max ?>';
var pause_max='<?php echo $pause_max ?>';
var dead_max_dispo='<?php echo $dead_max_dispo ?>';
@@ -16627,26 +16635,34 @@ function phone_number_format(formatphone) {
if ( (dead_max > 0) && (CheckDEADcallCOUNT > dead_max) )
{
CustomerData_update();
if ( (per_call_notes == 'ENABLED') && (comments_dispo_screen != 'REPLACE_CALL_NOTES') )
if (dead_to_dispo > 0)
{
var test_notesDE = document.vicidial_form.call_notes.value;
if (test_notesDE.length > 0)
{document.vicidial_form.call_notes_dispo.value = document.vicidial_form.call_notes.value}
button_click_log = button_click_log + "" + SQLdate + "-----DeadMaxOnly---" + dead_max + " " + dead_to_dispo + "|";
dialedcall_send_hangup();
}
button_click_log = button_click_log + "" + SQLdate + "-----DeadMax---" + dead_max + " " + dead_max_dispo + "|";
dead_auto_dispo_count=4;
dead_auto_dispo_finish=1;
alt_phone_dialing=starting_alt_phone_dialing;
alt_dial_active = 0;
alt_dial_status_display = 0;
document.vicidial_form.DispoSelection.value = dead_max_dispo;
document.vicidial_form.DispoSelectStop.checked=true;
dialedcall_send_hangup('NO', 'NO', dead_max_dispo);
if (custom_fields_enabled > 0)
else
{
vcFormIFrame.document.form_custom_fields.submit();
CustomerData_update();
if ( (per_call_notes == 'ENABLED') && (comments_dispo_screen != 'REPLACE_CALL_NOTES') )
{
var test_notesDE = document.vicidial_form.call_notes.value;
if (test_notesDE.length > 0)
{document.vicidial_form.call_notes_dispo.value = document.vicidial_form.call_notes.value}
}
button_click_log = button_click_log + "" + SQLdate + "-----DeadMaxDispo---" + dead_max + " " + dead_max_dispo + "|";
dead_auto_dispo_count=4;
dead_auto_dispo_finish=1;
alt_phone_dialing=starting_alt_phone_dialing;
alt_dial_active = 0;
alt_dial_status_display = 0;
document.vicidial_form.DispoSelection.value = dead_max_dispo;
document.vicidial_form.DispoSelectStop.checked=true;
dialedcall_send_hangup('NO', 'NO', dead_max_dispo);
if (custom_fields_enabled > 0)
{
vcFormIFrame.document.form_custom_fields.submit();
}
}
}
}
File diff suppressed because one or more lines are too long
+6
View File
@@ -108,6 +108,7 @@
# 170113-1647 - Added call menu in-group option DYNAMIC_INGROUP_VAR for use with cm_phonesearch.agi
# 170114-1404 - Added inbound_groups-populate_lead_province entry
# 170207-1331 - Added api_only_user entry
# 170217-1353 - Added dead_to_dispo entry
#
@@ -1634,6 +1635,11 @@ if ($SSoutbound_autodial_active > 0)
<BR>
<B><?php echo _QXZ("Dead Call Max Status"); ?> -</B><?php echo _QXZ("If Dead Call Max Seconds is enabled, this is the status set for the call when the agent dead call is not hung up past the number of seconds set above. Default is DCMX."); ?>
<BR>
<A NAME="campaigns-dead_to_dispo">
<BR>
<B><?php echo _QXZ("Dead Call to Dispo Only"); ?> -</B><?php echo _QXZ("If Dead Call Max Seconds is set greater than 0, this option can be enabled if you want to send the agent to the dispo screen after a dead call without automatically dispositioning it. Default is DISABLED."); ?>
<BR>
<A NAME="campaigns-dispo_max">
<BR>