Added NO_READY option for no_agent_no_queue in-group feature, issue #1046
git-svn-id: svn://192.168.202.10@2923 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -276,6 +276,8 @@ OTHER CHANGES:
|
||||
or areacode, and allowing a single CID Group to be set across multiple
|
||||
campaigns.
|
||||
|
||||
74. Added NO_READY option for no_agent_no_queue in-group feature.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -221,6 +221,7 @@
|
||||
# 171124-1159 - Added max_inbound_calls_outcome options
|
||||
# 180204-0120 - Added PRESS_CALLBACK_QUEUE feature, and Closing-Time feature, and add-lead-timezone-lookup feature
|
||||
# 180209-1716 - Big fix for recent feature
|
||||
# 180217-1018 - Added NO_READY option for no_agent_no_queue in-group feature, issue #1046
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_inbound.agi';
|
||||
@@ -1773,15 +1774,18 @@ if ( ( ( ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) ) && ($hm >= $c
|
||||
|
||||
|
||||
##### BEGIN NO AGENT NO QUEUE CHECK #####
|
||||
if ( ( ($no_agent_no_queue =~ /Y|NO_PAUSED/) || ($MCnanque_override > 0) ) && ($dial_ingroup_flag < 1) )
|
||||
if ( ( ($no_agent_no_queue =~ /Y|NO_PAUSED|NO_READY/) || ($MCnanque_override > 0) ) && ($dial_ingroup_flag < 1) )
|
||||
{
|
||||
$NPsql='';
|
||||
$ADsql='';
|
||||
$NCsql='';
|
||||
if ($no_agent_no_queue =~ /NO_PAUSED/)
|
||||
{$NPsql = "and status NOT IN('PAUSED')";}
|
||||
if ($no_agent_no_queue =~ /NO_READY/)
|
||||
{$NCsql = "and status IN('READY','CLOSER')";}
|
||||
if ( ( ($channel_group =~ /AGENTDIRECT/i) || ($dial_ingroup_flag > 0) ) && (length($agent_only) > 1) )
|
||||
{$ADsql = "and user='$agent_only'";}
|
||||
$stmtA = "SELECT count(*) FROM vicidial_live_agents where closer_campaigns LIKE \"% $channel_group %\" $NPsql $ADsql;";
|
||||
$stmtA = "SELECT count(*) FROM vicidial_live_agents where closer_campaigns LIKE \"% $channel_group %\" $NPsql $ADsql $NCsql;";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
|
||||
@@ -1159,7 +1159,7 @@ play_welcome_message ENUM('ALWAYS','NEVER','IF_WAIT_ONLY','YES_UNLESS_NODELAY')
|
||||
answer_sec_pct_rt_stat_one SMALLINT(5) UNSIGNED default '20',
|
||||
answer_sec_pct_rt_stat_two SMALLINT(5) UNSIGNED default '30',
|
||||
default_group_alias VARCHAR(30) default '',
|
||||
no_agent_no_queue ENUM('N','Y','NO_PAUSED') default 'N',
|
||||
no_agent_no_queue ENUM('N','Y','NO_PAUSED','NO_READY') default 'N',
|
||||
no_agent_action ENUM('CALLMENU','INGROUP','DID','MESSAGE','EXTENSION','VOICEMAIL','VMAIL_NO_INST') default 'MESSAGE',
|
||||
no_agent_action_value VARCHAR(255) default 'nbdy-avail-to-take-call|vm-goodbye',
|
||||
web_form_address_two TEXT,
|
||||
@@ -4186,4 +4186,4 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1537',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1538',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -573,3 +573,7 @@ UPDATE system_settings SET db_schema_version='1536',db_schema_update_date=NOW()
|
||||
ALTER TABLE vicidial_campaigns ADD pause_max_dispo VARCHAR(6) default 'PAUSMX';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1537',db_schema_update_date=NOW() where db_schema_version < 1537;
|
||||
|
||||
ALTER TABLE vicidial_inbound_groups MODIFY no_agent_no_queue ENUM('N','Y','NO_PAUSED','NO_READY') default 'N';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1538',db_schema_update_date=NOW() where db_schema_version < 1538;
|
||||
|
||||
@@ -4313,12 +4313,13 @@ else
|
||||
# 180215-1318 - Added CID Groups admin screens
|
||||
# 180216-1332 - Fix for system summary screen, issue #1068
|
||||
# 180216-1743 - Many translation strings and permissions fixes, issue #1065
|
||||
# 180217-0934 - Added NO_READY option for no_agent_no_queue in-group feature, issue #1046
|
||||
#
|
||||
|
||||
# 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.14-658a';
|
||||
$build = '180216-1743';
|
||||
$admin_version = '2.14-659a';
|
||||
$build = '180217-0934';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
@@ -27835,7 +27836,7 @@ if ($ADD==3111)
|
||||
|
||||
echo "<tr bgcolor=#CCFFFF><td align=right><a href=\"$PHP_SELF?ADD=3511&menu_id=$after_hours_callmenu\">"._QXZ("After Hours Call Menu").":</a></td><td align=left><select size=1 name=after_hours_callmenu id=after_hours_callmenu>$call_menu_list<option SELECTED>$after_hours_callmenu</option></select>$NWB#inbound_groups-after_hours_callmenu$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("No Agents No Queueing").": </td><td align=left><select size=1 name=no_agent_no_queue><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='NO_PAUSED'>"._QXZ("NO_PAUSED")."</option><option value='$no_agent_no_queue' SELECTED>"._QXZ("$no_agent_no_queue")."</option></select>$NWB#inbound_groups-no_agent_no_queue$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("No Agents No Queueing").": </td><td align=left><select size=1 name=no_agent_no_queue><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='NO_PAUSED'>"._QXZ("NO_PAUSED")."</option><option value='NO_READY'>"._QXZ("NO_READY")."</option><option value='$no_agent_no_queue' SELECTED>"._QXZ("$no_agent_no_queue")."</option></select>$NWB#inbound_groups-no_agent_no_queue$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("No Agent No Queue Action").": </td><td align=left><select size=1 name=no_agent_action id=no_agent_action onChange=\"dynamic_call_action('no_agent_action','$no_agent_action','$no_agent_action_value','600');\"><option value='CALLMENU'>"._QXZ("CALLMENU")."</option><option value='INGROUP'>"._QXZ("INGROUP")."</option><option value='DID'>"._QXZ("DID")."</option><option value='MESSAGE'>"._QXZ("MESSAGE")."</option><option value='EXTENSION'>"._QXZ("EXTENSION")."</option><option value='VOICEMAIL'>"._QXZ("VOICEMAIL")."</option><option value='VMAIL_NO_INST'>"._QXZ("VMAIL_NO_INST")."</option><option value='$no_agent_action' SELECTED>"._QXZ("$no_agent_action")."</option></select>$NWB#inbound_groups-no_agent_no_queue$NWE\n";
|
||||
|
||||
|
||||
@@ -2709,7 +2709,7 @@ if ($SSqc_features_active > 0)
|
||||
<BR>
|
||||
<A NAME="inbound_groups-no_agent_no_queue">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("No Agents No Queueing"); ?> -</B><?php echo _QXZ("If this field is set to Y or NO_PAUSED then no calls will be put into the queue for this in-group if there are no agents logged in and the calls will go to the No Agent No Queue Action. The NO_PAUSED option will also not send the callers into the queue if there are only paused agents in the in-group. Default is N. In an AGENTDIRECT in-group, setting this to AGENTVMAIL will select the User voicemail ID to use. You can also put AGENTEXT in this field if it is set to EXTENSION and the system will look up the user custom five field and send the call to that dialplan number. If set to N, the calls will queue up, even if there are no agents logged in and set to take calls from this in-group."); ?>
|
||||
<B><?php echo _QXZ("No Agents No Queueing"); ?> -</B><?php echo _QXZ("If this field is set to Y, NO_READY or NO_PAUSED then no calls will be put into the queue for this in-group if there are no agents logged in and the calls will go to the No Agent No Queue Action. The NO_PAUSED option will also not send the callers into the queue if there are only paused agents in the in-group. The NO_READY option will also not send the callers into the queue if there are no agents ready to take the call in the in-group. Default is N. In an AGENTDIRECT in-group, setting this to AGENTVMAIL will select the User voicemail ID to use. You can also put AGENTEXT in this field if it is set to EXTENSION and the system will look up the user custom five field and send the call to that dialplan number. If set to N, the calls will queue up, even if there are no agents logged in and set to take calls from this in-group."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="inbound_groups-no_agent_action">
|
||||
|
||||
Reference in New Issue
Block a user