Added campaign agent_xfer_validation option and ingroup populate_state_areacode option
git-svn-id: svn://192.168.202.10@2698 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -115,6 +115,12 @@ OTHER CHANGES:
|
||||
19. Added admin Automated Reports section, allowing easier web configuration of
|
||||
scheduled reports being sent by Email or FTP.
|
||||
|
||||
20. Added campaign option to validate transfer agent list based upon which
|
||||
AGENTDIRECT in-groups those agents had selected.
|
||||
|
||||
21. Added In-Group option to look up the state based upon the areacode of the
|
||||
caller ID phone number of the person calling in.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -207,6 +207,7 @@
|
||||
# 170118-0107 - Added OW options to populate_lead_province in-group option
|
||||
# 170220-2134 - Added areacode_filter options
|
||||
# 170221-0912 - Fix for areacode_filter logging issue
|
||||
# 170309-1514 - Added populate_state_areacode option
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_inbound.agi';
|
||||
@@ -218,7 +219,7 @@ $wait_prompt_runs=0;
|
||||
$at='@';
|
||||
$S='*';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=219;
|
||||
$mysql_log_count=220;
|
||||
$one_mysql_log=0;
|
||||
$dial_ingroup_flag=0;
|
||||
$called_count=1;
|
||||
@@ -732,7 +733,7 @@ $affected_rows = $dbhA->do($stmtA);
|
||||
|
||||
### Grab inbound groups values from the database
|
||||
$cbc=0;
|
||||
$stmtA = "SELECT call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,drop_call_seconds,drop_action,drop_exten,next_agent_call,voicemail_ext,queue_priority,drop_inbound_group,afterhours_xfer_group,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,no_agent_no_queue,no_agent_action,no_agent_action_value,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,active,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,ingroup_recording_override,ingroup_rec_filename,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,max_calls_method,max_calls_count,max_calls_action,populate_lead_ingroup,na_call_url,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,routing_initiated_recordings,on_hook_cid_number,populate_lead_province,areacode_filter,areacode_filter_seconds,areacode_filter_action,areacode_filter_action_value FROM vicidial_inbound_groups where group_id = '$channel_group';";
|
||||
$stmtA = "SELECT call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,drop_call_seconds,drop_action,drop_exten,next_agent_call,voicemail_ext,queue_priority,drop_inbound_group,afterhours_xfer_group,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,no_agent_no_queue,no_agent_action,no_agent_action_value,extension_appended_cidname,uniqueid_status_display,uniqueid_status_prefix,hold_time_option_minimum,hold_time_option_press_filename,hold_time_option_callmenu,onhold_prompt_no_block,onhold_prompt_seconds,hold_time_option_no_block,hold_time_option_prompt_seconds,hold_time_second_option,hold_time_third_option,wait_hold_option_priority,wait_time_option,wait_time_second_option,wait_time_third_option,wait_time_option_seconds,wait_time_option_exten,wait_time_option_voicemail,wait_time_option_xfer_group,wait_time_option_callmenu,wait_time_option_callback_filename,wait_time_option_callback_list_id,wait_time_option_press_filename,wait_time_option_no_block,wait_time_option_prompt_seconds,active,calculate_estimated_hold_seconds,add_lead_url,eht_minimum_prompt_filename,eht_minimum_prompt_no_block,eht_minimum_prompt_seconds,on_hook_ring_time,ingroup_recording_override,ingroup_rec_filename,on_hook_cid,action_xfer_cid,drop_callmenu,after_hours_callmenu,max_calls_method,max_calls_count,max_calls_action,populate_lead_ingroup,na_call_url,drop_lead_reset,after_hours_lead_reset,nanq_lead_reset,wait_time_lead_reset,hold_time_lead_reset,routing_initiated_recordings,on_hook_cid_number,populate_lead_province,areacode_filter,areacode_filter_seconds,areacode_filter_action,areacode_filter_action_value,populate_state_areacode FROM vicidial_inbound_groups where group_id = '$channel_group';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
@@ -837,6 +838,7 @@ if ($sthArows > 0)
|
||||
$areacode_filter_seconds = $aryA[87];
|
||||
$areacode_filter_action = $aryA[88];
|
||||
$areacode_filter_action_value = $aryA[89];
|
||||
$populate_state_areacode = $aryA[90];
|
||||
|
||||
$custom_call_id='';
|
||||
if ($uniqueid_status_display =~ /ENABLED/)
|
||||
@@ -966,6 +968,7 @@ if ( (length($holiday_afterhours_filename_override) > 0) && ($holiday_afterhours
|
||||
|
||||
|
||||
### if channel variables for state and/or postal_code have been populated, grab them for use when new lead is inserted
|
||||
$UPDATEstateSQL='';
|
||||
$INSERTstateSQLa=''; $INSERTstateSQLb='';
|
||||
$state = $AGI->get_variable('state');
|
||||
if (length($state) > 0)
|
||||
@@ -983,6 +986,31 @@ if (length($postal_code) > 0)
|
||||
$INSERTpostal_codeSQLb=",'$postal_code'";
|
||||
}
|
||||
|
||||
if ($populate_state_areacode =~ /NEW_LEAD_ONLY|OVERWRITE_ALWAYS/)
|
||||
{
|
||||
$phone_ac = substr($phone_number, 0, 3);
|
||||
$stmtA= "SELECT state from vicidial_phone_codes where country_code='$phone_code' and areacode='$phone_ac' limit 1;";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$dbhP=$dbhA; $mysql_count='02220'; $MEL_aff_rows=$sthArows; &mysql_error_logging;
|
||||
if ($sthArows > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$state = $aryA[0];
|
||||
}
|
||||
$sthA->finish();
|
||||
if (length($state) > 0)
|
||||
{
|
||||
$state =~ s/\'|\"|\\\\|\\\|\\|\\;|\\\;|\;|;//gi;
|
||||
$INSERTstateSQLa=',state';
|
||||
$INSERTstateSQLb=",'$state'";
|
||||
if ($populate_state_areacode =~ /OVERWRITE_ALWAYS/)
|
||||
{
|
||||
$UPDATEstateSQL=",state='$state'";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# send call to after hours action if in-group is set to inactive
|
||||
if ($ingroup_active !~ /Y/)
|
||||
@@ -1524,7 +1552,7 @@ if ( ( ( ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) ) && ($hm >= $c
|
||||
$populate_provinceUPDATE='';
|
||||
if ($populate_lead_province =~ /OW_did/i)
|
||||
{&populate_lead_province_process;}
|
||||
$stmtA = "UPDATE vicidial_list set status='$AHstatus' $populate_provinceUPDATE $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set status='$AHstatus' $populate_provinceUPDATE $UPDATEstateSQL $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02018'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- AH VDCL vl update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
@@ -1764,7 +1792,7 @@ if ( ( ($no_agent_no_queue =~ /Y|NO_PAUSED/) || ($MCnanque_override > 0) ) && ($
|
||||
$populate_provinceUPDATE='';
|
||||
if ($populate_lead_province =~ /OW_did/i)
|
||||
{&populate_lead_province_process;}
|
||||
$stmtA = "UPDATE vicidial_list set status='$NQstatus' $populate_provinceUPDATE $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set status='$NQstatus' $populate_provinceUPDATE $UPDATEstateSQL $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02106'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- NA VDCL vl update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
@@ -2299,7 +2327,7 @@ if ($populate_lead_province =~ /OW_did/i)
|
||||
{
|
||||
&populate_lead_province_process;
|
||||
|
||||
$stmtA = "UPDATE vicidial_list set modify_date=NOW() $populate_provinceUPDATE where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set modify_date=NOW() $populate_provinceUPDATE $UPDATEstateSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02XXX'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- PROVINCE update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
@@ -3811,7 +3839,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
||||
$populate_provinceUPDATE='';
|
||||
if ($populate_lead_province =~ /OW_did/i)
|
||||
{&populate_lead_province_process;}
|
||||
$stmtA = "UPDATE vicidial_list set status='HXFER' $populate_provinceUPDATE where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set status='HXFER' $populate_provinceUPDATE $UPDATEstateSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02077'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- VDCL vl update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
@@ -4283,7 +4311,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
||||
$populate_provinceUPDATE='';
|
||||
if ($populate_lead_province =~ /OW_did/i)
|
||||
{&populate_lead_province_process;}
|
||||
$stmtA = "UPDATE vicidial_list set status='$NQstatus' $populate_provinceUPDATE $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set status='$NQstatus' $populate_provinceUPDATE $UPDATEstateSQL $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02106'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- ACF VDCL vl update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
@@ -4815,7 +4843,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
||||
$populate_provinceUPDATE='';
|
||||
if ($populate_lead_province =~ /OW_did/i)
|
||||
{&populate_lead_province_process;}
|
||||
$stmtA = "UPDATE vicidial_list set status='WAITTO' $populate_provinceUPDATE $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set status='WAITTO' $populate_provinceUPDATE $UPDATEstateSQL $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02092'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- VDCL vl update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
@@ -5264,7 +5292,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
||||
$populate_provinceUPDATE='';
|
||||
if ($populate_lead_province =~ /OW_did/i)
|
||||
{&populate_lead_province_process;}
|
||||
$stmtA = "UPDATE vicidial_list set status='HOLDTO' $populate_provinceUPDATE $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set status='HOLDTO' $populate_provinceUPDATE $UPDATEstateSQL $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02092'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- VDCL vl update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
@@ -5643,7 +5671,7 @@ if ( ($drop_timer > $DROP_TIME) || ($MCdrop_override > 0) )
|
||||
$populate_provinceUPDATE='';
|
||||
if ($populate_lead_province =~ /OW_did/i)
|
||||
{&populate_lead_province_process;}
|
||||
$stmtA = "UPDATE vicidial_list set status='$DRstatus' $populate_provinceUPDATE $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$stmtA = "UPDATE vicidial_list set status='$DRstatus' $populate_provinceUPDATE $UPDATEstateSQL $called_since_last_resetSQL where lead_id = '$insert_lead_id';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02101'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- VDCL vl update: |$affected_rows|$insert_lead_id|\n|$stmtA|"; &agi_output;}
|
||||
|
||||
@@ -971,7 +971,8 @@ 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',
|
||||
dead_to_dispo ENUM('ENABLED','DISABLED') default 'DISABLED'
|
||||
dead_to_dispo ENUM('ENABLED','DISABLED') default 'DISABLED',
|
||||
agent_xfer_validation ENUM('N','Y') default 'N'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -1205,7 +1206,8 @@ populate_lead_province VARCHAR(20) default 'DISABLED',
|
||||
areacode_filter ENUM('DISABLED','ALLOW_ONLY','DROP_ONLY') default 'DISABLED',
|
||||
areacode_filter_seconds SMALLINT(5) default '10',
|
||||
areacode_filter_action ENUM('CALLMENU','INGROUP','DID','MESSAGE','EXTENSION','VOICEMAIL','VMAIL_NO_INST') default 'MESSAGE',
|
||||
areacode_filter_action_value VARCHAR(255) default 'nbdy-avail-to-take-call|vm-goodbye'
|
||||
areacode_filter_action_value VARCHAR(255) default 'nbdy-avail-to-take-call|vm-goodbye',
|
||||
populate_state_areacode ENUM('DISABLED','NEW_LEAD_ONLY','OVERWRITE_ALWAYS') default 'DISABLED'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_stations (
|
||||
@@ -3897,4 +3899,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='1492',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1493',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -109,3 +109,9 @@ index (run_now_trigger)
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1492',db_schema_update_date=NOW() where db_schema_version < 1492;
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD agent_xfer_validation ENUM('N','Y') default 'N';
|
||||
|
||||
ALTER TABLE vicidial_inbound_groups ADD populate_state_areacode ENUM('DISABLED','NEW_LEAD_ONLY','OVERWRITE_ALWAYS') default 'DISABLED';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1493',db_schema_update_date=NOW() where db_schema_version < 1493;
|
||||
|
||||
@@ -424,10 +424,11 @@
|
||||
# 170221-1314 - Added more DNC options for campaign setting, manual dial filter
|
||||
# 170228-1625 - Fix to prevent double-logging when emergency logout happens
|
||||
# 170309-0704 - Small fix for INBOUND_MAN agent logging issue
|
||||
# 170309-1550 - Added campaign agent_xfer_validation option
|
||||
#
|
||||
|
||||
$version = '2.14-318';
|
||||
$build = '170309-0704';
|
||||
$version = '2.14-319';
|
||||
$build = '170309-1550';
|
||||
$php_script = 'vdc_db_query.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=658;
|
||||
@@ -12842,7 +12843,16 @@ if ($ACTION == 'AGENTSview')
|
||||
$AGENTviewSQL = "and $AGENTviewSQL";
|
||||
}
|
||||
if ($comments=='AgentXferViewSelect')
|
||||
{$AGENTviewSQL .= " and (vla.closer_campaigns LIKE \"%AGENTDIRECT%\")";}
|
||||
{
|
||||
if ($status == 'Y')
|
||||
{
|
||||
$AGENTviewSQL .= " and (vla.closer_campaigns LIKE \"% $group_name %\")";
|
||||
}
|
||||
else
|
||||
{
|
||||
$AGENTviewSQL .= " and (vla.closer_campaigns LIKE \"%AGENTDIRECT%\")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo "<TABLE CELLPADDING=0 CELLSPACING=1>";
|
||||
|
||||
+15
-11
@@ -544,10 +544,11 @@
|
||||
# 170301-0839 - Added functionality for required custom fields
|
||||
# 170303-1206 - Expanded required custom fields types
|
||||
# 170309-0705 - Small fix for INBOUND_MAN agent logging issue
|
||||
# 170309-1215 - Added agent_xfer_validation option
|
||||
#
|
||||
|
||||
$version = '2.14-514c';
|
||||
$build = '170309-0705';
|
||||
$version = '2.14-515c';
|
||||
$build = '170309-1215';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=87;
|
||||
$one_mysql_log=0;
|
||||
@@ -1761,7 +1762,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,dead_to_dispo 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,agent_xfer_validation 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";}
|
||||
@@ -1902,6 +1903,7 @@ else
|
||||
$manual_auto_show = $row[133];
|
||||
$allow_required_fields = $row[134];
|
||||
$dead_to_dispo = $row[135];
|
||||
$agent_xfer_validation = $row[136];
|
||||
|
||||
if ($dead_to_dispo == 'ENABLED')
|
||||
{$dead_to_dispo = 1;}
|
||||
@@ -4494,6 +4496,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var previous_agent_log_id='<?php echo $agent_log_id ?>';
|
||||
var alert_box_close_counter=0;
|
||||
var api_switch_lead_triggered=0;
|
||||
var agent_xfer_validation='<?php echo $agent_xfer_validation ?>';
|
||||
var agent_xfer_group_selected='';
|
||||
var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_paused.gif") ?>\" border=\"0\" alt=\"You are paused\" /></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_active.gif") ?>\" border=\"0\" alt=\"You are active\" /></a>";
|
||||
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/<?php echo _QXZ("vdc_LB_blank_OFF.gif") ?>\" border=\"0\" alt=\"pause button disabled\" />";
|
||||
@@ -15170,7 +15174,7 @@ function phone_number_format(formatphone) {
|
||||
|
||||
// ################################################################################
|
||||
// RefresH the agents view sidebar or xfer frame
|
||||
function refresh_agents_view(RAlocation,RAcount)
|
||||
function refresh_agents_view(RAlocation,RAcount,RAgroupselected,RAvalidation)
|
||||
{
|
||||
if (RAcount > 0)
|
||||
{
|
||||
@@ -15197,7 +15201,7 @@ function phone_number_format(formatphone) {
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=AGENTSview&format=text&user=" + user + "&pass=" + pass + "&user_group=" + VU_user_group + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&stage=" + agent_status_view_time + "&campaign=" + campaign + "&comments=" + RAlocation;
|
||||
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=AGENTSview&format=text&user=" + user + "&pass=" + pass + "&user_group=" + VU_user_group + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&stage=" + agent_status_view_time + "&campaign=" + campaign + "&comments=" + RAlocation + "&group_name=" + RAgroupselected + "&status=" + RAvalidation;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(RAview_query);
|
||||
@@ -15431,8 +15435,8 @@ function phone_number_format(formatphone) {
|
||||
function XferAgentSelectLink()
|
||||
{
|
||||
var XfeRSelecT = document.getElementById("XfeRGrouP");
|
||||
var XScheck = XfeRSelecT.value
|
||||
if (XScheck.match(/AGENTDIRECT/i))
|
||||
agent_xfer_group_selected = XfeRSelecT.value
|
||||
if (agent_xfer_group_selected.match(/AGENTDIRECT/i))
|
||||
{
|
||||
showDiv('agentdirectlink');
|
||||
}
|
||||
@@ -15449,12 +15453,12 @@ function phone_number_format(formatphone) {
|
||||
{
|
||||
button_click_log = button_click_log + "" + SQLdate + "-----XferAgentSelectLaunch---|";
|
||||
var XfeRSelecT = document.getElementById("XfeRGrouP");
|
||||
var XScheck = XfeRSelecT.value
|
||||
if (XScheck.match(/AGENTDIRECT/i))
|
||||
agent_xfer_group_selected = XfeRSelecT.value
|
||||
if (agent_xfer_group_selected.match(/AGENTDIRECT/i))
|
||||
{
|
||||
showDiv('AgentXferViewSpan');
|
||||
AgentsViewOpen('AgentXferViewSelect','open');
|
||||
refresh_agents_view('AgentXferViewSelect',agent_status_view)
|
||||
refresh_agents_view('AgentXferViewSelect',agent_status_view,agent_xfer_group_selected,agent_xfer_validation)
|
||||
xfer_select_agents_active=1;
|
||||
document.vicidial_form.xfername.value='';
|
||||
}
|
||||
@@ -16700,7 +16704,7 @@ function phone_number_format(formatphone) {
|
||||
}
|
||||
if (xfer_select_agents_active > 0)
|
||||
{
|
||||
refresh_agents_view('AgentXferViewSelect',agent_status_view);
|
||||
refresh_agents_view('AgentXferViewSelect',agent_status_view,agent_xfer_group_selected,agent_xfer_validation);
|
||||
}
|
||||
if (agentonly_callbacks == '1')
|
||||
{CB_count_check++;}
|
||||
|
||||
+23
-10
File diff suppressed because one or more lines are too long
@@ -112,6 +112,7 @@
|
||||
# 170220-1811 - Added areacode_filter entries
|
||||
# 170301-1337 - Updated entry for custom fields required setting
|
||||
# 170304-1346 - Added auto_reports section
|
||||
# 170309-1212 - Added agent_xfer_validation and populate_state_areacode entries
|
||||
#
|
||||
|
||||
|
||||
@@ -1498,6 +1499,11 @@ if ($SSoutbound_autodial_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("PrePopulate Transfer Preset"); ?> -</B><?php echo _QXZ("This option will fill in the Number to Dial field in the Transfer Conference frame of the agent screen if defined. Default is N for disabled."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-agent_xfer_validation">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Agent Transfer In-Group Validation"); ?> -</B><?php echo _QXZ("This option involves the agents that show up in the agent selection screen when an agent is transferring a call to another agent using an AGENTDIRECT in-group. Enabling this option will ensure that the agents listed as available to transfer to have selected the AGENTDIRECT in-group that was chosen by the agent originating the transfer. For example, if the originating agent has selected the AGENTDIRECT_2 in-group, then when that agent clicks on the AGENTS link to select another agent to transfer the call to, only agents that have selected to take calls from the AGENTDIRECT_2 in-group will be shown."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-enable_xfer_presets">
|
||||
<BR>
|
||||
@@ -2888,6 +2894,11 @@ if ($SSqc_features_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Populate Lead Province"); ?> -</B><?php echo _QXZ("If this option is not DISABLED, then the system will look up the original DID that the inbound call came in on and populate one of the listed DID fields in the province field on the customer lead. The OW options will overwrite the province field every time the call enters this In-Group. Default is DISABLED."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="inbound_groups-populate_state_areacode">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Populate Lead State Areacode"); ?> -</B><?php echo _QXZ("If this option is not DISABLED, then the system will look up the state that the areacode of the phone number is from and populate the state field with that value. If the OVERWRITE_ALWAYS option is selected, then every time that lead goes through this in-group, the state field will be looked up and populated again. Default is DISABLED."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="inbound_groups-customer_chat_link">
|
||||
<BR>
|
||||
|
||||
Reference in New Issue
Block a user