added adaptive_intensity field and continued development of adaptive/predictive dialing
git-svn-id: svn://192.168.202.10@219 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -302,6 +302,8 @@ foreach(@campaign_id)
|
||||
$VCScalls_one=0;
|
||||
$VCSdrops_one=0;
|
||||
$VCSdrops_one_pct=0;
|
||||
$differential_onemin=0;
|
||||
$agents_average_onemin=0;
|
||||
|
||||
$stmtA = "SELECT dialable_leads from vicidial_campaign_stats where campaign_id='$campaign_id[$i]';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
@@ -316,6 +318,39 @@ foreach(@campaign_id)
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
# LAST ONE MINUTE CALL AND DROP STATS
|
||||
$stmtA = "SELECT count(*) from $vicidial_log where campaign_id='$campaign_id[$i]' and call_date > '$VDL_one';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$rec_count=0;
|
||||
while ($sthArows > $rec_count)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$VCScalls_one = "$aryA[0]";
|
||||
$rec_count++;
|
||||
}
|
||||
$sthA->finish();
|
||||
if ($VCScalls_one > 0)
|
||||
{
|
||||
$stmtA = "SELECT count(*) from $vicidial_log where campaign_id='$campaign_id[$i]' and call_date > '$VDL_one' and status IN('DROP','XDROP');";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$rec_count=0;
|
||||
while ($sthArows > $rec_count)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$VCSdrops_one = "$aryA[0]";
|
||||
if ($VCSdrops_one > 0)
|
||||
{
|
||||
$VCSdrops_one_pct = ( ($VCSdrops_one / $VCScalls_one) * 100 );
|
||||
$VCSdrops_one_pct = sprintf("%.2f", $VCSdrops_one_pct);
|
||||
}
|
||||
$rec_count++;
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
# TODAY CALL AND DROP STATS
|
||||
$stmtA = "SELECT count(*) from $vicidial_log where campaign_id='$campaign_id[$i]' and call_date > '$VDL_date';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
@@ -452,40 +487,6 @@ foreach(@campaign_id)
|
||||
$sthA->finish();
|
||||
}
|
||||
|
||||
# LAST ONE MINUTE CALL AND DROP STATS
|
||||
$stmtA = "SELECT count(*) from $vicidial_log where campaign_id='$campaign_id[$i]' and call_date > '$VDL_one';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$rec_count=0;
|
||||
while ($sthArows > $rec_count)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$VCScalls_one = "$aryA[0]";
|
||||
$rec_count++;
|
||||
}
|
||||
$sthA->finish();
|
||||
if ($VCScalls_one > 0)
|
||||
{
|
||||
$stmtA = "SELECT count(*) from $vicidial_log where campaign_id='$campaign_id[$i]' and call_date > '$VDL_one' and status IN('DROP','XDROP');";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$rec_count=0;
|
||||
while ($sthArows > $rec_count)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$VCSdrops_one = "$aryA[0]";
|
||||
if ($VCSdrops_one > 0)
|
||||
{
|
||||
$VCSdrops_one_pct = ( ($VCSdrops_one / $VCScalls_one) * 100 );
|
||||
$VCSdrops_one_pct = sprintf("%.2f", $VCSdrops_one_pct);
|
||||
}
|
||||
$rec_count++;
|
||||
}
|
||||
$sthA->finish();
|
||||
}
|
||||
|
||||
$VCSINCALL=0;
|
||||
$VCSREADY=0;
|
||||
$VCSCLOSER=0;
|
||||
@@ -522,6 +523,24 @@ foreach(@campaign_id)
|
||||
|
||||
### END - GATHER STATS FOR THE vicidial_campaign_stats TABLE ###
|
||||
|
||||
# GET AVERAGES FROM THIS CAMPAIGN
|
||||
$stmtA = "SELECT differential_onemin,agents_average_onemin from vicidial_campaign_stats where campaign_id='$campaign_id[$i]';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
$rec_count=0;
|
||||
while ($sthArows > $rec_count)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$differential_onemin = "$aryA[0]";
|
||||
$agents_average_onemin = "$aryA[1]";
|
||||
$rec_count++;
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
|
||||
|
||||
|
||||
##### BEGIN calculate what gmt_offset_now values are within the allowed local_call_time setting ###
|
||||
$g=0;
|
||||
$p='13';
|
||||
@@ -898,21 +917,42 @@ foreach(@campaign_id)
|
||||
|
||||
##### END calculate what gmt_offset_now values are within the allowed local_call_time setting ###
|
||||
|
||||
# $auto_dial_level[$rec_count] = "$aryA[14]";
|
||||
# $dial_method[$rec_count] = $aryA[46];
|
||||
# $available_only_ratio_tally[$rec_count] = $aryA[47];
|
||||
# $adaptive_dropped_percentage[$rec_count] = $aryA[48];
|
||||
# $adaptive_maximum_level[$rec_count] = $aryA[49];
|
||||
# $adaptive_latest_target_gmt[$rec_count] = $aryA[50];
|
||||
|
||||
$stmtA = "UPDATE vicidial_campaign_stats SET calls_today='$VCScalls_today',drops_today='$VCSdrops_today',drops_today_pct='$VCSdrops_today_pct',calls_hour='$VCScalls_hour',drops_hour='$VCSdrops_hour',drops_hour_pct='$VCSdrops_hour_pct',calls_halfhour='$VCScalls_halfhour',drops_halfhour='$VCSdrops_halfhour',drops_halfhour_pct='$VCSdrops_halfhour_pct',calls_fivemin='$VCScalls_five',drops_fivemin='$VCSdrops_five',drops_fivemin_pct='$VCSdrops_five_pct',calls_onemin='$VCScalls_one',drops_onemin='$VCSdrops_one',drops_onemin_pct='$VCSdrops_one_pct' where campaign_id='$campaign_id[$i]';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$adaptive_string = "|AGENTS: $VCSagents|ACTIVE: $VCSagents_active|CALC: $VCSagents_calc|INCALL: $VCSINCALL|READY: $VCSREADY|LEVEL: $auto_dial_level[$i]|$dial_method[$i]|$available_only_ratio_tally[$i]|$adaptive_dropped_percentage[$i]|$adaptive_maximum_level[$i]|$adaptive_latest_target_gmt[$i] |$VCScalls_today|$VCSdrops_today|$VCSdrops_today_pct| |$VCScalls_hour|$VCSdrops_hour|$VCSdrops_hour_pct| |$VCScalls_halfhour|$VCSdrops_halfhour|$VCSdrops_halfhour_pct| |$VCScalls_five|$VCSdrops_five|$VCSdrops_five_pct| |$VCScalls_one|$VCSdrops_one|$VCSdrops_one_pct| $campaign_id[$i]|";
|
||||
|
||||
$differential_mul = ($differential_onemin / $agents_average_onemin);
|
||||
$differential_pct = ($differential_mul * 100);
|
||||
$differential_pct = sprintf("%.2f", $differential_pct);
|
||||
$suggested_dial_level = ($auto_dial_level[$i] * ($differential_mul + 1) );
|
||||
$suggested_dial_level = sprintf("%.3f", $suggested_dial_level);
|
||||
|
||||
$adaptive_string = "\n";
|
||||
$adaptive_string .= "CAMPAIGN: $campaign_id[$i]\n";
|
||||
$adaptive_string .= "SETTINGS-\n";
|
||||
$adaptive_string .= " DIAL_LEVEL: $auto_dial_level[$i]\n";
|
||||
$adaptive_string .= " DIALMETHOD: $dial_method[$i]\n";
|
||||
$adaptive_string .= " AVAIL ONLY: $available_only_ratio_tally[$i]\n";
|
||||
$adaptive_string .= " DROP PCNT: $adaptive_dropped_percentage[$i]\n";
|
||||
$adaptive_string .= " MAX LEVEL: $adaptive_maximum_level[$i]\n";
|
||||
$adaptive_string .= " LATEST GMT: $adaptive_latest_target_gmt[$i]\n";
|
||||
$adaptive_string .= "CURRENT STATS-\n";
|
||||
$adaptive_string .= " AVG AGENTS: $agents_average_onemin\n";
|
||||
$adaptive_string .= " AGENTS: $VCSagents ACTIVE: $VCSagents_active CALC: $VCSagents_calc INCALL: $VCSINCALL READY: $VCSREADY\n";
|
||||
$adaptive_string .= " DL DIFFERENTIAL: $differential_onemin\n";
|
||||
$adaptive_string .= " PERCENT DIFF: $differential_pct\n";
|
||||
$adaptive_string .= " SUGGEST DL: $suggested_dial_level = ($auto_dial_level[$i] *($differential_mul+1))\n";
|
||||
$adaptive_string .= " TODAY DROPS: $VCScalls_today $VCSdrops_today $VCSdrops_today_pct%\n";
|
||||
$adaptive_string .= " ONE HOUR DROPS: $VCScalls_hour $VCSdrops_hour $VCSdrops_hour_pct%\n";
|
||||
$adaptive_string .= " HALF HOUR DROPS: $VCScalls_halfhour $VCSdrops_halfhour $VCSdrops_halfhour_pct%\n";
|
||||
$adaptive_string .= " FIVE MIN DROPS: $VCScalls_five $VCSdrops_five $VCSdrops_five_pct%\n";
|
||||
$adaptive_string .= " ONE MIN DROPS: $VCScalls_one $VCSdrops_one $VCSdrops_one_pct%\n";
|
||||
|
||||
if ($DB) {print "campaign stats updated: $campaign_id[$i] $adaptive_string\n";}
|
||||
|
||||
&adaptive_logger;
|
||||
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
@@ -1247,18 +1247,3 @@ if ($SYSLOG)
|
||||
$event_string='';
|
||||
}
|
||||
|
||||
|
||||
sub adaptive_logger
|
||||
{
|
||||
if ($SYSLOG)
|
||||
{
|
||||
$VDHCLOGfile = "$PATHlogs/adaptive-$campaign_id[$i].$file_date";
|
||||
|
||||
### open the log file for writing ###
|
||||
open(Aout, ">>$VDHCLOGfile")
|
||||
|| die "Can't open $VDHCLOGfile: $!\n";
|
||||
print Aout "$now_date$adaptive_string\n";
|
||||
close(Aout);
|
||||
}
|
||||
$adaptive_string='';
|
||||
}
|
||||
@@ -479,7 +479,8 @@ dial_method ENUM('MANUAL','RATIO','ADAPT_HARD_LIMIT','ADAPT_TAPERED','ADAPT_AVER
|
||||
available_only_ratio_tally ENUM('Y','N') default 'N',
|
||||
adaptive_dropped_percentage SMALLINT(3) default '3',
|
||||
adaptive_maximum_level VARCHAR(6) default '3.0',
|
||||
adaptive_latest_target_gmt VARCHAR(6) default '-7'
|
||||
adaptive_latest_target_gmt VARCHAR(6) default '-7',
|
||||
adaptive_intensity VARCHAR(6) default '0'
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
|
||||
@@ -23,6 +23,7 @@ ALTER TABLE vicidial_campaigns ADD available_only_ratio_tally ENUM('Y','N') defa
|
||||
ALTER TABLE vicidial_campaigns ADD adaptive_dropped_percentage SMALLINT(3) default '3';
|
||||
ALTER TABLE vicidial_campaigns ADD adaptive_maximum_level VARCHAR(6) default '3.0';
|
||||
ALTER TABLE vicidial_campaigns ADD adaptive_latest_target_gmt VARCHAR(6) default '-7';
|
||||
ALTER TABLE vicidial_campaigns ADD adaptive_intensity VARCHAR(6) default '0';
|
||||
|
||||
ALTER TABLE vicidial_campaign_stats ADD differential_onemin VARCHAR(20) default '0';
|
||||
ALTER TABLE vicidial_campaign_stats ADD agents_average_onemin VARCHAR(20) default '0';
|
||||
|
||||
@@ -12,6 +12,7 @@ Available Only Tally -<\/B> This field if set to Y will leave out INCALL and QUE
|
||||
Drop Percentage Limit -<\/B> This field is where you set the limit of the percentage of dropped calls you would like while using an adaptive-predictive dial method, not MANUAL or RATIO
|
||||
Maximum Adapt Dial Level -<\/B> This field is where you set the limit of the limit to the numbr of lines you would like dialed per agent while using an adaptive-predictive dial method, not MANUAL or RATIO. This number can be higher than the Auto Dial Level if your hardware will support it. Value must be a positive number greater than one and can have decimal places Default 3.0
|
||||
Latest Target Timezone -<\/B> This field is only used by the ADAPT_TAPERED dial method. You should select the current GMT offset value or timezone of the latest region that you will be calling. This allows the Tapered algorithm to decide how aggressively to dial by how long you have until you will be finished calling. NOTE- If you are calling in the USA and you have a very small amount of leads in Alaska or Hawaii but many leads in Pacific time zone, you should choose the pacific time zone for this field for the ADAPT_TAPERED dial method to work properly
|
||||
Adapt Intensity Modifier -<\/B> This field is used to adjust the predictive intensity either higher or lower. The higher a positive number you select, the greater the dialer will increase the call pacing when it goes up and the slower the dialer will decrease the call pacing when it goes down. The lower the negative number you select here, the slower the dialer will increase the call pacing and the faster the dialer will lower the call pacing when it goes down. Default is 0. This field is not used by the MANUAL or RATIO dial methods
|
||||
|
||||
System Performance
|
||||
Server Logs
|
||||
@@ -24,6 +25,7 @@ Available Only Tally
|
||||
Drop Percentage Limit
|
||||
Maximum Adapt Dial Level
|
||||
Latest Target Timezone
|
||||
Adapt Intensity Modifier
|
||||
|
||||
############################################################ CLIENT
|
||||
|
||||
|
||||
@@ -288,6 +288,8 @@ if (isset($_GET["dial_method"])) {$dial_method=$_GET["dial_method"];}
|
||||
elseif (isset($_POST["dial_method"])) {$dial_method=$_POST["dial_method"];}
|
||||
if (isset($_GET["adaptive_latest_target_gmt"])) {$adaptive_latest_target_gmt=$_GET["adaptive_latest_target_gmt"];}
|
||||
elseif (isset($_POST["adaptive_latest_target_gmt"])){$adaptive_latest_target_gmt=$_POST["adaptive_latest_target_gmt"];}
|
||||
if (isset($_GET["adaptive_intensity"])) {$adaptive_intensity=$_GET["adaptive_intensity"];}
|
||||
elseif (isset($_POST["adaptive_intensity"])) {$adaptive_intensity=$_POST["adaptive_intensity"];}
|
||||
|
||||
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
||||
if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);}
|
||||
@@ -447,6 +449,7 @@ $campaign_rec_filename = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$campaign_rec_fi
|
||||
$call_time_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$call_time_name);
|
||||
$call_time_comments = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$call_time_comments);
|
||||
$adaptive_latest_target_gmt = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$adaptive_latest_target_gmt);
|
||||
$adaptive_intensity = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$adaptive_intensity);
|
||||
|
||||
### remove semi-colons ###
|
||||
$lead_filter_sql = ereg_replace(";","",$lead_filter_sql);
|
||||
@@ -524,12 +527,13 @@ $lead_filter_sql = ereg_replace(";","",$lead_filter_sql);
|
||||
# 60821-1625 - added ALLFORCE recording option for campaign_recording
|
||||
# 60823-1154 - added fields for adaptive dialing
|
||||
# 60824-1326 - added adaptive_latest_target_gmt for ADAPT_TAPERED dial method
|
||||
# 60825-1205 - added adaptive_intensity for ADAPT_ dial methods
|
||||
#
|
||||
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$version = '2.0.62';
|
||||
$build = '60824-1326';
|
||||
$version = '2.0.63';
|
||||
$build = '60825-1205';
|
||||
|
||||
$STARTtime = date("U");
|
||||
|
||||
@@ -1136,6 +1140,11 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
|
||||
<BR>
|
||||
<B>Latest Target Timezone -</B> This field is only used by the ADAPT_TAPERED dial method. You should select the current GMT offset value or timezone of the latest region that you will be calling. This allows the Tapered algorithm to decide how aggressively to dial by how long you have until you will be finished calling. NOTE- If you are calling in the USA and you have a very small amount of leads in Alaska or Hawaii but many leads in Pacific time zone, you should choose the pacific time zone for this field for the ADAPT_TAPERED dial method to work properly.
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_campaigns-adaptive_intensity">
|
||||
<BR>
|
||||
<B>Adapt Intensity Modifier -</B> This field is used to adjust the predictive intensity either higher or lower. The higher a positive number you select, the greater the dialer will increase the call pacing when it goes up and the slower the dialer will decrease the call pacing when it goes down. The lower the negative number you select here, the slower the dialer will increase the call pacing and the faster the dialer will lower the call pacing when it goes down. Default is 0. This field is not used by the MANUAL or RATIO dial methods.
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_campaigns-next_agent_call">
|
||||
<BR>
|
||||
@@ -2900,7 +2909,7 @@ if ($ADD==41)
|
||||
}
|
||||
}
|
||||
}
|
||||
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', $adlSQL next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysql_real_escape_string($web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',safe_harbor_message='$safe_harbor_message',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns='$groups_value',use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code',dial_method='$dial_method',available_only_ratio_tally='$available_only_ratio_tally',adaptive_dropped_percentage='$adaptive_dropped_percentage',adaptive_maximum_level='$adaptive_maximum_level',adaptive_latest_target_gmt='$adaptive_latest_target_gmt' where campaign_id='$campaign_id';";
|
||||
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', $adlSQL next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysql_real_escape_string($web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',safe_harbor_message='$safe_harbor_message',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns='$groups_value',use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code',dial_method='$dial_method',available_only_ratio_tally='$available_only_ratio_tally',adaptive_dropped_percentage='$adaptive_dropped_percentage',adaptive_maximum_level='$adaptive_maximum_level',adaptive_latest_target_gmt='$adaptive_latest_target_gmt',adaptive_intensity='$adaptive_intensity' where campaign_id='$campaign_id';";
|
||||
$rslt=mysql_query($stmtA, $link);
|
||||
|
||||
if ($reset_hopper == 'Y')
|
||||
@@ -3037,7 +3046,7 @@ if ($ADD==44)
|
||||
}
|
||||
}
|
||||
}
|
||||
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',hopper_level='$hopper_level', $adlSQL lead_filter_id='$lead_filter_id',dial_method='$dial_method' where campaign_id='$campaign_id';";
|
||||
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',hopper_level='$hopper_level', $adlSQL lead_filter_id='$lead_filter_id',dial_method='$dial_method',adaptive_intensity='$adaptive_intensity' where campaign_id='$campaign_id';";
|
||||
$rslt=mysql_query($stmtA, $link);
|
||||
|
||||
if ($reset_hopper == 'Y')
|
||||
@@ -4331,6 +4340,7 @@ echo "<TABLE><TR><TD>\n";
|
||||
$adaptive_dropped_percentage = $row[48];
|
||||
$adaptive_maximum_level = $row[49];
|
||||
$adaptive_latest_target_gmt = $row[50];
|
||||
$adaptive_intensity = $row[51];
|
||||
|
||||
echo "<br>MODIFY A CAMPAIGNS RECORD: $row[0] - <a href=\"$PHP_SELF?ADD=34&campaign_id=$campaign_id\">Basic View</a>";
|
||||
echo " | Detail View</a> | ";
|
||||
@@ -4429,6 +4439,15 @@ echo "<tr bgcolor=#BDFFBD><td align=right>Maximum Adapt Dial Level: </td><td ali
|
||||
|
||||
echo "<tr bgcolor=#BDFFBD><td align=right>Latest Target Timezone: </td><td align=left><select size=1 name=adaptive_latest_target_gmt><option>12.75</option><option>12.00</option><option>11.00</option><option>10.00</option><option>9.50</option><option>9.00</option><option>8.00</option><option>7.00</option><option>6.50</option><option>6.00</option><option>5.75</option><option>5.50</option><option>5.00</option><option>4.50</option><option>4.00</option><option>3.50</option><option>3.00</option><option>2.00</option><option>1.00</option><option>0.00</option><option>-1.00</option><option>-2.00</option><option>-2.50</option><option>-3.00</option><option>-3.50</option><option>-4.00</option><option>-4.50</option><option>-5.00</option><option>-6.00</option><option>-7.00</option><option>-8.00</option><option>-9.00</option><option>-10.00</option><option>-11.00</option><option>-12.00</option><option selected>$adaptive_latest_target_gmt</option></select> (MUST Adjust for DST) $NWB#vicidial_campaigns-adaptive_latest_target_gmt$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#BDFFBD><td align=right>Adapt Intensity Modifier: </td><td align=left><select size=1 name=adaptive_intensity>\n";
|
||||
$n=-20;
|
||||
while ($n<=20)
|
||||
{
|
||||
echo "<option>$n</option>\n";
|
||||
$n++;
|
||||
}
|
||||
echo "<option SELECTED>$adaptive_intensity</option></select> $NWB#vicidial_campaigns-adaptive_intensity$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Next Agent Call: </td><td align=left><select size=1 name=next_agent_call><option >random</option><option>oldest_call_start</option><option>oldest_call_finish</option><option>overall_user_level</option><option SELECTED>$next_agent_call</option></select>$NWB#vicidial_campaigns-next_agent_call$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=311111111&call_time_id=$local_call_time\">Local Call Time: </a></td><td align=left><select size=1 name=local_call_time>\n";
|
||||
@@ -4754,6 +4773,7 @@ echo "<TABLE><TR><TD>\n";
|
||||
if ($lead_filter_id=='') {$lead_filter_id='NONE';}
|
||||
$display_dialable_count = $row[39];
|
||||
$dial_method = $row[46];
|
||||
$adaptive_intensity = $row[51];
|
||||
|
||||
echo "<br>MODIFY A CAMPAIGN'S RECORD: $row[0] - Basic View | ";
|
||||
echo "<a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id\">Detail View</a> | ";
|
||||
@@ -4831,6 +4851,15 @@ echo "<tr bgcolor=#BDFFBD><td align=right>Dial Method: </td><td align=left><sele
|
||||
|
||||
echo "<tr bgcolor=#BDFFBD><td align=right>Auto Dial Level: </td><td align=left><select size=1 name=auto_dial_level><option >0</option><option>1</option><option>1.1</option><option>1.2</option><option>1.3</option><option>1.4</option><option>1.5</option><option>1.6</option><option>1.7</option><option>1.8</option><option>1.9</option><option>2.0</option><option>2.2</option><option>2.5</option><option>2.7</option><option>3.0</option><option>3.5</option><option>4.0</option><option SELECTED>$auto_dial_level</option></select>(0 = off)$NWB#vicidial_campaigns-auto_dial_level$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#BDFFBD><td align=right>Adapt Intensity Modifier: </td><td align=left><select size=1 name=adaptive_intensity>\n";
|
||||
$n=-20;
|
||||
while ($n<=20)
|
||||
{
|
||||
echo "<option>$n</option>\n";
|
||||
$n++;
|
||||
}
|
||||
echo "<option SELECTED>$adaptive_intensity</option></select> $NWB#vicidial_campaigns-adaptive_intensity$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=3111111&script_id=$script_id\">Script</a>: </td><td align=left>$script_id</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Get Call Launch: </td><td align=left>$get_call_launch</td></tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user