diff --git a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi index aa99ae7e..fdabe693 100644 --- a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi +++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi @@ -196,6 +196,7 @@ # 150410-0637 - Fixed NANQUE bug with VMAIL_NO_INST # 150609-1734 - Added populate_lead_ingroup option # 150704-0749 - Fixed issue with ALT and ADDR3 lookups with list/campaign restruction, Issue #872 +# 150707-0850 - Fixed issues with na_call_url function for all calls that are not sent to agent # $script = 'agi-VDAD_ALL_inbound.agi'; @@ -720,7 +721,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,populate_lead_ingroup 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,na_call_url 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; @@ -812,6 +813,7 @@ if ($sthArows > 0) $max_calls_count = $aryA[74]; $max_calls_action = $aryA[75]; $populate_lead_ingroup = $aryA[76]; + $na_call_url = $aryA[77]; $custom_call_id=''; if ($uniqueid_status_display =~ /ENABLED/) @@ -1010,7 +1012,7 @@ if ($call_handle_method =~ /LOOKUP/) } $sthA->finish(); - ### Start the Add-Lead-URL get proccess + ### BEGIN the Add-Lead-URL get process if (length($add_lead_url) > 5) { $PADlead_id = sprintf("%010s", $insert_lead_id); while (length($PADlead_id) > 10) {chop($PADlead_id);} @@ -1033,6 +1035,7 @@ if ($call_handle_method =~ /LOOKUP/) if ($AGILOG) {$agi_string = "$launch|"; &agi_output;} } + ### END the Add-Lead-URL get process if ($AGILOG) {$agi_string = "VDAD vicidial_list insert |$insert_lead_id|$stmtA|"; &agi_output;} } @@ -1161,7 +1164,7 @@ if ($call_handle_method =~ /LOOKUP/) } $sthA->finish(); - ### Start the Add-Lead-URL get proccess + ### BEGIN the Add-Lead-URL get process if (length($add_lead_url) > 5) { $PADlead_id = sprintf("%010s", $insert_lead_id); while (length($PADlead_id) > 10) {chop($PADlead_id);} @@ -1184,6 +1187,7 @@ if ($call_handle_method =~ /LOOKUP/) if ($AGILOG) {$agi_string = "$launch|"; &agi_output;} } + ### END the Add-Lead-URL get process if ($AGILOG) {$agi_string = "VDAD vicidial_list insert |$insert_lead_id|$stmtA|"; &agi_output;} } @@ -1246,7 +1250,7 @@ else } $sthA->finish(); - ### Start the Add-Lead-URL get proccess + ### BEGIN the Add-Lead-URL get process if (length($add_lead_url) > 5) { $PADlead_id = sprintf("%010s", $insert_lead_id); while (length($PADlead_id) > 10) {chop($PADlead_id);} @@ -1269,6 +1273,7 @@ else if ($AGILOG) {$agi_string = "$launch|"; &agi_output;} } + ### END the Add-Lead-URL get process } } @@ -1443,9 +1448,12 @@ if ( ( ( ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) ) && ($hm >= $c $sthA->finish(); if ($AGILOG) {$agi_string = "-- AH VDCL vcl insert: |$affected_rows|$insert_lead_id|$insert_close_id|$hm|$ct_default_start|$ct_default_stop|$ct_stop_overflow|$MCafterhours_override\n|$stmtA|"; &agi_output;} + $PADlead_id = sprintf("%010s", $insert_lead_id); while (length($PADlead_id) > 10) {chop($PADlead_id);} + $NACqueryCID = "Y$CIDdate$PADlead_id"; + if ($VLEcount < 1) { - $stmtA = "INSERT INTO vicidial_log_extended set uniqueid='$uniqueid',server_ip='$VARserver_ip',call_date='$now_date',lead_id = '$insert_lead_id',caller_code='$callerid',custom_call_id='$custom_call_id';"; + $stmtA = "INSERT INTO vicidial_log_extended set uniqueid='$uniqueid',server_ip='$VARserver_ip',call_date='$now_date',lead_id = '$insert_lead_id',caller_code='$NACqueryCID',custom_call_id='$custom_call_id';"; $affected_rows = $dbhA->do($stmtA); $dbhP=$dbhA; $mysql_count='02145'; $MEL_aff_rows=$affected_rows; &mysql_error_logging; if ($AGILOG) {$agi_string = "-- AH VLE insert: |$affected_rows|\n|$stmtA|"; &agi_output;} @@ -1673,9 +1681,12 @@ if ( ( ($no_agent_no_queue =~ /Y|NO_PAUSED/) || ($MCnanque_override > 0) ) && ($ $sthA->finish(); if ($AGILOG) {$agi_string = "-- NA VDCL vcl insert: |$affected_rows|$insert_lead_id|$insert_close_id|$MCnanque_override|\n|$stmtA|"; &agi_output;} + $PADlead_id = sprintf("%010s", $insert_lead_id); while (length($PADlead_id) > 10) {chop($PADlead_id);} + $NACqueryCID = "Y$CIDdate$PADlead_id"; + if ($VLEcount < 1) { - $stmtA = "INSERT INTO vicidial_log_extended set uniqueid='$uniqueid',server_ip='$VARserver_ip',call_date='$now_date',lead_id = '$insert_lead_id',caller_code='$callerid',custom_call_id='$custom_call_id';"; + $stmtA = "INSERT INTO vicidial_log_extended set uniqueid='$uniqueid',server_ip='$VARserver_ip',call_date='$now_date',lead_id = '$insert_lead_id',caller_code='$NACqueryCID',custom_call_id='$custom_call_id';"; $affected_rows = $dbhA->do($stmtA); $dbhP=$dbhA; $mysql_count='02146'; $MEL_aff_rows=$affected_rows; &mysql_error_logging; if ($AGILOG) {$agi_string = "-- NANQUE VLE insert: |$affected_rows|\n|$stmtA|"; &agi_output;} @@ -2095,8 +2106,6 @@ if ($VLEcount < 1) } - - $wait_in_queue=1; $drop_timer=0; $drop_seconds=0; @@ -4251,7 +4260,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override } $sthA->finish(); - ### Start the Add-Lead-URL get proccess + ### BEGIN the Add-Lead-URL get process if (length($add_lead_url) > 5) { $launch = $PATHhome . "/AST_send_URL.pl"; @@ -4271,6 +4280,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override if ($AGILOG) {$agi_string = "$launch|"; &agi_output;} } + ### END the Add-Lead-URL get process if ($AGILOG) {$agi_string = "VDAD vicidial_list insert |$CALLBACK_insert_lead_id|$stmtA|"; &agi_output;} @@ -4690,7 +4700,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override } $sthA->finish(); - ### Start the Add-Lead-URL get proccess + ### BEGIN the Add-Lead-URL get process if (length($add_lead_url) > 5) { $launch = $PATHhome . "/AST_send_URL.pl"; @@ -4710,6 +4720,7 @@ while ( ($drop_timer <= $DROP_TIME) && ($wait_in_queue > 0) && ($MCdrop_override if ($AGILOG) {$agi_string = "$launch|"; &agi_output;} } + ### END the Add-Lead-URL get process if ($AGILOG) {$agi_string = "VDAD vicidial_list insert |$CALLBACK_insert_lead_id|$stmtA|"; &agi_output;} diff --git a/agc_2-X/trunk/bin/AST_send_URL.pl b/agc_2-X/trunk/bin/AST_send_URL.pl index 7191e5db..67f4758f 100644 --- a/agc_2-X/trunk/bin/AST_send_URL.pl +++ b/agc_2-X/trunk/bin/AST_send_URL.pl @@ -359,6 +359,7 @@ if (length($lead_id) > 0) $add_lead_url =~ s/--A--closecallid--B--/$VAR_closecallid/gi; $add_lead_url =~ s/--A--uniqueid--B--/$VAR_uniqueid/gi; $add_lead_url =~ s/--A--call_id--B--/$VAR_call_id/gi; + $add_lead_url =~ s/--A--function--B--/$function/gi; $add_lead_url =~ s/ /+/gi; $add_lead_url =~ s/&/\\&/gi; $parse_url = $add_lead_url; @@ -542,6 +543,7 @@ if (length($lead_id) > 0) $na_call_url =~ s/--A--campaign--B--/$VAR_campaign_id/gi; $na_call_url =~ s/--A--campaign_id--B--/$VAR_campaign_id/gi; $na_call_url =~ s/--A--group--B--/$VAR_campaign_id/gi; + $na_call_url =~ s/--A--function--B--/$function/gi; $na_call_url =~ s/ /+/gi; $na_call_url =~ s/&/\\&/gi; $parse_url = $na_call_url; @@ -724,6 +726,7 @@ if (length($lead_id) > 0) $start_call_url =~ s/--A--campaign--B--/$VAR_campaign_id/gi; $start_call_url =~ s/--A--campaign_id--B--/$VAR_campaign_id/gi; $start_call_url =~ s/--A--group--B--/$VAR_campaign_id/gi; + $start_call_url =~ s/--A--function--B--/$function/gi; $start_call_url =~ s/ /+/gi; $start_call_url =~ s/&/\\&/gi; $parse_url = $start_call_url; diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index 1c5207e9..223982c8 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -629,7 +629,8 @@ selected_language VARCHAR(100) default 'default English', user_choose_language ENUM('1','0') default '0', ignore_group_on_search ENUM('1','0') default '0', api_list_restrict ENUM('1','0') default '0', -api_allowed_functions VARCHAR(1000) default ' ALL_FUNCTIONS ' +api_allowed_functions VARCHAR(1000) default ' ALL_FUNCTIONS ', +lead_filter_id VARCHAR(20) default 'NONE' ) ENGINE=MyISAM; CREATE UNIQUE INDEX user ON vicidial_users (user); @@ -721,7 +722,7 @@ xferconf_b_dtmf VARCHAR(50), xferconf_b_number VARCHAR(50), alt_number_dialing ENUM('N','Y','SELECTED','SELECTED_TIMER_ALT','SELECTED_TIMER_ADDR3') default 'N', scheduled_callbacks ENUM('Y','N') default 'N', -lead_filter_id VARCHAR(10) default 'NONE', +lead_filter_id VARCHAR(20) default 'NONE', drop_call_seconds TINYINT(3) default '5', drop_action ENUM('HANGUP','MESSAGE','VOICEMAIL','IN_GROUP','AUDIO','CALLMENU','VMAIL_NO_INST') default 'AUDIO', safe_harbor_exten VARCHAR(20) default '8307', @@ -1294,7 +1295,7 @@ index (entry_time) ) ENGINE=MyISAM; CREATE TABLE vicidial_lead_filters ( -lead_filter_id VARCHAR(10) PRIMARY KEY NOT NULL, +lead_filter_id VARCHAR(20) PRIMARY KEY NOT NULL, lead_filter_name VARCHAR(30) NOT NULL, lead_filter_comments VARCHAR(255), lead_filter_sql TEXT, @@ -3498,4 +3499,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='1416',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1417',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/agc_2-X/trunk/extras/upgrade_2.12.sql b/agc_2-X/trunk/extras/upgrade_2.12.sql index 0cc6286b..8836794c 100644 --- a/agc_2-X/trunk/extras/upgrade_2.12.sql +++ b/agc_2-X/trunk/extras/upgrade_2.12.sql @@ -172,3 +172,11 @@ UPDATE system_settings SET db_schema_version='1415',db_schema_update_date=NOW() UPDATE vicidial_inbound_groups set group_handling='PHONE' where group_handling=''; UPDATE system_settings SET db_schema_version='1416',db_schema_update_date=NOW() where db_schema_version < 1416; + +ALTER TABLE vicidial_campaigns MODIFY lead_filter_id VARCHAR(20) default 'NONE'; + +ALTER TABLE vicidial_lead_filters MODIFY lead_filter_id VARCHAR(20) NOT NULL; + +ALTER TABLE vicidial_users ADD lead_filter_id VARCHAR(20) default 'NONE'; + +UPDATE system_settings SET db_schema_version='1417',db_schema_update_date=NOW() where db_schema_version < 1417; diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index a026d1ee..72c78eed 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -381,10 +381,11 @@ # 150609-1400 - Added script color # 150609-1857 - Added list_description web url variable # 150701-1205 - Modified mysqli_error() to mysqli_connect_error() where appropriate +# 150706-0903 - Added user lead filter option for no-hopper dialing # -$version = '2.12-276'; -$build = '150701-1205'; +$version = '2.12-277'; +$build = '150706-0903'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=616; $one_mysql_log=0; @@ -2196,6 +2197,35 @@ if ($ACTION == 'manDiaLnextCaLL') ### BEGIN find the next lead to dial without looking in the hopper ########################################################## # $DB=1; + + ##### gather user lead filter setting + $USERlead_filter_id=''; + $USERfSQL=''; + $stmt="SELECT lead_filter_id FROM vicidial_users where user='$user';"; + $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);} + if ($DB) {echo "$stmt\n";} + $camp_nohopper_ct = mysqli_num_rows($rslt); + if ($camp_nohopper_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $USERlead_filter_id = $row[0]; + } + if ( ($USERlead_filter_id != 'NONE') and (strlen($USERlead_filter_id) > 0) ) + { + $stmt="SELECT lead_filter_sql FROM vicidial_lead_filters where lead_filter_id='$USERlead_filter_id';"; + $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);} + $filtersql_ct = mysqli_num_rows($rslt); + if ($DB) {echo "$filtersql_ct|$stmt\n";} + if ($filtersql_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $USERfSQL = "and ($row[0])"; + $USERfSQL = preg_replace('/\\\\/','',$USERfSQL); + } + } + if (strlen($dial_statuses)>2) { $g=0; @@ -3225,7 +3255,7 @@ if ($ACTION == 'manDiaLnextCaLL') if (preg_match("/UP TIMEZONE/i",$lead_order)){$order_stmt = "order by gmt_offset_now desc, $last_order";} if (preg_match("/DOWN TIMEZONE/i",$lead_order)){$order_stmt = "order by gmt_offset_now, $last_order";} - $stmt="UPDATE vicidial_list SET user='QUEUE$user' where called_since_last_reset='N' and ( (user NOT LIKE \"QUEUE%\") or (user is NULL) ) and status IN($Dsql) and ($list_id_sql) and ($all_gmtSQL) $CCLsql $DLTsql $fSQL $adooSQL $order_stmt LIMIT 1;"; + $stmt="UPDATE vicidial_list SET user='QUEUE$user' where called_since_last_reset='N' and ( (user NOT LIKE \"QUEUE%\") or (user is NULL) ) and status IN($Dsql) and ($list_id_sql) and ($all_gmtSQL) $CCLsql $DLTsql $fSQL $USERfSQL $adooSQL $order_stmt LIMIT 1;"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00242',$user,$server_ip,$session_name,$one_mysql_log);} @@ -3237,7 +3267,7 @@ if ($ACTION == 'manDiaLnextCaLL') if ($affected_rows > 0) { - $stmt="SELECT lead_id,list_id,gmt_offset_now,state,entry_list_id,vendor_lead_code FROM vicidial_list where user='QUEUE$user' and called_since_last_reset='N' and status IN($Dsql) and list_id IN($camp_lists) and ($all_gmtSQL) and (modify_date > CONCAT(DATE_ADD(CURDATE(), INTERVAL -1 HOUR),' ',CURTIME()) ) $CCLsql $DLTsql $fSQL $adooSQL order by modify_date desc LIMIT 1;"; + $stmt="SELECT lead_id,list_id,gmt_offset_now,state,entry_list_id,vendor_lead_code FROM vicidial_list where user='QUEUE$user' and called_since_last_reset='N' and status IN($Dsql) and list_id IN($camp_lists) and ($all_gmtSQL) and (modify_date > CONCAT(DATE_ADD(CURDATE(), INTERVAL -1 HOUR),' ',CURTIME()) ) $CCLsql $DLTsql $fSQL $USERfSQL $adooSQL order by modify_date desc LIMIT 1;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00243',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 02a4ef93..d5f54991 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -3515,12 +3515,13 @@ else # 150610-0934 - Added customer_gone_seconds campaign setting # 150701-1131 - Modified mysqli_error() to mysqli_connect_error() where appropriate # 150703-2105 - Fixed field sizes in Issues #867 and #868 +# 150706-0811 - Added user setting for lead_filter_id in no-hopper dialing # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.12-493a'; -$build = '150703-2105'; +$admin_version = '2.12-494a'; +$build = '150706-0811'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -4362,7 +4363,7 @@ if ( ($ADD==999993) or ($ADD==999992) or ($ADD==730000000000000) or ($ADD==83000 ##### END log visit to the vicidial_report_log table ##### } -if ( ($ADD>9) and ($ADD < 99998) ) +if ( ($ADD>2) and ($ADD < 99998) ) { ##### get scripts listing for dynamic pulldown $stmt="SELECT script_id,script_name from vicidial_scripts $whereLOGadmin_viewable_groupsSQL order by script_id;"; @@ -6887,7 +6888,7 @@ if ($ADD==11111111) } else { - echo "
\n";
echo "";
- $stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,failed_login_count,last_login_date,last_ip,alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans,wrapup_seconds_override,modify_languages,selected_language,user_choose_language,ignore_group_on_search,api_list_restrict,api_allowed_functions from vicidial_users where user='$user' $LOGadmin_viewable_groupsSQL;";
+ $stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,failed_login_count,last_login_date,last_ip,alter_admin_interface_options,max_inbound_calls,modify_custom_dialplans,wrapup_seconds_override,modify_languages,selected_language,user_choose_language,ignore_group_on_search,api_list_restrict,api_allowed_functions,lead_filter_id from vicidial_users where user='$user' $LOGadmin_viewable_groupsSQL;";
$rslt=mysql_to_mysqli($stmt, $link);
$row=mysqli_fetch_row($rslt);
$user_id = $row[0];
@@ -17970,6 +17971,7 @@ if ($ADD==3)
$ignore_group_on_search = $row[110];
$api_list_restrict = $row[111];
$api_allowed_functions = $row[112];
+ $lead_filter_id = $row[113];
if ( ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) ) or ( ($LOGmodify_same_user_level < 1) and ($LOGuser_level > 8) and ($user_level > 8) ) )
{
@@ -18121,6 +18123,13 @@ if ($ADD==3)
echo "| "._QXZ("Agent Call Log View Override").": | $NWB#users-agent_call_log_view_override$NWE | "._QXZ("Agent Lead Search Override").": | $NWB#users-agent_lead_search_override$NWE | "._QXZ("Lead Filter").": | ";
+ echo "$NWB#users-lead_filter_id$NWE "._QXZ("only enabled with no-hopper manual dialing")."";
+ echo " | "._QXZ("Alert Enabled").": | $alert_enabled $NWB#users-alert_enabled$NWE | "._QXZ("Allow Alerts").": | $NWB#users-allow_alerts$NWE | "._QXZ("CAMPAIGNS USING THIS FILTER").": \n"; + echo "
"._QXZ("USERS USING THIS FILTER").": \n"; + echo "
"._QXZ("DELETE THIS FILTER")."\n"; |