Added List override options for webform fields
Added script to purge all vicidial_callbacks records that are inactive or are tied to deleted leads, AST_DB_dead_cb_purge.pl git-svn-id: svn://192.168.202.10@1558 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -402,6 +402,11 @@ OTHER CHANGES:
|
||||
91. Added ability to modify scheduled callback dates and comments in the Admin
|
||||
Modify Lead screen.
|
||||
|
||||
92. Added List override options for webform fields
|
||||
|
||||
93. Added script to purge all vicidial_callbacks records that are inactive or
|
||||
are tied to deleted leads, AST_DB_dead_cb_purge.pl
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# AST_DB_dead_cb_purge.pl version 2.4
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# OPTIONAL!!!
|
||||
# - checks all vicidial_callbacks records for CBHOLD or CALLBK status, if not
|
||||
# then the script deletes the vicidial_callbacks record
|
||||
#
|
||||
# It is recommended that you run this program on the local Asterisk machine
|
||||
#
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 101128-0149 - first build
|
||||
#
|
||||
|
||||
### begin parsing run-time options ###
|
||||
if (length($ARGV[0])>1)
|
||||
{
|
||||
$i=0;
|
||||
while ($#ARGV >= $i)
|
||||
{
|
||||
$args = "$args $ARGV[$i]";
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($args =~ /--help/i)
|
||||
{
|
||||
print "allowed run time options:\n";
|
||||
print " [-purge-non-cb] = delete callback records of leads with no CBHOLD/CALLBK status\n";
|
||||
print " [-t] = test\n";
|
||||
print " [-q] = quiet\n";
|
||||
print " [-debug] = verbose debug messages\n\n";
|
||||
print " [-debugX] = extra verbose debug messages\n\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($args =~ /-q/i)
|
||||
{
|
||||
$Q=1;
|
||||
}
|
||||
if ($args =~ /-purge-non-cb/i)
|
||||
{
|
||||
$purge_non_cb=1;
|
||||
}
|
||||
if ($args =~ /-debug/i)
|
||||
{
|
||||
$DB=1; # Debug flag, set to 0 for no debug messages, On an active system this will generate hundreds of lines of output per minute
|
||||
}
|
||||
if ($args =~ /-debugX/i)
|
||||
{
|
||||
$DBX=1; # Debug flag, set to 0 for no debug messages, On an active system this will generate hundreds of lines of output per minute
|
||||
}
|
||||
if ($args =~ /-t/i)
|
||||
{
|
||||
$TEST=1;
|
||||
$T=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "no command line options set\n";
|
||||
$DB=1;
|
||||
}
|
||||
### end parsing run-time options ###
|
||||
|
||||
|
||||
# default path to astguiclient configuration file:
|
||||
$PATHconf = '/etc/astguiclient.conf';
|
||||
|
||||
open(conf, "$PATHconf") || die "can't open $PATHconf: $!\n";
|
||||
@conf = <conf>;
|
||||
close(conf);
|
||||
$i=0;
|
||||
foreach(@conf)
|
||||
{
|
||||
$line = $conf[$i];
|
||||
$line =~ s/ |>|\n|\r|\t|\#.*|;.*//gi;
|
||||
if ( ($line =~ /^PATHhome/) && ($CLIhome < 1) )
|
||||
{$PATHhome = $line; $PATHhome =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^PATHlogs/) && ($CLIlogs < 1) )
|
||||
{$PATHlogs = $line; $PATHlogs =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^PATHagi/) && ($CLIagi < 1) )
|
||||
{$PATHagi = $line; $PATHagi =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^PATHweb/) && ($CLIweb < 1) )
|
||||
{$PATHweb = $line; $PATHweb =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^PATHsounds/) && ($CLIsounds < 1) )
|
||||
{$PATHsounds = $line; $PATHsounds =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^PATHmonitor/) && ($CLImonitor < 1) )
|
||||
{$PATHmonitor = $line; $PATHmonitor =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARserver_ip/) && ($CLIserver_ip < 1) )
|
||||
{$VARserver_ip = $line; $VARserver_ip =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_server/) && ($CLIDB_server < 1) )
|
||||
{$VARDB_server = $line; $VARDB_server =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_database/) && ($CLIDB_database < 1) )
|
||||
{$VARDB_database = $line; $VARDB_database =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_user/) && ($CLIDB_user < 1) )
|
||||
{$VARDB_user = $line; $VARDB_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_pass/) && ($CLIDB_pass < 1) )
|
||||
{$VARDB_pass = $line; $VARDB_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_port/) && ($CLIDB_port < 1) )
|
||||
{$VARDB_port = $line; $VARDB_port =~ s/.*=//gi;}
|
||||
$i++;
|
||||
}
|
||||
|
||||
# Customized Variables
|
||||
$server_ip = $VARserver_ip; # Asterisk server IP
|
||||
|
||||
if (!$VARDB_port) {$VARDB_port='3306';}
|
||||
|
||||
use DBI;
|
||||
|
||||
$dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VARDB_user", "$VARDB_pass")
|
||||
or die "Couldn't connect to database: " . DBI->errstr;
|
||||
|
||||
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
||||
|
||||
|
||||
$deleted=0;
|
||||
|
||||
|
||||
$stmtA = "select lead_id,status,callback_id from vicidial_callbacks limit 10000000;";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArowsCT=$sthA->rows;
|
||||
$rec_count=0;
|
||||
while ($sthArowsCT > $rec_count)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
|
||||
$lead_ids[$rec_count] = $aryA[0];
|
||||
$lead_statuses[$rec_count] = $aryA[1];
|
||||
$callback_ids[$rec_count] = $aryA[2];
|
||||
|
||||
$rec_count++;
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
$rec_count=0;
|
||||
while ($sthArowsCT > $rec_count)
|
||||
{
|
||||
$delete_lead=0;
|
||||
|
||||
if ($lead_statuses[$rec_count] =~ /INACTIVE/)
|
||||
{
|
||||
$delete_lead++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmtA = "select status from vicidial_list where lead_id='$lead_ids[$rec_count]';";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
if ($sthArows > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$callback_statuses[$rec_count] = $aryA[0];
|
||||
if ( ($purge_non_cb > 0) && ($aryA[0] !~ /CBHOLD|CALLBK/) )
|
||||
{$delete_lead++;}
|
||||
}
|
||||
else
|
||||
{$delete_lead++;}
|
||||
$sthA->finish();
|
||||
}
|
||||
|
||||
|
||||
if($DBX){print STDERR "$rec_count| |$lead_ids[$rec_count]|$lead_statuses[$rec_count]|$callback_statuses[$rec_count]|$callback_ids[$rec_count]|\n";}
|
||||
|
||||
|
||||
if ($delete_lead > 0)
|
||||
{
|
||||
$stmtA = "DELETE from vicidial_callbacks where callback_id='$callback_ids[$rec_count]';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
if($DB){print STDERR "\n|$stmtA| |$affected_rows deleted| |$lead_ids[$rec_count]|$lead_statuses[$rec_count]|$callback_statuses[$rec_count]|$callback_ids[$rec_count]|\n";}
|
||||
$deleted++;
|
||||
}
|
||||
$rec_count++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if($DB>0){print STDERR "\nDONE: $deleted|$rec_count\n";}
|
||||
|
||||
$dbhA->disconnect();
|
||||
|
||||
exit;
|
||||
@@ -800,7 +800,9 @@ xferconf_a_number VARCHAR(50) default '',
|
||||
xferconf_b_number VARCHAR(50) default '',
|
||||
xferconf_c_number VARCHAR(50) default '',
|
||||
xferconf_d_number VARCHAR(50) default '',
|
||||
xferconf_e_number VARCHAR(50) default ''
|
||||
xferconf_e_number VARCHAR(50) default '',
|
||||
web_form_address TEXT,
|
||||
web_form_address_two TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_statuses (
|
||||
@@ -2408,7 +2410,7 @@ ALTER TABLE vicidial_agent_log_archive MODIFY agent_log_id INT(9) UNSIGNED NOT N
|
||||
|
||||
CREATE TABLE vicidial_carrier_log_archive LIKE vicidial_carrier_log;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1254',db_schema_update_date=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1255',db_schema_update_date=NOW();
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
@@ -624,3 +624,8 @@ ALTER TABLE vicidial_campaigns ADD api_manual_dial ENUM('STANDARD','QUEUE','QUEU
|
||||
ALTER TABLE vicidial_campaigns ADD manual_dial_call_time_check ENUM('DISABLED','ENABLED') default 'DISABLED';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1254',db_schema_update_date=NOW();
|
||||
|
||||
ALTER TABLE vicidial_lists ADD web_form_address TEXT;
|
||||
ALTER TABLE vicidial_lists ADD web_form_address_two TEXT;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1255',db_schema_update_date=NOW();
|
||||
|
||||
@@ -485,6 +485,7 @@ This option allows you to set the Agent API to make either one call at a time, S
|
||||
Manual Call Time Check||
|
||||
If this option is enabled, it will check all manual dial calls to make sure they are within the call time settings set for the campaign. Default is DISABLED||
|
||||
If you want to change this lead to a scheduled callback, first change the Disposition to CBHOLD, then submit and you will be able to set the callback date and time||
|
||||
Web Form Override -</B> This is the custom address that clicking on the WEB FORM button in VICIDIAL will take you to for calls that come in on this list||
|
||||
|
||||
|
||||
AST_LISTS_campaign_stats.php
|
||||
|
||||
+35
-19
@@ -263,10 +263,11 @@
|
||||
# 101108-0115 - Added ADDMEMBER option for queue_log
|
||||
# 101111-1556 - Added source to vicidial_hopper inserts
|
||||
# 101124-1033 - Added require for functions.php and manual dial call time check campaign option
|
||||
# 101128-0108 - Added list override for webforms
|
||||
#
|
||||
|
||||
$version = '2.4-169';
|
||||
$build = '101124-1033';
|
||||
$version = '2.4-170';
|
||||
$build = '101128-0108';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=363;
|
||||
$one_mysql_log=0;
|
||||
@@ -2046,6 +2047,26 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00032',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
$campaign_cid_override='';
|
||||
$LISTweb_form_address='';
|
||||
$LISTweb_form_address_two='';
|
||||
### check if there is a list_id override
|
||||
if (strlen($list_id) > 1)
|
||||
{
|
||||
$stmt = "SELECT campaign_cid_override,web_form_address,web_form_address_two FROM vicidial_lists where list_id='$list_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00245',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$lio_ct = mysql_num_rows($rslt);
|
||||
if ($lio_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$campaign_cid_override = $row[0];
|
||||
$LISTweb_form_address = $row[1];
|
||||
$LISTweb_form_address_two = $row[2];
|
||||
}
|
||||
}
|
||||
|
||||
### if preview dialing, do not send the call
|
||||
if ( (strlen($preview)<1) || ($preview == 'NO') )
|
||||
{
|
||||
@@ -2061,21 +2082,6 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$Local_dial_timeout = ($Local_dial_timeout * 1000);
|
||||
if (strlen($dial_prefix) > 0) {$Local_out_prefix = "$dial_prefix";}
|
||||
if (strlen($campaign_cid) > 6) {$CCID = "$campaign_cid"; $CCID_on++;}
|
||||
$campaign_cid_override='';
|
||||
### check if there is a list_id override
|
||||
if (strlen($list_id) > 1)
|
||||
{
|
||||
$stmt = "SELECT campaign_cid_override FROM vicidial_lists where list_id='$list_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00245',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$lio_ct = mysql_num_rows($rslt);
|
||||
if ($lio_ct > 0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$campaign_cid_override = $row[0];
|
||||
}
|
||||
}
|
||||
if (strlen($campaign_cid_override) > 6) {$CCID = "$campaign_cid_override"; $CCID_on++;}
|
||||
### check for custom cid use
|
||||
$use_custom_cid=0;
|
||||
@@ -2430,6 +2436,8 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$LeaD_InfO .= $custom_field_names . "\n";
|
||||
$LeaD_InfO .= $custom_field_values . "\n";
|
||||
$LeaD_InfO .= $custom_field_types . "\n";
|
||||
$LeaD_InfO .= $LISTweb_form_address . "\n";
|
||||
$LeaD_InfO .= $LISTweb_form_address_two . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
}
|
||||
@@ -2577,6 +2585,8 @@ if ($ACTION == 'manDiaLonly')
|
||||
|
||||
### prepare variables to place manual call from VICIDiaL
|
||||
$CCID_on=0; $CCID='';
|
||||
$LISTweb_form_address='';
|
||||
$LISTweb_form_address_two='';
|
||||
$local_DEF = 'Local/';
|
||||
$local_AMP = '@';
|
||||
$Local_out_prefix = '9';
|
||||
@@ -2604,7 +2614,7 @@ if ($ACTION == 'manDiaLonly')
|
||||
|
||||
if (strlen($list_id) > 1)
|
||||
{
|
||||
$stmt = "SELECT campaign_cid_override FROM vicidial_lists where list_id='$list_id';";
|
||||
$stmt = "SELECT campaign_cid_override,web_form_address,web_form_address_two FROM vicidial_lists where list_id='$list_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00247',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -2613,6 +2623,8 @@ if ($ACTION == 'manDiaLonly')
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$campaign_cid_override = $row[0];
|
||||
$LISTweb_form_address = $row[1];
|
||||
$LISTweb_form_address_two = $row[2];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4740,7 +4752,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
### Check for List ID override settings
|
||||
if (strlen($list_id)>0)
|
||||
{
|
||||
$stmt = "select xferconf_a_number,xferconf_b_number,xferconf_c_number,xferconf_d_number,xferconf_e_number from vicidial_lists where list_id='$list_id';";
|
||||
$stmt = "select xferconf_a_number,xferconf_b_number,xferconf_c_number,xferconf_d_number,xferconf_e_number,web_form_address,web_form_address_two from vicidial_lists where list_id='$list_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00282',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -4758,6 +4770,10 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
{$VDCL_xferconf_d_number = $row[3];}
|
||||
if (strlen($row[4]) > 0)
|
||||
{$VDCL_xferconf_e_number = $row[4];}
|
||||
if (strlen($row[5]) > 5)
|
||||
{$VDCL_group_web = $row[5];}
|
||||
if (strlen($row[6]) > 5)
|
||||
{$VDCL_group_web_two = $row[6];}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -323,10 +323,11 @@
|
||||
# 101108-0110 - Added ADDMEMBER option for queue_log
|
||||
# 101124-0436 - Added manual dial queue and manual dial call time check features
|
||||
# 101125-2151 - Changed CIDname for 3way calls
|
||||
# 101128-0102 - Added list webform override options
|
||||
#
|
||||
|
||||
$version = '2.4-300';
|
||||
$build = '101125-2151';
|
||||
$version = '2.4-301';
|
||||
$build = '101128-0102';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=69;
|
||||
$one_mysql_log=0;
|
||||
@@ -5925,6 +5926,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
custom_field_names = MDnextResponse_array[45];
|
||||
custom_field_values = MDnextResponse_array[46];
|
||||
custom_field_types = MDnextResponse_array[47];
|
||||
var list_webform = MDnextResponse_array[48];
|
||||
var list_webform_two = MDnextResponse_array[49];
|
||||
|
||||
timer_action = campaign_timer_action;
|
||||
timer_action_message = campaign_timer_action_message;
|
||||
@@ -5950,6 +5953,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
|
||||
VDIC_web_form_address = VICIDiaL_web_form_address
|
||||
VDIC_web_form_address_two = VICIDiaL_web_form_address_two
|
||||
if (list_webform.length > 5) {VDIC_web_form_address=list_webform;}
|
||||
if (list_webform_two.length > 5) {VDIC_web_form_address_two=list_webform_two;}
|
||||
|
||||
var regWFAcustom = new RegExp("^VAR","ig");
|
||||
if (VDIC_web_form_address.match(regWFAcustom))
|
||||
|
||||
+18
-4
@@ -2618,12 +2618,13 @@ else
|
||||
# - Added Auto Trim Hopper which will allow Vicidial to remove excess leads from the hopper (MikeC)
|
||||
# 101115-1355 - Added more options for the concurrent transfer limit campaign setting
|
||||
# 101123-2214 - Added api_manual_dial and manual_dial_call_time_check campaign options
|
||||
# 101127-2232 - Added webform override options to lists
|
||||
#
|
||||
|
||||
# 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
|
||||
|
||||
$admin_version = '2.4-289';
|
||||
$build = '101123-2214';
|
||||
$admin_version = '2.4-290';
|
||||
$build = '101127-2232';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
@@ -4940,6 +4941,11 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<B>Drop Inbound Group Override -</B> If this field is set, this in-group will be used for outbound calls within this list that drop from the outbound campaign instead of the drop in-group set in the campaign detail screen. Default is not set.
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_lists-web_form_address">
|
||||
<BR>
|
||||
<B>Web Form Override -</B> This is the custom address that clicking on the WEB FORM button in VICIDIAL will take you to for calls that come in on this list.
|
||||
|
||||
<BR>
|
||||
<A NAME="vicidial_lists-xferconf_a_dtmf">
|
||||
<BR>
|
||||
@@ -13881,7 +13887,7 @@ if ($ADD==411)
|
||||
|
||||
echo "<br><B>LIST MODIFIED: $list_id</B>\n";
|
||||
|
||||
$stmt="UPDATE vicidial_lists set list_name='$list_name',campaign_id='$campaign_id',active='$active',list_description='$list_description',list_changedate='$SQLdate',reset_time='$reset_time',agent_script_override='$agent_script_override',campaign_cid_override='$campaign_cid_override',am_message_exten_override='$am_message_exten_override',drop_inbound_group_override='$drop_inbound_group_override',xferconf_a_number='$xferconf_a_number',xferconf_b_number='$xferconf_b_number',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number' where list_id='$list_id';";
|
||||
$stmt="UPDATE vicidial_lists set list_name='$list_name',campaign_id='$campaign_id',active='$active',list_description='$list_description',list_changedate='$SQLdate',reset_time='$reset_time',agent_script_override='$agent_script_override',campaign_cid_override='$campaign_cid_override',am_message_exten_override='$am_message_exten_override',drop_inbound_group_override='$drop_inbound_group_override',xferconf_a_number='$xferconf_a_number',xferconf_b_number='$xferconf_b_number',xferconf_c_number='$xferconf_c_number',xferconf_d_number='$xferconf_d_number',xferconf_e_number='$xferconf_e_number',web_form_address='" . mysql_real_escape_string($web_form_address) . "',web_form_address_two='" . mysql_real_escape_string($web_form_address_two) . "' where list_id='$list_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### LOG INSERTION Admin Log Table ###
|
||||
@@ -21162,7 +21168,7 @@ if ($ADD==311)
|
||||
echo "<TABLE><TR><TD>\n";
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
||||
|
||||
$stmt="SELECT list_id,list_name,campaign_id,active,list_description,list_changedate,list_lastcalldate,reset_time,agent_script_override,campaign_cid_override,am_message_exten_override,drop_inbound_group_override,xferconf_a_number,xferconf_b_number,xferconf_c_number,xferconf_d_number,xferconf_e_number from vicidial_lists where list_id='$list_id';";
|
||||
$stmt="SELECT list_id,list_name,campaign_id,active,list_description,list_changedate,list_lastcalldate,reset_time,agent_script_override,campaign_cid_override,am_message_exten_override,drop_inbound_group_override,xferconf_a_number,xferconf_b_number,xferconf_c_number,xferconf_d_number,xferconf_e_number,web_form_address,web_form_address_two from vicidial_lists where list_id='$list_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$list_name = $row[1];
|
||||
@@ -21181,6 +21187,8 @@ if ($ADD==311)
|
||||
$xferconf_c_number = $row[14];
|
||||
$xferconf_d_number = $row[15];
|
||||
$xferconf_e_number = $row[16];
|
||||
$web_form_address = $row[17];
|
||||
$web_form_address_two = $row[18];
|
||||
|
||||
# grab names of global statuses and statuses in the selected campaign
|
||||
$stmt="SELECT status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable from vicidial_statuses order by status";
|
||||
@@ -21290,6 +21298,12 @@ if ($ADD==311)
|
||||
echo "$Dgroups_menu";
|
||||
echo "</select>$NWB#vicidial_lists-drop_inbound_group_override$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=1055 value=\"$web_form_address\">$NWB#vicidial_lists-web_form_address$NWE</td></tr>\n";
|
||||
if ($SSenable_second_webform > 0)
|
||||
{
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Web Form Two: </td><td align=left><input type=text name=web_form_address_two size=70 maxlength=1055 value=\"$web_form_address_two\">$NWB#vicidial_lists-web_form_address$NWE</td></tr>\n";
|
||||
}
|
||||
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Transfer-Conf Number 1 Override: </td><td align=left><input type=text name=xferconf_a_number size=20 maxlength=50 value=\"$xferconf_a_number\">$NWB#vicidial_lists-xferconf_a_dtmf$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Transfer-Conf Number 2 Override: </td><td align=left><input type=text name=xferconf_b_number size=20 maxlength=50 value=\"$xferconf_b_number\">$NWB#vicidial_lists-xferconf_a_dtmf$NWE</td></tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user