|
|
|
@@ -292,8 +292,8 @@ if (isset($_GET["drop_call_seconds"])) {$drop_call_seconds=$_GET["drop_call_seco
|
|
|
|
|
elseif (isset($_POST["drop_call_seconds"])) {$drop_call_seconds=$_POST["drop_call_seconds"];}
|
|
|
|
|
if (isset($_GET["drop_exten"])) {$drop_exten=$_GET["drop_exten"];}
|
|
|
|
|
elseif (isset($_POST["drop_exten"])) {$drop_exten=$_POST["drop_exten"];}
|
|
|
|
|
if (isset($_GET["drop_message"])) {$drop_message=$_GET["drop_message"];}
|
|
|
|
|
elseif (isset($_POST["drop_message"])) {$drop_message=$_POST["drop_message"];}
|
|
|
|
|
if (isset($_GET["drop_action"])) {$drop_action=$_GET["drop_action"];}
|
|
|
|
|
elseif (isset($_POST["drop_action"])) {$drop_action=$_POST["drop_action"];}
|
|
|
|
|
if (isset($_GET["dtmf_send_extension"])) {$dtmf_send_extension=$_GET["dtmf_send_extension"];}
|
|
|
|
|
elseif (isset($_POST["dtmf_send_extension"])) {$dtmf_send_extension=$_POST["dtmf_send_extension"];}
|
|
|
|
|
if (isset($_GET["enable_fast_refresh"])) {$enable_fast_refresh=$_GET["enable_fast_refresh"];}
|
|
|
|
@@ -428,8 +428,8 @@ if (isset($_GET["reset_list"])) {$reset_list=$_GET["reset_list"];}
|
|
|
|
|
elseif (isset($_POST["reset_list"])) {$reset_list=$_POST["reset_list"];}
|
|
|
|
|
if (isset($_GET["safe_harbor_exten"])) {$safe_harbor_exten=$_GET["safe_harbor_exten"];}
|
|
|
|
|
elseif (isset($_POST["safe_harbor_exten"])) {$safe_harbor_exten=$_POST["safe_harbor_exten"];}
|
|
|
|
|
if (isset($_GET["safe_harbor_message"])) {$safe_harbor_message=$_GET["safe_harbor_message"];}
|
|
|
|
|
elseif (isset($_POST["safe_harbor_message"])) {$safe_harbor_message=$_POST["safe_harbor_message"];}
|
|
|
|
|
if (isset($_GET["drop_action"])) {$drop_action=$_GET["drop_action"];}
|
|
|
|
|
elseif (isset($_POST["drop_action"])) {$drop_action=$_POST["drop_action"];}
|
|
|
|
|
if (isset($_GET["scheduled_callbacks"])) {$scheduled_callbacks=$_GET["scheduled_callbacks"];}
|
|
|
|
|
elseif (isset($_POST["scheduled_callbacks"])) {$scheduled_callbacks=$_POST["scheduled_callbacks"];}
|
|
|
|
|
if (isset($_GET["script_comments"])) {$script_comments=$_GET["script_comments"];}
|
|
|
|
@@ -685,6 +685,9 @@ if (isset($_GET["qc_groups"])) {$qc_groups=$_GET["qc_groups"];}
|
|
|
|
|
elseif (isset($_POST["qc_groups"])) {$qc_groups=$_POST["qc_groups"];}
|
|
|
|
|
if (isset($_GET["queue_priority"])) {$queue_priority=$_GET["queue_priority"];}
|
|
|
|
|
elseif (isset($_POST["queue_priority"])) {$queue_priority=$_POST["queue_priority"];}
|
|
|
|
|
if (isset($_GET["drop_inbound_group"])) {$drop_inbound_group=$_GET["drop_inbound_group"];}
|
|
|
|
|
elseif (isset($_POST["drop_inbound_group"])) {$drop_inbound_group=$_POST["drop_inbound_group"];}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
|
|
|
@@ -766,7 +769,6 @@ $delete_users = ereg_replace("[^0-9]","",$delete_users);
|
|
|
|
|
$dial_timeout = ereg_replace("[^0-9]","",$dial_timeout);
|
|
|
|
|
$dialplan_number = ereg_replace("[^0-9]","",$dialplan_number);
|
|
|
|
|
$drop_call_seconds = ereg_replace("[^0-9]","",$drop_call_seconds);
|
|
|
|
|
$drop_exten = ereg_replace("[^0-9]","",$drop_exten);
|
|
|
|
|
$enable_fast_refresh = ereg_replace("[^0-9]","",$enable_fast_refresh);
|
|
|
|
|
$enable_persistant_mysql = ereg_replace("[^0-9]","",$enable_persistant_mysql);
|
|
|
|
|
$fast_refresh_rate = ereg_replace("[^0-9]","",$fast_refresh_rate);
|
|
|
|
@@ -798,7 +800,6 @@ $phone_number = ereg_replace("[^0-9]","",$phone_number);
|
|
|
|
|
$QUEUE_ACTION_enabled = ereg_replace("[^0-9]","",$QUEUE_ACTION_enabled);
|
|
|
|
|
$recording_exten = ereg_replace("[^0-9]","",$recording_exten);
|
|
|
|
|
$remote_agent_id = ereg_replace("[^0-9]","",$remote_agent_id);
|
|
|
|
|
$safe_harbor_exten = ereg_replace("[^0-9]","",$safe_harbor_exten);
|
|
|
|
|
$telnet_port = ereg_replace("[^0-9]","",$telnet_port);
|
|
|
|
|
$updater_check_enabled = ereg_replace("[^0-9]","",$updater_check_enabled);
|
|
|
|
|
$user_level = ereg_replace("[^0-9]","",$user_level);
|
|
|
|
@@ -840,11 +841,9 @@ $allow_closers = ereg_replace("[^NY]","",$allow_closers);
|
|
|
|
|
$reset_hopper = ereg_replace("[^NY]","",$reset_hopper);
|
|
|
|
|
$amd_send_to_vmx = ereg_replace("[^NY]","",$amd_send_to_vmx);
|
|
|
|
|
$alt_number_dialing = ereg_replace("[^NY]","",$alt_number_dialing);
|
|
|
|
|
$safe_harbor_message = ereg_replace("[^NY]","",$safe_harbor_message);
|
|
|
|
|
$selectable = ereg_replace("[^NY]","",$selectable);
|
|
|
|
|
$reset_list = ereg_replace("[^NY]","",$reset_list);
|
|
|
|
|
$fronter_display = ereg_replace("[^NY]","",$fronter_display);
|
|
|
|
|
$drop_message = ereg_replace("[^NY]","",$drop_message);
|
|
|
|
|
$use_internal_dnc = ereg_replace("[^NY]","",$use_internal_dnc);
|
|
|
|
|
$omit_phone_code = ereg_replace("[^NY]","",$omit_phone_code);
|
|
|
|
|
$available_only_ratio_tally = ereg_replace("[^NY]","",$available_only_ratio_tally);
|
|
|
|
@@ -962,6 +961,10 @@ $source_campaign_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_campaign_id);
|
|
|
|
|
$source_user_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_user_id);
|
|
|
|
|
$source_group_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_group_id);
|
|
|
|
|
$default_xfer_group = ereg_replace("[^-\_0-9a-zA-Z]","",$default_xfer_group);
|
|
|
|
|
$drop_exten = ereg_replace("[^-\_0-9a-zA-Z]","",$drop_exten);
|
|
|
|
|
$safe_harbor_exten = ereg_replace("[^-\_0-9a-zA-Z]","",$safe_harbor_exten);
|
|
|
|
|
$drop_action = ereg_replace("[^-\_0-9a-zA-Z]","",$drop_action);
|
|
|
|
|
$drop_inbound_group = ereg_replace("[^-\_0-9a-zA-Z]","",$drop_inbound_group);
|
|
|
|
|
|
|
|
|
|
### ALPHA-NUMERIC and spaces
|
|
|
|
|
$lead_order = ereg_replace("[^ 0-9a-zA-Z]","",$lead_order);
|
|
|
|
@@ -1167,11 +1170,12 @@ $list_mix_container = ereg_replace(";","",$list_mix_container);
|
|
|
|
|
# 80112-0242 - Added more options for lead order
|
|
|
|
|
# 80211-1901 - Added DB Schema Version to system settings display
|
|
|
|
|
# 80224-1334 - Added Queue Priority to in-groups and campaigns
|
|
|
|
|
# 80302-0232 - added drop_action and transfer to in-group for both in-groups and outbound
|
|
|
|
|
#
|
|
|
|
|
# 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.0.5-122';
|
|
|
|
|
$build = '80224-1334';
|
|
|
|
|
$admin_version = '2.0.5-123';
|
|
|
|
|
$build = '80302-0232';
|
|
|
|
|
|
|
|
|
|
$STARTtime = date("U");
|
|
|
|
|
$SQLdate = date("Y-m-d H:i:s");
|
|
|
|
@@ -2443,20 +2447,25 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
|
|
|
|
|
<B>Drop Call Seconds -</B> The number of seconds from the time the customer line is picked up until the call is considered a DROP, only applies to outbound calls.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_campaigns-voicemail_ext">
|
|
|
|
|
<A NAME="vicidial_campaigns-drop_action">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Voicemail -</B> If defined, calls that would normally DROP would instead be directed to this voicemail box to hear and leave a message.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_campaigns-safe_harbor_message">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Safe Harbor Message -</B> If set to Y will play a message to customer after the Drop Call Seconds timeout is reached without being transferred to an agent. This setting will override sending to a voicemail box if this is set to Y.
|
|
|
|
|
<B>Drop Action -</B> This menu allows you to choose what happens to a call when it has been waiting for longer than what is set in the Drop Call Seconds field. HANGUP will simply hang up the call, MESSAGE will send the call the Drop Exten that you have defined below, VOICEMAIL will send the call to the voicemail box that you have defined below and IN_GROUP will send the call to the Inbound Group that is defined below||
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_campaigns-safe_harbor_exten">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Safe Harbor Exten -</B> This is the dial plan extension that the desired Safe Harbor audio file is located at on your server.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_campaigns-voicemail_ext">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Voicemail -</B> If defined, calls that would normally DROP would instead be directed to this voicemail box to hear and leave a message.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_campaigns-drop_inbound_group">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Drop Transfer Group -</B> If Drop Action is set to IN_GROUP, the call will be sent to this inbound group if it reaches Drop Call Seconds.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_campaigns-wrapup_seconds">
|
|
|
|
|
<BR>
|
|
|
|
@@ -2642,22 +2651,27 @@ echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_inbound_groups-drop_call_seconds">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Drop Call Seconds -</B> The number of seconds from the time the customer line is picked up until the call is considered a DROP, only applies to outbound calls.
|
|
|
|
|
<B>Drop Call Seconds -</B> The number of seconds a call will stay in queue before being considered a DROP.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_inbound_groups-voicemail_ext">
|
|
|
|
|
<A NAME="vicidial_inbound_groups-drop_action">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Voicemail -</B> If defined, calls that would normally DROP would instead be directed to this voicemail box to hear and leave a message.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_inbound_groups-drop_message">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Drop Message -</B> If set to Y will play a message to customer after the Drop Call Seconds timeout is reached without being transferred to an agent. This setting will override sending to a voicemail box if this is set to Y.
|
|
|
|
|
<B>Drop Action -</B> This menu allows you to choose what happens to a call when it has been waiting for longer than what is set in the Drop Call Seconds field. HANGUP will simply hang up the call, MESSAGE will send the call the Drop Exten that you have defined below, VOICEMAIL will send the call to the voicemail box that you have defined below and IN_GROUP will send the call to the Inbound Group that is defined below.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_inbound_groups-drop_exten">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Drop Exten -</B> This is the dial plan extension that the desired Dropped call audio file is located at on your server.
|
|
|
|
|
<B>Drop Exten -</B> If Drop Action is set to MESSAGE, this is the dial plan extension that the call will be sent to if it reaches Drop Call Seconds.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_inbound_groups-voicemail_ext">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Voicemail -</B> If Drop Action is set to VOICEMAIL, the call DROP would instead be directed to this voicemail box to hear and leave a message.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_inbound_groups-drop_inbound_group">
|
|
|
|
|
<BR>
|
|
|
|
|
<B>Drop Transfer Group -</B> If Drop Action is set to IN_GROUP, the call will be sent to this inbound group if it reaches Drop Call Seconds.
|
|
|
|
|
|
|
|
|
|
<BR>
|
|
|
|
|
<A NAME="vicidial_inbound_groups-call_time_id">
|
|
|
|
@@ -5056,7 +5070,7 @@ if ($ADD==20)
|
|
|
|
|
{
|
|
|
|
|
echo "<br><B>CAMPAIGN COPIED: $campaign_id copied from $source_campaign_id</B>\n";
|
|
|
|
|
|
|
|
|
|
$stmt="INSERT INTO vicidial_campaigns (campaign_name,campaign_id,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,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,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,safe_harbor_message,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group) SELECT \"$campaign_name\",\"$campaign_id\",\"N\",dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,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,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,safe_harbor_message,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,\"DISABLED\",campaign_allow_inbound,manual_dial_list_id,default_xfer_group from vicidial_campaigns where campaign_id='$source_campaign_id';";
|
|
|
|
|
$stmt="INSERT INTO vicidial_campaigns (campaign_name,campaign_id,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,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,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group) SELECT \"$campaign_name\",\"$campaign_id\",\"N\",dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,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,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,\"DISABLED\",campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group from vicidial_campaigns where campaign_id='$source_campaign_id';";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
|
|
|
|
|
|
$stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$campaign_id');";
|
|
|
|
@@ -5473,7 +5487,7 @@ if ($ADD==2011)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_message,drop_exten,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,default_xfer_group) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_message,drop_exten,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,default_xfer_group from vicidial_inbound_groups where group_id=\"$source_group_id\";";
|
|
|
|
|
$stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,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,default_xfer_group,queue_priority,drop_inbound_group) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,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,default_xfer_group,queue_priority,drop_inbound_group from vicidial_inbound_groups where group_id=\"$source_group_id\";";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
|
|
|
|
|
|
echo "<br><B>GROUP ADDED: $group_id</B>\n";
|
|
|
|
@@ -6178,7 +6192,7 @@ if ($ADD==41)
|
|
|
|
|
if ( (!ereg("DISABLED",$list_order_mix)) and ($hopper_level < 100) )
|
|
|
|
|
{$hopper_level='100';}
|
|
|
|
|
|
|
|
|
|
$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_server_time='$adaptive_latest_server_time',adaptive_intensity='$adaptive_intensity',adaptive_dl_diff_target='$adaptive_dl_diff_target',concurrent_transfers='$concurrent_transfers',auto_alt_dial='$auto_alt_dial',agent_pause_codes_active='$agent_pause_codes_active',campaign_description='$campaign_description',campaign_changedate='$SQLdate',campaign_stats_refresh='$campaign_stats_refresh',disable_alter_custdata='$disable_alter_custdata',no_hopper_leads_logins='$no_hopper_leads_logins',list_order_mix='$list_order_mix',campaign_allow_inbound='$campaign_allow_inbound',manual_dial_list_id='$manual_dial_list_id',default_xfer_group='$default_xfer_group',xfer_groups='$XFERgroups_value',queue_priority='$queue_priority' 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',drop_action='$drop_action',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_server_time='$adaptive_latest_server_time',adaptive_intensity='$adaptive_intensity',adaptive_dl_diff_target='$adaptive_dl_diff_target',concurrent_transfers='$concurrent_transfers',auto_alt_dial='$auto_alt_dial',agent_pause_codes_active='$agent_pause_codes_active',campaign_description='$campaign_description',campaign_changedate='$SQLdate',campaign_stats_refresh='$campaign_stats_refresh',disable_alter_custdata='$disable_alter_custdata',no_hopper_leads_logins='$no_hopper_leads_logins',list_order_mix='$list_order_mix',campaign_allow_inbound='$campaign_allow_inbound',manual_dial_list_id='$manual_dial_list_id',default_xfer_group='$default_xfer_group',xfer_groups='$XFERgroups_value',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group' where campaign_id='$campaign_id';";
|
|
|
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
|
|
|
|
|
|
if ($reset_hopper == 'Y')
|
|
|
|
@@ -6827,7 +6841,7 @@ if ($ADD==4111)
|
|
|
|
|
{
|
|
|
|
|
echo "<br><B>GROUP MODIFIED: $group_id</B>\n";
|
|
|
|
|
|
|
|
|
|
$stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysql_real_escape_string($web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_message='$drop_message',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority' where group_id='$group_id';";
|
|
|
|
|
$stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysql_real_escape_string($web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group' where group_id='$group_id';";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
|
|
|
|
|
|
### LOG CHANGES TO LOG FILE ###
|
|
|
|
@@ -9016,7 +9030,7 @@ if ($ADD==31)
|
|
|
|
|
$lead_filter_id = $row[35];
|
|
|
|
|
if ($lead_filter_id=='') {$lead_filter_id='NONE';}
|
|
|
|
|
$drop_call_seconds = $row[36];
|
|
|
|
|
$safe_harbor_message = $row[37];
|
|
|
|
|
$drop_action = $row[37];
|
|
|
|
|
$safe_harbor_exten = $row[38];
|
|
|
|
|
$display_dialable_count = $row[39];
|
|
|
|
|
$wrapup_seconds = $row[40];
|
|
|
|
@@ -9048,6 +9062,7 @@ if ($ADD==31)
|
|
|
|
|
$manual_dial_list_id = $row[66];
|
|
|
|
|
$default_xfer_group = $row[67];
|
|
|
|
|
$queue_priority = $row[69];
|
|
|
|
|
$drop_inbound_group = $row[70];
|
|
|
|
|
|
|
|
|
|
if (ereg("DISABLED",$list_order_mix))
|
|
|
|
|
{$DEFlistDISABLE = ''; $DEFstatusDISABLED=0;}
|
|
|
|
@@ -9121,7 +9136,32 @@ if ($ADD==31)
|
|
|
|
|
$Dstatuses = explode(" ", $dial_statuses);
|
|
|
|
|
$Ds_to_print = (count($Dstatuses) -1);
|
|
|
|
|
|
|
|
|
|
##### get in-groups listings for dynamic pulldown list menu
|
|
|
|
|
##### get in-groups listings for dynamic drop in-group pulldown
|
|
|
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups order by group_id";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
|
$Dgroups_to_print = mysql_num_rows($rslt);
|
|
|
|
|
$Dgroups_menu='';
|
|
|
|
|
$Dgroups_selected=0;
|
|
|
|
|
$o=0;
|
|
|
|
|
while ($Dgroups_to_print > $o)
|
|
|
|
|
{
|
|
|
|
|
$rowx=mysql_fetch_row($rslt);
|
|
|
|
|
$Dgroups_menu .= "<option ";
|
|
|
|
|
if ($drop_inbound_group == "$rowx[0]")
|
|
|
|
|
{
|
|
|
|
|
$Dgroups_menu .= "SELECTED ";
|
|
|
|
|
$Dgroups_selected++;
|
|
|
|
|
}
|
|
|
|
|
$Dgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
|
|
|
$o++;
|
|
|
|
|
}
|
|
|
|
|
if ($Dgroups_selected < 1)
|
|
|
|
|
{$Dgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
else
|
|
|
|
|
{$Dgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### get in-groups listings for dynamic transfer group pulldown list menu
|
|
|
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups $xfer_groupsSQL order by group_id";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
|
$Xgroups_to_print = mysql_num_rows($rslt);
|
|
|
|
@@ -9362,12 +9402,16 @@ if ($ADD==31)
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop Call Seconds: </td><td align=left><input type=text name=drop_call_seconds size=5 maxlength=2 value=\"$drop_call_seconds\">$NWB#vicidial_campaigns-drop_call_seconds$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Voicemail: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_campaigns-voicemail_ext$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Use Safe Harbor Message: </td><td align=left><select size=1 name=safe_harbor_message><option>Y</option><option>N</option><option SELECTED>$safe_harbor_message</option></select>$NWB#vicidial_campaigns-safe_harbor_message$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop Action: </td><td align=left><select size=1 name=drop_action><option>HANGUP</option><option>MESSAGE</option><option>VOICEMAIL</option><option>IN_GROUP</option><option SELECTED>$drop_action</option></select>$NWB#vicidial_campaigns-drop_action$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Safe Harbor Exten: </td><td align=left><input type=text name=safe_harbor_exten size=10 maxlength=20 value=\"$safe_harbor_exten\">$NWB#vicidial_campaigns-safe_harbor_exten$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Voicemail: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_campaigns-voicemail_ext$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop Transfer Group: </td><td align=left><select size=1 name=drop_inbound_group>";
|
|
|
|
|
echo "$Dgroups_menu";
|
|
|
|
|
echo "</select>$NWB#vicidial_campaigns-drop_inbound_group$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Wrap Up Seconds: </td><td align=left><input type=text name=wrapup_seconds size=5 maxlength=3 value=\"$wrapup_seconds\">$NWB#vicidial_campaigns-wrapup_seconds$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Wrap Up Message: </td><td align=left><input type=text name=wrapup_message size=40 maxlength=255 value=\"$wrapup_message\">$NWB#vicidial_campaigns-wrapup_message$NWE</td></tr>\n";
|
|
|
|
@@ -11089,7 +11133,7 @@ if ($ADD==3111)
|
|
|
|
|
$xferconf_b_dtmf = $row[12];
|
|
|
|
|
$xferconf_b_number = $row[13];
|
|
|
|
|
$drop_call_seconds = $row[14];
|
|
|
|
|
$drop_message = $row[15];
|
|
|
|
|
$drop_action = $row[15];
|
|
|
|
|
$drop_exten = $row[16];
|
|
|
|
|
$call_time_id = $row[17];
|
|
|
|
|
$after_hours_action = $row[18];
|
|
|
|
@@ -11104,6 +11148,7 @@ if ($ADD==3111)
|
|
|
|
|
$agent_alert_delay = $row[27];
|
|
|
|
|
$default_xfer_group = $row[28];
|
|
|
|
|
$queue_priority = $row[29];
|
|
|
|
|
$drop_inbound_group = $row[30];
|
|
|
|
|
|
|
|
|
|
##### get in-groups listings for dynamic pulldown
|
|
|
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups order by group_id";
|
|
|
|
@@ -11111,23 +11156,36 @@ if ($ADD==3111)
|
|
|
|
|
$Xgroups_to_print = mysql_num_rows($rslt);
|
|
|
|
|
$Xgroups_menu='';
|
|
|
|
|
$Xgroups_selected=0;
|
|
|
|
|
$Dgroups_menu='';
|
|
|
|
|
$Dgroups_selected=0;
|
|
|
|
|
$o=0;
|
|
|
|
|
while ($Xgroups_to_print > $o)
|
|
|
|
|
{
|
|
|
|
|
$rowx=mysql_fetch_row($rslt);
|
|
|
|
|
$Xgroups_menu .= "<option ";
|
|
|
|
|
$Dgroups_menu .= "<option ";
|
|
|
|
|
if ($default_xfer_group == "$rowx[0]")
|
|
|
|
|
{
|
|
|
|
|
$Xgroups_menu .= "SELECTED ";
|
|
|
|
|
$Xgroups_selected++;
|
|
|
|
|
}
|
|
|
|
|
if ($drop_inbound_group == "$rowx[0]")
|
|
|
|
|
{
|
|
|
|
|
$Dgroups_menu .= "SELECTED ";
|
|
|
|
|
$Dgroups_selected++;
|
|
|
|
|
}
|
|
|
|
|
$Xgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
|
|
|
$Dgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
|
|
|
$o++;
|
|
|
|
|
}
|
|
|
|
|
if ($Xgroups_selected < 1)
|
|
|
|
|
{$Xgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
else
|
|
|
|
|
{$Xgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
if ($Dgroups_selected < 1)
|
|
|
|
|
{$Dgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
else
|
|
|
|
|
{$Dgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "<br>MODIFY A GROUPS RECORD: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
|
|
@@ -11174,12 +11232,16 @@ if ($ADD==3111)
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop Call Seconds: </td><td align=left><input type=text name=drop_call_seconds size=5 maxlength=4 value=\"$drop_call_seconds\">$NWB#vicidial_inbound_groups-drop_call_seconds$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Voicemail: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_inbound_groups-voicemail_ext$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Use Drop Message: </td><td align=left><select size=1 name=drop_message><option>Y</option><option>N</option><option SELECTED>$drop_message</option></select>$NWB#vicidial_inbound_groups-drop_message$NWE</td></tr>\n";
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop Action: </td><td align=left><select size=1 name=drop_action><option>HANGUP</option><option>MESSAGE</option><option>VOICEMAIL</option><option>IN_GROUP</option><option SELECTED>$drop_action</option></select>$NWB#vicidial_inbound_groups-drop_action$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop Exten: </td><td align=left><input type=text name=drop_exten size=10 maxlength=20 value=\"$drop_exten\">$NWB#vicidial_inbound_groups-drop_exten$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Voicemail: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_inbound_groups-voicemail_ext$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop Transfer Group: </td><td align=left><select size=1 name=drop_inbound_group>";
|
|
|
|
|
echo "$Dgroups_menu";
|
|
|
|
|
echo "</select>$NWB#vicidial_inbound_groups-drop_inbound_group$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=311111111&call_time_id=$call_time_id\">Call Time: </a></td><td align=left><select size=1 name=call_time_id>\n";
|
|
|
|
|
echo "$call_times_list";
|
|
|
|
|
echo "<option selected value=\"$call_time_id\">$call_time_id - $call_timename_list[$call_time_id]</option>\n";
|
|
|
|
|