Added Callback Days Limit campaign option to allow scheduled callbacks to be scheduled only a set number of days from today.

git-svn-id: svn://192.168.202.10@1670 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2011-06-01 02:03:48 +00:00
parent 97c8aabf8f
commit 9da53cd59c
7 changed files with 54 additions and 15 deletions
+3
View File
@@ -606,6 +606,9 @@ OTHER CHANGES:
if the disposition process has not completed. Usually a rare problem on
systems with networking issues.
134. Added Callback Days Limit campaign option to allow scheduled callbacks to
be scheduled only a set number of days from today.
+17 -5
View File
@@ -9,9 +9,10 @@ with each other to send various types of information between them. The overall
goal is to allow for many clusters to talk to each other.
Some of the types of communication that we would like to achieve are:
- Setup of telco trunks(SIP/IAX) allowing for 1-way or 2-way calling
- Setup of crossover trunks(SIP/IAX) allowing for 1-way or 2-way calling
- Allowing lookup of lead information while transferring between clusters
- Allow transmission of number of calls in queue and agents available
- Allow transmission of number of calls in queue, agents available and other stats
- Allow routing of calls to another cluster based upon total daily call percentage, drop rate, number of waiting calls or number of waiting agents
@@ -34,6 +35,7 @@ This will require a new Admin subsection for cluster configuration:
- cluster_api_user
- cluster_api_pass
- cluster_api_permissions - lead_lookup, user_lookup, ingroup_lookup, etc...
- cluster_user_group - used to define the campaigns/ingroups cluster is allowed to get info on
- <readonly auto-updated> cluster_dst, cluster_tz, cluster_local_gmt_now
There will be new options added to Servers:
@@ -50,6 +52,12 @@ There will be a new table added to link lead_ids on clusters:
- call_date
- caller_code
New table to keep track of the active in-groups and campaigns on other clusters
- group_id
- name
- type - INGROUP, CAMPAIGN
- cluster_id
Some tables will have a "cluster_id" field added to them to show where the call came from
- vicidial_auto_calls
- vicidial_campaign_stats
@@ -70,11 +78,15 @@ lead_notes_lookup:
ingroup_status:
- REQUIRES: cluster_id, group_id
- RETURNS: number of agents waiting/incall/paused/total, number of calls waiting, calls today, drops today, drop %
- RETURNS: status, after hours, number of agents waiting/incall/paused/total, number of calls waiting, calls today, drops today, drop %
campaign_status:
- REQUIRES: cluster_id, campaign_id
- RETURNS: number of agents waiting/incall/paused/total, number of calls waiting, calls today, drops today, dialable leads, drop %
- RETURNS: status, number of agents waiting/incall/paused/total, number of calls waiting, calls today, drops today, dialable leads, drop %
ingroup_campaign_list:
- REQUIRES: cluster_id
- RETURNS: ID and name of all active campaigns and in-groups on the cluster
cluster_server_status:
- REQUIRES: cluster_id
@@ -86,5 +98,5 @@ cluster_server_status:
CALL FLOW AND TRUNK CHANGES:
--------------------------------
- IAX/SIP trunks would be added between every server on every active cluster(depending on direction settings)
- IAX/SIP crossover trunks would be added between every server on every active cluster(depending on direction settings)
- dialplan context would be added for each foreign cluster to route calls with proper cluster_id flag allowing for lookups of lead information
+3 -2
View File
@@ -809,7 +809,8 @@ dial_level_threshold ENUM('DISABLED','LOGGED-IN_AGENTS','NON-PAUSED_AGENTS','WAI
dial_level_threshold_agents SMALLINT(5) UNSIGNED default '0',
safe_harbor_audio VARCHAR(100) default 'buzz',
safe_harbor_menu_id VARCHAR(50) default '',
survey_menu_id VARCHAR(50) default ''
survey_menu_id VARCHAR(50) default '',
callback_days_limit SMALLINT(3) default '0'
);
CREATE TABLE vicidial_lists (
@@ -2497,7 +2498,7 @@ ALTER TABLE vicidial_closer_log_archive MODIFY closecallid INT(9) UNSIGNED NOT N
CREATE TABLE vicidial_outbound_ivr_log_archive LIKE vicidial_outbound_ivr_log;
UPDATE system_settings SET db_schema_version='1278',db_schema_update_date=NOW();
UPDATE system_settings SET db_schema_version='1279',db_schema_update_date=NOW();
GRANT RELOAD ON *.* TO cron@'%';
GRANT RELOAD ON *.* TO cron@localhost;
+4
View File
@@ -809,3 +809,7 @@ ALTER TABLE vicidial_campaigns MODIFY survey_method ENUM('AGENT_XFER','VOICEMAIL
ALTER TABLE vicidial_campaigns ADD survey_menu_id VARCHAR(50) default '';
UPDATE system_settings SET db_schema_version='1278',db_schema_update_date=NOW() where db_schema_version < 1278;
ALTER TABLE vicidial_campaigns ADD callback_days_limit SMALLINT(3) default '0';
UPDATE system_settings SET db_schema_version='1279',db_schema_update_date=NOW() where db_schema_version < 1279;
@@ -594,6 +594,8 @@ This setting allows the web phone to be set to automatically answer calls that c
CALLMENU will send the customer to the Call Menu defined in the select list below||
Survey Call Menu||
If the method is set to CALLMENU, this is the Call Menu that the customer is sent to if they opt-in||
Scheduled Callbacks Days Limit||
This option allows you to reduce the agent scheduled callbacks calendar to a selectable number of days from today, the full 12 month calendar will still be displayed, but only the set number of days will be selectable. Default is 0 for unlimited||
admin_campaign_multi_alt.php
+8 -3
View File
@@ -352,10 +352,11 @@
# 110510-1637 - Added number validation to custom_3way_button_transfer function
# 110526-1723 - Added webphone_auto_answer option
# 110528-1033 - Added waiting_on_dispo manual dial check
# 110531-2158 - Added callback_days_limit campaign feature
#
$version = '2.4-329c';
$build = '110528-1033';
$version = '2.4-330c';
$build = '110531-2158';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=72;
$one_mysql_log=0;
@@ -1346,7 +1347,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 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 FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
$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 ($DB) {echo "$stmt\n";}
@@ -1445,6 +1446,7 @@ else
$auto_resume_precall = $row[91];
$manual_dial_cid = $row[92];
$custom_3way_button_transfer = $row[93];
$callback_days_limit = $row[94];
if ( ($VU_agent_lead_search_override == 'ENABLED') or ($VU_agent_lead_search_override == 'DISABLED') )
{$agent_lead_search = $VU_agent_lead_search_override;}
@@ -2745,6 +2747,8 @@ $CTODAYmday = date("j");
$CINC=0;
$live_days=0;
$limit_days=999;
if ($callback_days_limit > 0)
{$limit_days=$callback_days_limit;}
$Cmonths = Array('January','February','March','April','May','June',
'July','August','September','October','November','December');
@@ -3268,6 +3272,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var agent_call_log_view='<?php echo $agent_call_log_view ?>';
var scheduled_callbacks_alert='<?php echo $scheduled_callbacks_alert ?>';
var scheduled_callbacks_count='<?php echo $scheduled_callbacks_count ?>';
var callback_days_limit='<?php echo $callback_days_limit ?>';
var tmp_vicidial_id='';
var agent_xfer_consultative='<?php echo $agent_xfer_consultative ?>';
var agent_xfer_dial_override='<?php echo $agent_xfer_dial_override ?>';
+17 -5
View File
File diff suppressed because one or more lines are too long