Added _BLANK options to owner only dialing to allow for dialing of non-assigned leads

git-svn-id: svn://192.168.202.10@1864 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2012-10-19 08:14:29 +00:00
parent 6dd2004c36
commit 8fc8d589ed
5 changed files with 22 additions and 8 deletions
+2 -2
View File
@@ -771,7 +771,7 @@ grab_calls_in_queue ENUM('Y','N') default 'N',
call_requeue_button ENUM('Y','N') default 'N',
pause_after_each_call ENUM('Y','N') default 'N',
no_hopper_dialing ENUM('Y','N') default 'N',
agent_dial_owner_only ENUM('NONE','USER','TERRITORY','USER_GROUP') default 'NONE',
agent_dial_owner_only ENUM('NONE','USER','TERRITORY','USER_GROUP','USER_BLANK','TERRITORY_BLANK','USER_GROUP_BLANK') default 'NONE',
agent_display_dialable_leads ENUM('Y','N') default 'N',
web_form_address_two TEXT,
waitforsilence_options VARCHAR(25) default '',
@@ -2908,4 +2908,4 @@ INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,cate
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('MAXCAL','Inbound Max Calls Drop','N','Y','UNDEFINED','N','N','N','N','N','N','N');
INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable,scheduled_callback,completed) values('LRERR','Outbound Local Channel Res Err','N','Y','UNDEFINED','N','N','N','N','N','N','N');
UPDATE system_settings SET db_schema_version='1326',db_schema_update_date=NOW();
UPDATE system_settings SET db_schema_version='1327',db_schema_update_date=NOW();
+5
View File
@@ -65,3 +65,8 @@ CREATE TABLE vicidial_dial_log_archive LIKE vicidial_dial_log;
CREATE UNIQUE INDEX vddla on vicidial_dial_log_archive (caller_code,call_date);
UPDATE system_settings SET db_schema_version='1326',db_schema_update_date=NOW() where db_schema_version < 1326;
ALTER TABLE vicidial_campaigns MODIFY agent_dial_owner_only ENUM('NONE','USER','TERRITORY','USER_GROUP','USER_BLANK','TERRITORY_BLANK','USER_GROUP_BLANK') default 'NONE';
UPDATE system_settings SET db_schema_version='1327',db_schema_update_date=NOW() where db_schema_version < 1327;
@@ -16,6 +16,7 @@ This field allows you to input SQL - Structured Query Language - database fragme
Admin List Counts||
This setting allows you to disable the list counts that appear on the Lists listing and the Campaign modify screens. Default is 1 for enabled||
The Y_API_LAUNCH option can be used with the agent API to launch the webphone in a separate Iframe or window||
If the option has BLANK at the end, then users are allowed to dial leads with no owner defined in addition to owner defined leads||
############################################################ CLIENT
+9 -2
View File
@@ -312,10 +312,11 @@
# 120619-0616 - Corrected xfer_log logging of manual preview dialed calls
# 120731-1205 - Small fix for vendor_lead_code population on new lead during manual dial
# 120831-1438 - Added vicidial_dial_log logging of outbound phone calls
# 121018-2320 - Added blank option to owner only dialing
#
$version = '2.6-210';
$build = '120831-1438';
$version = '2.6-211';
$build = '121018-2320';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=443;
$one_mysql_log=0;
@@ -2024,6 +2025,12 @@ if ($ACTION == 'manDiaLnextCaLL')
}
if (eregi("USER",$agent_dial_owner_only)) {$adooSQL = "and owner='$user'";}
if (eregi("USER_GROUP",$agent_dial_owner_only)) {$adooSQL = "and owner='$user_group'";}
if (preg_match("/_BLANK/",$agent_dial_owner_only))
{
$adooSQLa = preg_replace("/^and /",'',$adooSQL);
$blankSQL = "and ( ($adooSQLa) or (owner='') or (owner is NULL) )";
$adooSQL = $blankSQL;
}
if ($lead_order_randomize == 'Y') {$last_order = "RAND()";}
else
+5 -4
View File
@@ -3142,12 +3142,13 @@ else
# 120810-1018 - Added Admin List Counts system settings option
# 120820-1104 - Added is_webphone option Y_API_LAUNCH
# 120831-1523 - Added vicidial_dial_log outbound call logging
# 121018-2321 - Added blank option to owner only dialing
#
# 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.6-375a';
$build = '120831-1523';
$admin_version = '2.6-376a';
$build = '121018-2321';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -5091,7 +5092,7 @@ if ($ADD==99999)
<BR>
<A NAME="vicidial_campaigns-agent_dial_owner_only">
<BR>
<B>Owner Only Dialing -</B> If This is enabled, the agent will only receive leads that they are within the ownership parameters for. If this is set to USER then the agent must be the user defined in the database as the owner of this lead. If this is set to TERRITORY then the owner of the lead must match the territory listed in the User Modification screen for this agent. If this is set to USER_GROUP then the owner of the lead must match the user group that the agent is a member of. For this feature to work the dial method must be set to MANUAL or INBOUND_MAN and No Hopper Dialing must be enabled. Default is NONE for disabled.
<B>Owner Only Dialing -</B> If This is enabled, the agent will only receive leads that they are within the ownership parameters for. If this is set to USER then the agent must be the user defined in the database as the owner of this lead. If this is set to TERRITORY then the owner of the lead must match the territory listed in the User Modification screen for this agent. If this is set to USER_GROUP then the owner of the lead must match the user group that the agent is a member of. For this feature to work the dial method must be set to MANUAL or INBOUND_MAN and No Hopper Dialing must be enabled. Default is NONE for disabled. If the option has BLANK at the end, then users are allowed to dial leads with no owner defined in addition to owner defined leads.
<?php
if ($SSuser_territories_active > 0)
@@ -21626,7 +21627,7 @@ if ($ADD==31)
echo "<tr bgcolor=#B6D3FC><td align=right>No Hopper Dialing: </td><td align=left><select size=1 name=no_hopper_dialing><option>Y</option><option>N</option><option SELECTED>$no_hopper_dialing</option></select>$NWB#vicidial_campaigns-no_hopper_dialing$NWE</td></tr>\n";
echo "<tr bgcolor=#B6D3FC><td align=right>Owner Only Dialing: </td><td align=left><select size=1 name=agent_dial_owner_only><option>NONE</option><option>USER</option><option>TERRITORY</option><option>USER_GROUP</option><option SELECTED>$agent_dial_owner_only</option></select>$NWB#vicidial_campaigns-agent_dial_owner_only$NWE</td></tr>\n";
echo "<tr bgcolor=#B6D3FC><td align=right>Owner Only Dialing: </td><td align=left><select size=1 name=agent_dial_owner_only><option>NONE</option><option>USER</option><option>TERRITORY</option><option>USER_GROUP</option><option>USER_BLANK</option><option>TERRITORY_BLANK</option><option>USER_GROUP_BLANK</option><option SELECTED>$agent_dial_owner_only</option></select>$NWB#vicidial_campaigns-agent_dial_owner_only$NWE</td></tr>\n";
if ($SSuser_territories_active > 0)
{