Added 2nd option for agentcall_manual to disable FAST DIAL on vicidial.php

git-svn-id: svn://192.168.202.10@3236 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2020-04-25 14:04:27 +00:00
parent 3c890dacb5
commit d40409a38c
7 changed files with 34 additions and 14 deletions
+1
View File
@@ -876,6 +876,7 @@ else
{
@aryA = $sthA->fetchrow_array;
$TTS_text = $aryA[0];
$TTS_text =~s/^DYN//gi;
}
$sthA->finish();
}
@@ -569,7 +569,7 @@ agent_choose_ingroups ENUM('0','1') default '1',
closer_campaigns TEXT,
scheduled_callbacks ENUM('0','1') default '1',
agentonly_callbacks ENUM('0','1') default '0',
agentcall_manual ENUM('0','1') default '0',
agentcall_manual ENUM('0','1','2','3','4','5') default '0',
vicidial_recording ENUM('0','1') default '1',
vicidial_transfers ENUM('0','1') default '1',
delete_filters ENUM('0','1') default '0',
@@ -4638,4 +4638,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='1594',db_schema_update_date=NOW(),reload_timestamp=NOW();
UPDATE system_settings SET db_schema_version='1595',db_schema_update_date=NOW(),reload_timestamp=NOW();
+4
View File
@@ -1238,3 +1238,7 @@ index (call_date)
) ENGINE=MyISAM;
UPDATE system_settings SET db_schema_version='1594',db_schema_update_date=NOW() where db_schema_version < 1594;
ALTER TABLE vicidial_users MODIFY agentcall_manual ENUM('0','1','2','3','4','5') default '0';
UPDATE system_settings SET db_schema_version='1595',db_schema_update_date=NOW() where db_schema_version < 1595;
+11 -2
View File
@@ -4,9 +4,14 @@
# Copyright (C) 2020 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# This script is designed to generate a list of wav audio files to play and then
# insert a record into the vicidial_lead_messages table
# insert a record into the vicidial_lead_messages table. This web page should be
# launched from the agent webform or as an IFRAME in a script tab while on a
# call(you can use Get-Call-Launch or the Trigger function to auto-launch a
# webform).
#
# !!! IMPORTANT !!! You must customize this script to your needs!
# !!! IMPORTANT !!! You must customize this script to your needs, and you must
# have the campaign setting for 'Answering Machine Message'
# set to 'LTTagent' for this to work.
#
### Example line to put in the campaign WEBFORM field:
# http://127.0.0.1/agc/vdc_LTT_generate.php
@@ -223,9 +228,13 @@ else
# EXship07.wav = 'Goodbye'
#
# TEST URL: http://127.0.0.1/agc/vdc_LTT_generate.php?lead_id=101&user=6666&address3=ACME+Shipping&vendor_lead_code=A1234567&owner=876543&province=2020-12-01&security_phrase=123456.78&alt_phone=3125551212
#
# SAMPLE WEBFORM URL:
# VARhttp://127.0.0.1/agc/vdc_LTT_generate.php?lead_id=--A--lead_id--B--&user=--A--user--B--&address3=--A--address3--B--&vendor_lead_code=--A--vendor_lead_code--B--&owner=--A--owner--B--&province=--A--province--B--&security_phrase=--A--security_phrase--B--&alt_phone=--A--alt_phone--B--
#
# NOTES:
# After this page loads, the agent will just need to open the transfer panel and click on the 'VM' button to send the call to the customized message(or use a properly-configured HotKey to do so). Keep in mind that there are many campaign settings that can override this function, so you will want to disable 'AM Message Wildcards' and 'VM Message Groups', and also set the 'Answering Machine Message' to 'LTTagent' for this to work.
#
if ($address3 == 'ACME Shipping') {$EXship01a = 'EXshipACME.wav';}
if ($address3 == 'International Parcel Shipping') {$EXship01a = 'EXshipIPS.wav';}
+10 -5
View File
@@ -636,10 +636,11 @@
# 200406-1205 - Fix for gender custom field population, Issue #1205
# 200407-1822 - Added Agent Browser Call Alert Sounds
# 200408-0952 - Small fix for Issue #1188, allow dial override
# 200425-0948 - Added 2nd option for agentcall_manual to disable FAST DIAL
#
$version = '2.14-605c';
$build = '200408-0952';
$version = '2.14-606c';
$build = '200425-0948';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=91;
$one_mysql_log=0;
@@ -2322,7 +2323,7 @@ else
}
if ($manual_preview_dial == 'DISABLED')
{$manual_dial_preview = 0;}
if ($manual_dial_override == 'ALLOW_ALL')
if ( ($manual_dial_override == 'ALLOW_ALL') and ($agentcall_manual < 1) )
{$agentcall_manual = 1;}
if ($manual_dial_override == 'DISABLE_ALL')
{$agentcall_manual = 0;}
@@ -18589,7 +18590,7 @@ function phone_number_format(formatphone) {
if (allow_alerts < 1)
{hideDiv('AgentAlertSpan');}
// if ( (agentcall_manual != '1') && (starting_dial_level > 0) )
if (agentcall_manual != '1')
if (agentcall_manual < 1)
{hideDiv('ManuaLDiaLButtons');}
if (agent_call_log_view != '1')
{
@@ -20677,7 +20678,11 @@ $zi=2;
<span style="position:absolute;left:0px;top:<?php echo $DBheight ?>px;z-index:<?php $zi++; echo $zi ?>;" id="debugbottomspan"></span>
<span style="position:absolute;left:300px;top:<?php echo $MBheight ?>px;z-index:<?php $zi++; echo $zi ?>;" id="DiaLlOgButtonspan">
<span id="ManuaLDiaLButtons"><font class="body_text"><span id="MDstatusSpan"><a href="#" onclick="NeWManuaLDiaLCalL('NO','','','','','YES','YES');return false;"><?php echo _QXZ("MANUAL DIAL"); ?></a></span>&nbsp; &nbsp; <a href="#" onclick="NeWManuaLDiaLCalL('FAST','','','','','YES','YES');return false;"><?php echo _QXZ("FAST DIAL"); ?></a></span>&nbsp; &nbsp; </font>
<span id="ManuaLDiaLButtons"><font class="body_text"><span id="MDstatusSpan"><a href="#" onclick="NeWManuaLDiaLCalL('NO','','','','','YES','YES');return false;"><?php echo _QXZ("MANUAL DIAL"); ?></a></span>&nbsp; &nbsp;
<?php if ($agentcall_manual == '1') { ?>
<a href="#" onclick="NeWManuaLDiaLCalL('FAST','','','','','YES','YES');return false;"><?php echo _QXZ("FAST DIAL"); ?></a>
<?php } ?>
</span>&nbsp; &nbsp; </font>
<span id="CallLogButtons"><font class="body_text"><span id="CallLogLinkSpan"><a href="#" onclick="VieWCalLLoG();return false;"><?php echo _QXZ("VIEW CALL LOG"); ?></a></span><br /></font></span>
</span>
+4 -3
View File
@@ -4660,12 +4660,13 @@ else
# 200406-2319 - Small changes to entries_per_page display(w/ display all), also added it for DIDs
# 200407-1030 - Added browser_call_alerts system setting
# 200409-1719 - Reorganized Inbound admin section
# 200425-0949 - Added 2nd option for agentcall_manual to disable FAST DIAL
#
# 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-750a';
$build = '200409-1719';
$admin_version = '2.14-751a';
$build = '200425-0949';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -22374,7 +22375,7 @@ if ($ADD==3)
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Scheduled Callbacks").": </td><td align=left><select size=1 name=scheduled_callbacks><option>0</option><option>1</option><option SELECTED>$scheduled_callbacks</option></select>$NWB#users-scheduled_callbacks$NWE</td></tr>\n";
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Agent-Only Callbacks").": </td><td align=left><select size=1 name=agentonly_callbacks><option>0</option><option>1</option><option SELECTED>$agentonly_callbacks</option></select>$NWB#users-agentonly_callbacks$NWE</td></tr>\n";
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Next-Dial My Callbacks Override").": </td><td align=left><select size=1 name=next_dial_my_callbacks><option value='NOT_ACTIVE'>"._QXZ("NOT_ACTIVE")."</option><option value='ENABLED'>"._QXZ("ENABLED")."</option><option value='DISABLED'>"._QXZ("DISABLED")."</option><option value='$next_dial_my_callbacks' SELECTED>"._QXZ("$next_dial_my_callbacks")."</option></select>$NWB#users-next_dial_my_callbacks$NWE</td></tr>\n";
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Agent Call Manual").": </td><td align=left><select size=1 name=agentcall_manual><option>0</option><option>1</option><option SELECTED>$agentcall_manual</option></select>$NWB#users-agentcall_manual$NWE</td></tr>\n";
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Agent Call Manual").": </td><td align=left><select size=1 name=agentcall_manual><option>0</option><option>1</option><option>2</option><option SELECTED>$agentcall_manual</option></select>$NWB#users-agentcall_manual$NWE</td></tr>\n";
if ($SSallow_emails > 0) {
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Agent Call Email").": </td><td align=left><select size=1 name=agentcall_email><option>0</option><option>1</option><option SELECTED>$agentcall_email</option></select>$NWB#users-agentcall_email$NWE</td></tr>\n";
}
@@ -1,4 +1,4 @@
# version: 20200425013001
# version: 20200425095601
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.</QXZ>
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage. Default is N.</QXZ>
@@ -20,7 +20,7 @@ users-agent_choose_territories Agent Choose Territories <QXZ>This option if set
users-scheduled_callbacks Scheduled Callbacks <QXZ>This option allows an agent to disposition a call as CALLBK and choose the date and time at which the lead will be re-activated.</QXZ>
users-agentonly_callbacks Agent-Only Callbacks <QXZ>This option allows an agent to set a callback so that they are the only Agent that can call the customer back. This also allows the agent to see their callback listings and call them back any time they want to.</QXZ>
users-next_dial_my_callbacks Next-Dial My Callbacks Override <QXZ>This option, if not set to NOT_ACTIVE, will override the campaign option set for Next-Dial My Callbacks. Default is NOT_ACTIVE.</QXZ>
users-agentcall_manual Agent Call Manual <QXZ>This option allows an agent to manually enter a new lead into the system and call them. This also allows the calling of any phone number from their agent screen and puts that call into their session. Use this option with caution.</QXZ>
users-agentcall_manual Agent Call Manual <QXZ>This option allows an agent to manually enter a new lead into the system and call them. This also allows the calling of any phone number from their agent screen and puts that call into their session. Use this option with caution. Setting this option to 2 will allow manual dialing but disable the FAST DIAL function on the agent screen.</QXZ>
users-agentcall_email Agent Call Email <QXZ>This option is disabled.</QXZ>
users-agentcall_chat Agent Call Chat <QXZ>This option is disabled.</QXZ>
users-agent_recording Agent Recording <QXZ>This option can prevent an agent from doing any recordings after they log in to the agent screen. This option must be on for the agent screen to follow the campaign recording settings.</QXZ>