Added option to change the background color for agent scripts
Added option to hide the In-Group ID in the agent screen for inbound calls Added option to not populate the In-Group Name in the security_phrase field (the "Show" field) of the vicidial_list table on new inbound leads. git-svn-id: svn://192.168.202.10@2332 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -76,6 +76,13 @@ OTHER CHANGES:
|
||||
|
||||
8. Added campaign option to disable the Manual Dial Override field
|
||||
|
||||
9. Added option to change the background color for agent scripts
|
||||
|
||||
10. Added option to hide the In-Group ID in the agent screen for inbound calls
|
||||
|
||||
11. Added option to not populate the In-Group Name in the security_phrase field
|
||||
(the "Show" field) of the vicidial_list table on new inbound leads.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -194,6 +194,7 @@
|
||||
# 141211-2028 - Added list_id to call url functions
|
||||
# 150404-1011 - Added entry_list_id related DID options
|
||||
# 150410-0637 - Fixed NANQUE bug with VMAIL_NO_INST
|
||||
# 150609-1734 - Added populate_lead_ingroup option
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_inbound.agi';
|
||||
@@ -237,7 +238,6 @@ $SQLdateBEGIN = $SQLdate;
|
||||
$ORIGINAL_call_time = $SQLdate;
|
||||
while (length($CIDdate) > 9) {$CIDdate =~ s/^.//gi;} # 0902235959 changed to 902235959
|
||||
|
||||
|
||||
$BDtarget = ($now_date_epoch - 5);
|
||||
($Bsec,$Bmin,$Bhour,$Bmday,$Bmon,$Byear,$Bwday,$Byday,$Bisdst) = localtime($BDtarget);
|
||||
$Byear = ($Byear + 1900);
|
||||
@@ -719,7 +719,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 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 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;
|
||||
@@ -810,6 +810,7 @@ if ($sthArows > 0)
|
||||
$max_calls_method = $aryA[73];
|
||||
$max_calls_count = $aryA[74];
|
||||
$max_calls_action = $aryA[75];
|
||||
$populate_lead_ingroup = $aryA[76];
|
||||
|
||||
$custom_call_id='';
|
||||
if ($uniqueid_status_display =~ /ENABLED/)
|
||||
@@ -988,8 +989,10 @@ if ($call_handle_method =~ /LOOKUP/)
|
||||
$entry_list_idSQLa=',entry_list_id';
|
||||
$entry_list_idSQLb=",'$entry_list_id'";
|
||||
}
|
||||
$ingroup_insert = $channel_group;
|
||||
if ($populate_lead_ingroup =~ /DISABLED/) {$ingroup_insert='';}
|
||||
### insert a record into the vicidial_list table
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$ingroup_insert','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02007'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
$cbc=0;
|
||||
@@ -1137,8 +1140,10 @@ if ($call_handle_method =~ /LOOKUP/)
|
||||
$entry_list_idSQLa=',entry_list_id';
|
||||
$entry_list_idSQLb=",'$entry_list_id'";
|
||||
}
|
||||
$ingroup_insert = $channel_group;
|
||||
if ($populate_lead_ingroup =~ /DISABLED/) {$ingroup_insert='';}
|
||||
### insert a record into the vicidial_list table
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$ingroup_insert','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02011'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
$cbc=0;
|
||||
@@ -1220,8 +1225,10 @@ else
|
||||
$entry_list_idSQLa=',entry_list_id';
|
||||
$entry_list_idSQLb=",'$entry_list_id'";
|
||||
}
|
||||
$ingroup_insert = $channel_group;
|
||||
if ($populate_lead_ingroup =~ /DISABLED/) {$ingroup_insert='';}
|
||||
### insert a record into the vicidial_list table if no record was found above
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$channel_group','$called_count','-5.00','$VLcomments'$entry_list_idSQLb);";
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$list_id','Y','$phone_code','$phone_number','$ingroup_insert','$called_count','-5.00','$VLcomments'$entry_list_idSQLb);";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02014'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
$cbc=0;
|
||||
@@ -4225,8 +4232,10 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
||||
$entry_list_idSQLa=',entry_list_id';
|
||||
$entry_list_idSQLb=",'$entry_list_id'";
|
||||
}
|
||||
$ingroup_insert = $channel_group;
|
||||
if ($populate_lead_ingroup =~ /DISABLED/) {$ingroup_insert='';}
|
||||
### insert a record into the vicidial_list table
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$wait_time_option_callback_list_id','N','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$wait_time_option_callback_list_id','N','$phone_code','$phone_number','$ingroup_insert','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02089'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
$stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;";
|
||||
@@ -4662,8 +4671,10 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override
|
||||
$entry_list_idSQLa=',entry_list_id';
|
||||
$entry_list_idSQLb=",'$entry_list_id'";
|
||||
}
|
||||
$ingroup_insert = $channel_group;
|
||||
if ($populate_lead_ingroup =~ /DISABLED/) {$ingroup_insert='';}
|
||||
### insert a record into the vicidial_list table
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$hold_time_option_callback_list_id','N','$phone_code','$phone_number','$channel_group','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$stmtA = "INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments$entry_list_idSQLa) values('$SQLdate','$tsSQLdate','INBND','$fronter','$vendor_id','VDCL','$hold_time_option_callback_list_id','N','$phone_code','$phone_number','$ingroup_insert','$called_count','$local_gmt','$VLcomments'$entry_list_idSQLb);";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$dbhP=$dbhA; $mysql_count='02089'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
$stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;";
|
||||
|
||||
@@ -926,7 +926,8 @@ clear_script ENUM('DISABLED','ENABLED') default 'DISABLED',
|
||||
cpd_unknown_action ENUM('DISABLED','DISPO','MESSAGE','CALLMENU','INGROUP') default 'DISABLED',
|
||||
manual_dial_search_filter VARCHAR(50) default 'NONE',
|
||||
web_form_address_three TEXT,
|
||||
manual_dial_override_field ENUM('ENABLED','DISABLED') default 'ENABLED'
|
||||
manual_dial_override_field ENUM('ENABLED','DISABLED') default 'ENABLED',
|
||||
status_display_ingroup ENUM('ENABLED','DISABLED') default 'ENABLED'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -1135,7 +1136,8 @@ max_calls_count SMALLINT(5) default '0',
|
||||
max_calls_action ENUM('DROP','AFTERHOURS','NO_AGENT_NO_QUEUE') default 'NO_AGENT_NO_QUEUE',
|
||||
dial_ingroup_cid VARCHAR(20) default '',
|
||||
group_handling ENUM('PHONE','EMAIL','CHAT') default 'PHONE',
|
||||
web_form_address_three TEXT
|
||||
web_form_address_three TEXT,
|
||||
populate_lead_ingroup ENUM('ENABLED','DISABLED') default 'ENABLED'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_stations (
|
||||
@@ -1247,7 +1249,8 @@ script_name VARCHAR(50),
|
||||
script_comments VARCHAR(255),
|
||||
script_text TEXT,
|
||||
active ENUM('Y','N'),
|
||||
user_group VARCHAR(20) default '---ALL---'
|
||||
user_group VARCHAR(20) default '---ALL---',
|
||||
script_color VARCHAR(7) default 'white'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE phone_favorites (
|
||||
@@ -3494,4 +3497,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='1413',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1414',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -156,3 +156,11 @@ UPDATE system_settings SET db_schema_version='1412',db_schema_update_date=NOW()
|
||||
ALTER TABLE vicidial_campaigns ADD manual_dial_override_field ENUM('ENABLED','DISABLED') default 'ENABLED';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1413',db_schema_update_date=NOW() where db_schema_version < 1413;
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD status_display_ingroup ENUM('ENABLED','DISABLED') default 'ENABLED';
|
||||
|
||||
ALTER TABLE vicidial_inbound_groups ADD populate_lead_ingroup ENUM('ENABLED','DISABLED') default 'ENABLED';
|
||||
|
||||
ALTER TABLE vicidial_scripts ADD script_color VARCHAR(7) default 'white';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1414',db_schema_update_date=NOW() where db_schema_version < 1414;
|
||||
|
||||
+112
-10
@@ -378,10 +378,11 @@
|
||||
# 150428-1722 - Added web form three
|
||||
# 150512-0616 - Fix for non-latin customer data
|
||||
# 150608-1051 - Added alt and addr3 options for manual dial search and filtering
|
||||
# 150609-1400 - Added script color
|
||||
#
|
||||
|
||||
$version = '2.12-273';
|
||||
$build = '150608-1051';
|
||||
$version = '2.12-274';
|
||||
$build = '150609-1400';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=616;
|
||||
$one_mysql_log=0;
|
||||
@@ -3913,6 +3914,16 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
}
|
||||
##### END if NOT preview dialing, send the call #####
|
||||
|
||||
$stmt = "SELECT campaign_script from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VC_script_ct = mysqli_num_rows($rslt);
|
||||
if ($VC_script_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_campaign_script = $row[0];
|
||||
}
|
||||
|
||||
##### find if script contains recording fields
|
||||
$stmt="SELECT count(*) FROM vicidial_lists WHERE list_id='$list_id' and agent_script_override!='' and agent_script_override IS NOT NULL and agent_script_override!='NONE';";
|
||||
@@ -3937,6 +3948,16 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$script_recording_delay = $row[0];
|
||||
}
|
||||
$stmt = "SELECT agent_script_override from vicidial_lists where list_id='$list_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VC_script_ct = mysqli_num_rows($rslt);
|
||||
if ($VC_script_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_campaign_script = $row[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4031,6 +4052,21 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
}
|
||||
}
|
||||
|
||||
$VDCL_ingroup_script_color='';
|
||||
if ( (strlen($VDCL_campaign_script)>1) and ($VDCL_campaign_script != 'NONE') )
|
||||
{
|
||||
$stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_campaign_script';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIG_scrptcolor_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIG_scrptcolor_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_ingroup_script_color = $row[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$comments = preg_replace("/\r/i",'',$comments);
|
||||
$comments = preg_replace("/\n/i",'!N',$comments);
|
||||
@@ -4090,6 +4126,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$LeaD_InfO .= $ACcomments . "\n";
|
||||
$LeaD_InfO .= $list_name . "\n";
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
}
|
||||
@@ -4219,7 +4256,7 @@ if ($ACTION == 'manDiaLonly')
|
||||
{
|
||||
$channel_live=0;
|
||||
echo " CALL NOT PLACED\n";
|
||||
echo _QXZ("Conf Exten %1s or campaign %2s or ext_context %3s is not valid",0,'',$conf_exten,$campaign,$ext_context)."\n";
|
||||
echo _QXZ("Conf Exten %1s or campaign %2s or ext_context %3s or phone_number %4s or lead_id %5s is not valid",0,'',$conf_exten,$campaign,$ext_context,$phone_number,$lead_id)."\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -6710,6 +6747,21 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_timer_action_destination = $row[15];
|
||||
}
|
||||
|
||||
$VDCL_ingroup_script_color='';
|
||||
if ( (strlen($VDCL_campaign_script)>1) and ($VDCL_campaign_script != 'NONE') )
|
||||
{
|
||||
$stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_campaign_script';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIG_scrptcolor_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIG_scrptcolor_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_ingroup_script_color = $row[0];
|
||||
}
|
||||
}
|
||||
|
||||
$VDCL_group_web='';
|
||||
$VDCL_group_name='';
|
||||
### Check for List ID override settings
|
||||
@@ -6744,7 +6796,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
}
|
||||
}
|
||||
|
||||
echo "$VDCL_group_web|$VDCL_group_name||||$VDCL_campaign_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|X|X||||$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number||||$VDCL_timer_action_destination||||||$VDCL_group_web_three|\n|\n";
|
||||
echo "$VDCL_group_web|$VDCL_group_name||||$VDCL_campaign_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|X|X||||$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number||||$VDCL_timer_action_destination||||||$VDCL_group_web_three|$VDCL_ingroup_script_color|\n|\n";
|
||||
|
||||
if (preg_match('/X/',$dialed_label))
|
||||
{
|
||||
@@ -7012,6 +7064,21 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
}
|
||||
}
|
||||
|
||||
$VDCL_ingroup_script_color='';
|
||||
if ( (strlen($VDCL_ingroup_script)>1) and ($VDCL_ingroup_script != 'NONE') )
|
||||
{
|
||||
$stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIG_scrptcolor_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIG_scrptcolor_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_ingroup_script_color = $row[0];
|
||||
}
|
||||
}
|
||||
|
||||
### Check for List ID override settings
|
||||
if (strlen($list_id)>0)
|
||||
{
|
||||
@@ -7074,8 +7141,8 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
}
|
||||
|
||||
### if web form is set then send on to vicidial.php for override of WEB_FORM address
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|\n";}
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";}
|
||||
|
||||
$stmt = "SELECT full_name from vicidial_users where user='$tsr';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -7218,6 +7285,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$LeaD_InfO .= $ACcomments . "\n";
|
||||
$LeaD_InfO .= $list_name . "\n";
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -7991,6 +8059,21 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
}
|
||||
}
|
||||
|
||||
$VDCL_ingroup_script_color='';
|
||||
if ( (strlen($VDCL_ingroup_script)>1) and ($VDCL_ingroup_script != 'NONE') )
|
||||
{
|
||||
$stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIG_scrptcolor_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIG_scrptcolor_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_ingroup_script_color = $row[0];
|
||||
}
|
||||
}
|
||||
|
||||
$VDCL_caller_id_number='';
|
||||
if (strlen($VDCL_default_group_alias)>1)
|
||||
{
|
||||
@@ -8068,8 +8151,8 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
}
|
||||
|
||||
### if web form is set then send on to vicidial.php for override of WEB_FORM address
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|\n";}
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";}
|
||||
|
||||
$stmt = "SELECT full_name from vicidial_users where user='$tsr';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -8180,6 +8263,8 @@ if ($ACTION == 'VDADcheckINCOMINGemail')
|
||||
$LeaD_InfO .= $custom_field_values . "\n";
|
||||
$LeaD_InfO .= $custom_field_types . "\n";
|
||||
$LeaD_InfO .= $list_name . "\n";
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -8965,6 +9050,22 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$Ctype = 'I';
|
||||
}
|
||||
|
||||
$VDCL_ingroup_script_color='';
|
||||
if ( (strlen($VDCL_ingroup_script)>1) and ($VDCL_ingroup_script != 'NONE') )
|
||||
{
|
||||
$stmt = "SELECT script_color from vicidial_scripts where script_id='$VDCL_ingroup_script';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIG_scrptcolor_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIG_scrptcolor_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_ingroup_script_color = $row[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
### Check for List ID override settings
|
||||
if (strlen($list_id)>0)
|
||||
{
|
||||
@@ -9027,8 +9128,8 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
}
|
||||
|
||||
### if web form is set then send on to vicidial.php for override of WEB_FORM address
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|\n";}
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|\n";}
|
||||
|
||||
$stmt = "SELECT full_name from vicidial_users where user='$tsr';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -9182,6 +9283,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$LeaD_InfO .= $ACcomments . "\n";
|
||||
$LeaD_InfO .= $list_name . "\n";
|
||||
$LeaD_InfO .= $LISTweb_form_address_three . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
|
||||
@@ -346,11 +346,12 @@ $list_description = $row[1];
|
||||
if (strlen($script_override)>1)
|
||||
{$call_script = $script_override;}
|
||||
|
||||
$stmt="SELECT script_name,script_text from vicidial_scripts where script_id='$call_script';";
|
||||
$stmt="SELECT script_name,script_text,script_color from vicidial_scripts where script_id='$call_script';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$script_name = $row[0];
|
||||
$script_text = stripslashes($row[1]);
|
||||
$script_color = $row[2];
|
||||
|
||||
if (preg_match("/iframe\ssrc/i",$script_text))
|
||||
{
|
||||
|
||||
+47
-7
@@ -487,10 +487,11 @@
|
||||
# 150428-1735 - Added web form three
|
||||
# 150522-1254 - Fixed issue #859
|
||||
# 150608-1126 - Added campaign option to disable the manual dial override field
|
||||
# 150609-1736 - Added status_display_ingroup option
|
||||
#
|
||||
|
||||
$version = '2.12-459c';
|
||||
$build = '150608-1126';
|
||||
$version = '2.12-460c';
|
||||
$build = '150609-1736';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=85;
|
||||
$one_mysql_log=0;
|
||||
@@ -1594,7 +1595,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 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 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";}
|
||||
@@ -1727,6 +1728,7 @@ else
|
||||
$manual_dial_search_filter =$row[125];
|
||||
$web_form_address_three = $row[126];
|
||||
$manual_dial_override_field=$row[127];
|
||||
$status_display_ingroup = $row[128];
|
||||
|
||||
if ( ($callback_active_limit_override == 'Y') and ($callback_active_limit > 0) )
|
||||
{
|
||||
@@ -3726,6 +3728,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var VICIDiaL_web_form_address_three = '<?php echo $VICIDiaL_web_form_address_three ?>';
|
||||
var VDIC_web_form_address_three = '<?php echo $VICIDiaL_web_form_address_three ?>';
|
||||
var CalL_ScripT_id = '';
|
||||
var CalL_ScripT_color = '';
|
||||
var CalL_AutO_LauncH = '';
|
||||
var panel_bgcolor = '<?php echo $MAIN_COLOR ?>';
|
||||
var CusTCB_bgcolor = '#FFFF66';
|
||||
@@ -4125,6 +4128,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var parked_hangup='0';
|
||||
var api_transferconf_ID = '';
|
||||
var manual_dial_override_field='<?php echo $manual_dial_override_field ?>';
|
||||
var status_display_ingroup='<?php echo $status_display_ingroup ?>';
|
||||
var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><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');\"><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\" />";
|
||||
@@ -4774,6 +4778,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
agent_dialed_number='';
|
||||
agent_dialed_type='';
|
||||
CalL_ScripT_id='';
|
||||
CalL_ScripT_color='';
|
||||
call_variables='';
|
||||
xfer_agent_selected=0;
|
||||
}
|
||||
@@ -6823,6 +6828,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
xfercallid = change_data[33];
|
||||
if (change_data[34].length > 5)
|
||||
{VDIC_web_form_address_three = change_data[34];}
|
||||
if (change_data[35].length > 1)
|
||||
{CalL_ScripT_color = change_data[35];}
|
||||
|
||||
document.vicidial_form.lead_id.value = VDIC_data_VDAC[0];
|
||||
LeaDPreVDispO = change_array[6];
|
||||
@@ -6900,6 +6907,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
// Add here for AutoDial (VDADcheckINCOMING in vdc_db_query)
|
||||
|
||||
document.vicidial_form.list_name.value = change_array[55];
|
||||
// list webform3 - 56
|
||||
// script color - 57
|
||||
|
||||
if (hide_gender > 0)
|
||||
{
|
||||
@@ -7053,6 +7062,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
document.getElementById("WebFormSpanThree").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
|
||||
}
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
@@ -8075,6 +8086,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
|
||||
document.vicidial_form.list_name.value = MDnextResponse_array[53];
|
||||
var list_webform_three = MDnextResponse_array[54];
|
||||
CalL_ScripT_color = MDnextResponse_array[55];
|
||||
|
||||
timer_action = campaign_timer_action;
|
||||
timer_action_message = campaign_timer_action_message;
|
||||
@@ -8176,6 +8188,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
showDiv('post_phone_time_diff_span');
|
||||
}
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
|
||||
if (document.vicidial_form.LeadPreview.checked==false)
|
||||
{
|
||||
reselect_preview_dial = 0;
|
||||
@@ -8273,6 +8288,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
agent_dialed_number='';
|
||||
agent_dialed_type='';
|
||||
CalL_ScripT_id='';
|
||||
CalL_ScripT_color='';
|
||||
xfer_agent_selected=0;
|
||||
}
|
||||
}
|
||||
@@ -8420,6 +8436,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
agent_dialed_number='';
|
||||
agent_dialed_type='';
|
||||
CalL_ScripT_id='';
|
||||
CalL_ScripT_color='';
|
||||
dial_next_failed=0;
|
||||
xfer_agent_selected=0;
|
||||
RefresHScript('CLEAR');
|
||||
@@ -8583,6 +8600,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') )
|
||||
{all_record = 'YES';}
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
@@ -8648,6 +8667,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
agent_dialed_number='';
|
||||
agent_dialed_type='';
|
||||
CalL_ScripT_id='';
|
||||
CalL_ScripT_color='';
|
||||
xfer_agent_selected=0;
|
||||
}
|
||||
}
|
||||
@@ -9046,6 +9066,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
xfercallid = VDIC_data_VDIG[33];
|
||||
if (VDIC_data_VDIG[34].length > 5)
|
||||
{VDIC_web_form_address_three = VDIC_data_VDIG[34];}
|
||||
if (VDIC_data_VDIG[35].length > 1)
|
||||
{CalL_ScripT_color = VDIC_data_VDIG[35];}
|
||||
|
||||
var VDIC_data_VDFR=check_VDIC_array[3].split("|");
|
||||
if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') )
|
||||
@@ -9156,6 +9178,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
// Add here for AutoDial (VDADcheckINCOMING in vdc_db_query)
|
||||
|
||||
document.vicidial_form.list_name.value = check_VDIC_array[55];
|
||||
// list webform3 - 56
|
||||
CalL_ScripT_color = check_VDIC_array[57];
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
|
||||
if (hide_gender > 0)
|
||||
{
|
||||
@@ -9234,7 +9261,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
if (status_display_LEADID > 0) {status_display_content = status_display_content + " <?php echo _QXZ("Lead:"); ?> " + document.vicidial_form.lead_id.value;}
|
||||
if (status_display_LISTID > 0) {status_display_content = status_display_content + " <?php echo _QXZ("List:"); ?> " + document.vicidial_form.list_id.value;}
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + " " + custom_call_id + " Group- " + VDIC_data_VDIG[1] + " " + VDIC_fronter + " " + status_display_content;
|
||||
var temp_status_display_ingroup = " <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1];
|
||||
if (status_display_ingroup == 'DISABLED')
|
||||
{temp_status_display_ingroup='';}
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + " " + custom_call_id + " " + temp_status_display_ingroup + " " + VDIC_fronter + " " + status_display_content;
|
||||
}
|
||||
|
||||
document.getElementById("ParkControl").innerHTML ="<a href=\"#\" onclick=\"mainxfer_send_redirect('ParK','" + lastcustchannel + "','" + lastcustserverip + "');return false;\"><img src=\"./images/<?php echo _QXZ("vdc_LB_parkcall.gif"); ?>\" border=\"0\" alt=\"Park Call\" /></a>";
|
||||
@@ -9627,6 +9658,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
xfercallid = VDIC_data_VDIG[33];
|
||||
if (VDIC_data_VDIG[34].length > 5)
|
||||
{VDIC_web_form_address_three = VDIC_data_VDIG[34];}
|
||||
if (VDIC_data_VDIG[35].length > 1)
|
||||
{CalL_ScripT_color = VDIC_data_VDIG[35];}
|
||||
|
||||
var VDIC_data_VDFR=check_VDIC_array[3].split("|");
|
||||
if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') )
|
||||
@@ -9719,7 +9752,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
custom_field_values = check_VDIC_array[49];
|
||||
custom_field_types = check_VDIC_array[50];
|
||||
document.vicidial_form.list_name.value = check_VDIC_array[51];
|
||||
|
||||
// list webform3 - 52
|
||||
// script color - 53
|
||||
|
||||
if (hide_gender > 0)
|
||||
{
|
||||
@@ -9798,7 +9832,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
if (status_display_LEADID > 0) {status_display_content = status_display_content + " <?php echo _QXZ("Lead:"); ?> " + document.vicidial_form.lead_id.value;}
|
||||
if (status_display_LISTID > 0) {status_display_content = status_display_content + " <?php echo _QXZ("List:"); ?> " + document.vicidial_form.list_id.value;}
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + " " + custom_call_id + " <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1] + " " + VDIC_fronter + " " + status_display_content;
|
||||
var temp_status_display_ingroup = " <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1];
|
||||
if (status_display_ingroup == 'DISABLED')
|
||||
{temp_status_display_ingroup='';}
|
||||
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + " " + custom_call_id + " " + temp_status_display_ingroup + " " + VDIC_fronter + " " + status_display_content;
|
||||
}
|
||||
|
||||
document.getElementById("ParkControl").innerHTML ="<a href=\"#\" onclick=\"mainxfer_send_redirect('ParK','" + lastcustchannel + "','" + lastcustserverip + "');return false;\"><img src=\"./images/<?php echo _QXZ("vdc_LB_parkcall.gif"); ?>\" border=\"0\" alt=\"Park Call\" /></a>";
|
||||
@@ -9965,6 +10003,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') )
|
||||
{all_record = 'YES';}
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
||||
{
|
||||
var SCRIPT_web_form = 'http://127.0.0.1/testing.php';
|
||||
@@ -15626,7 +15666,7 @@ function phone_number_format(formatphone) {
|
||||
div.scroll_calllog {height: <?php echo $CQheight ?>px; width: <?php echo $MNwidth ?>px; overflow: scroll;}
|
||||
div.scroll_callback {height: 300px; width: <?php echo $MNwidth ?>px; overflow: scroll;}
|
||||
div.scroll_callback_auto {height: 300px; width: <?php echo $MNwidth ?>px; overflow: auto;}
|
||||
div.scroll_script {height: <?php echo $SSheight ?>px; width: <?php echo $SDwidth ?>px; background: #FFF5EC; overflow: auto; font-size: 12px; font-family: sans-serif;}
|
||||
div.scroll_script {height: <?php echo $SSheight ?>px; width: <?php echo $SDwidth ?>px; background: transparent; overflow: auto; font-size: 12px; font-family: sans-serif;}
|
||||
div.noscroll_script {height: <?php echo $SSheight ?>px; width: <?php echo $SDwidth ?>px; background: #FFF5EC; overflow: hidden; font-size: 12px; font-family: sans-serif;}
|
||||
-->
|
||||
</style>
|
||||
|
||||
+39
-16
File diff suppressed because one or more lines are too long
+17
-1
@@ -48,6 +48,7 @@
|
||||
# 150513-2310 - Added POP3 Auth Mode
|
||||
# 150608-1154 - Added manual dial override field entry and updated manual dial search and filter entries
|
||||
# 150609-1204 - Added chat-related entries
|
||||
# 150609-1231 - Added new agent screen status display option entries
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -1520,6 +1521,11 @@ if ($SSoutbound_autodial_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Status Display Fields"); ?> -</B><?php echo _QXZ("You can select which variables for calls will be displayed in the status line of the agent screen. CALLID will display the 20 character unique call ID, LEADID will display the system lead ID, LISTID will display the list ID, NAME will display the customer name. Default is CALLID."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-status_display_ingroup">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Status Display In-Group"); ?> -</B><?php echo _QXZ("This option if set to ENABLED will display the In-Group name in the agent screen when an inbound call is sent to the agent. Default is ENABLED."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-use_internal_dnc">
|
||||
<BR>
|
||||
@@ -2615,6 +2621,11 @@ if ($SSqc_features_active > 0)
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Uniqueid Status Prefix"); ?> -</B><?php echo _QXZ("If PREFIX option is selected above then this is the value of that prefix. Default is empty."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="inbound_groups-populate_lead_ingroup">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Populate Lead In-Group"); ?> -</B><?php echo _QXZ("If this option is ENABLED, then when a new lead is created when going into an In-Group, the security_phrase or Show field will be populated with the Group ID of the In-Group. Default is ENABLED."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="inbound_groups-download_chat_files">
|
||||
<BR>
|
||||
@@ -3284,7 +3295,12 @@ if ($SSqc_features_active > 0)
|
||||
<BR>
|
||||
<A NAME="scripts-active">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Active"); ?> -</B><?php echo _QXZ("This determines whether this script can be selected to be used by a campaign.");
|
||||
<B><?php echo _QXZ("Active"); ?> -</B><?php echo _QXZ("This determines whether this script can be selected to be used by a campaign."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="scripts-script_color">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Script Color"); ?> -</B><?php echo _QXZ("This determines the background color of the script as displayed in the agent screen. default is white.");
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user