Added options at the campaign and in-group levels to allow you to play alert sounds when a call arrives in the agent's session, in the agents' web browser that they are logged into the agent screen with. Must be enabled in system settings.
git-svn-id: svn://192.168.202.10@3221 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -498,6 +498,11 @@ OTHER CHANGES:
|
||||
139. Added system setting to allow you to restrict Admin Phones display to a
|
||||
set number of records per page.
|
||||
|
||||
140. Added options at the campaign and in-group levels to allow you to play
|
||||
alert sounds when a call arrives in the agent's session, in the agents'
|
||||
web browser that they are logged into the agent screen with. Must be
|
||||
enabled in system settings.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1039,7 +1039,9 @@ dial_timeout_lead_container VARCHAR(40) default 'DISABLED',
|
||||
amd_type ENUM('AMD','CPD','KHOMP') default 'AMD',
|
||||
vmm_daily_limit TINYINT(3) UNSIGNED default '0',
|
||||
opensips_cid_name VARCHAR(15) default '',
|
||||
amd_agent_route_options ENUM('ENABLED','DISABLED','PENDING') default 'DISABLED'
|
||||
amd_agent_route_options ENUM('ENABLED','DISABLED','PENDING') default 'DISABLED',
|
||||
browser_alert_sound VARCHAR(20) default '---NONE---',
|
||||
browser_alert_volume TINYINT(3) UNSIGNED default '50'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -1324,7 +1326,9 @@ cid_cb_reenter_filename TEXT,
|
||||
cid_cb_error_filename TEXT,
|
||||
place_in_line_caller_number_filename TEXT,
|
||||
place_in_line_you_next_filename TEXT,
|
||||
ingroup_script_two VARCHAR(20) default ''
|
||||
ingroup_script_two VARCHAR(20) default '',
|
||||
browser_alert_sound VARCHAR(20) default '---NONE---',
|
||||
browser_alert_volume TINYINT(3) UNSIGNED default '50'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_stations (
|
||||
@@ -1850,7 +1854,8 @@ opensips_cid_name ENUM('0','1') default '0',
|
||||
require_password_length TINYINT(3) UNSIGNED default '0',
|
||||
user_account_emails ENUM('DISABLED','SEND_NO_PASS','SEND_WITH_PASS') DEFAULT 'DISABLED',
|
||||
outbound_cid_any ENUM('DISABLED','API_ONLY') DEFAULT 'DISABLED',
|
||||
entries_per_page SMALLINT(5) UNSIGNED DEFAULT '0'
|
||||
entries_per_page SMALLINT(5) UNSIGNED DEFAULT '0',
|
||||
browser_call_alerts ENUM('0','1','2') DEFAULT '0'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -4595,4 +4600,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='1591',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1592',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -1189,3 +1189,13 @@ UPDATE system_settings SET db_schema_version='1590',db_schema_update_date=NOW()
|
||||
ALTER TABLE system_settings ADD entries_per_page SMALLINT(5) UNSIGNED DEFAULT '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1591',db_schema_update_date=NOW() where db_schema_version < 1591;
|
||||
|
||||
ALTER TABLE system_settings ADD browser_call_alerts ENUM('0','1','2') DEFAULT '0';
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD browser_alert_sound VARCHAR(20) default '---NONE---';
|
||||
ALTER TABLE vicidial_campaigns ADD browser_alert_volume TINYINT(3) UNSIGNED default '50';
|
||||
|
||||
ALTER TABLE vicidial_inbound_groups ADD browser_alert_sound VARCHAR(20) default '---DISABLED---';
|
||||
ALTER TABLE vicidial_inbound_groups ADD browser_alert_volume TINYINT(3) UNSIGNED default '50';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1592',db_schema_update_date=NOW() where db_schema_version < 1592;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -489,10 +489,11 @@
|
||||
# 200122-1847 - Added code for CID Group auto-rotate feature
|
||||
# 200310-1117 - Added manual_dial_cid AGENT_PHONE_OVERRIDE option
|
||||
# 200403-1601 - Added option for forced outbound CID through API
|
||||
# 200407-2036 - Added option for browser alert sounds
|
||||
#
|
||||
|
||||
$version = '2.14-382';
|
||||
$build = '200403-1601';
|
||||
$version = '2.14-383';
|
||||
$build = '200407-2036';
|
||||
$php_script = 'vdc_db_query.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=824;
|
||||
@@ -5234,7 +5235,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
}
|
||||
##### END if NOT preview dialing, send the call #####
|
||||
|
||||
$stmt = "SELECT campaign_script,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT campaign_script,campaign_script_two,browser_alert_sound,browser_alert_volume from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00623',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -5242,8 +5243,10 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
if ($VC_script_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_campaign_script = $row[0];
|
||||
$VDCL_campaign_script_two = $row[1];
|
||||
$VDCL_campaign_script = $row[0];
|
||||
$VDCL_campaign_script_two = $row[1];
|
||||
$VDCL_browser_alert_sound = $row[2];
|
||||
$VDCL_browser_alert_volume = $row[3];
|
||||
}
|
||||
|
||||
##### find if script contains recording fields
|
||||
@@ -5472,6 +5475,8 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$LeaD_InfO .= $default_xfer_group . "\n";
|
||||
$LeaD_InfO .= $VDCL_campaign_script_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_sound . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_volume . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
}
|
||||
@@ -9194,7 +9199,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$script_recording_delay = $row[0];
|
||||
}
|
||||
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,inbound_survey,ingroup_script_two from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,inbound_survey,ingroup_script_two,browser_alert_sound,browser_alert_volume from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00119',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -9231,10 +9236,12 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_group_web_three = stripslashes($row[26]);
|
||||
$VDCL_inbound_survey = $row[28];
|
||||
$VDCL_ingroup_script_two = $row[29];
|
||||
$VDCL_browser_alert_sound = $row[30];
|
||||
$VDCL_browser_alert_volume = $row[31];
|
||||
|
||||
$status_group_gather_data = status_group_gather($row[27],'INGROUP');
|
||||
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,default_xfer_group,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,default_xfer_group,campaign_script_two,browser_alert_sound,browser_alert_volume from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00181',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -9272,6 +9279,11 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
{$VDCL_timer_action_destination = $row[14];}
|
||||
if ( (strlen($row[15]) > 0) and (!preg_match("/---NONE---/",$row[15])) )
|
||||
{$VDCL_default_xfer_group = $row[15];}
|
||||
if ( (strlen($VDCL_browser_alert_sound) < 1) or (preg_match("/---DISABLED---/",$VDCL_browser_alert_sound)) )
|
||||
{
|
||||
$VDCL_browser_alert_sound = $row[17];
|
||||
$VDCL_browser_alert_volume = $row[18];
|
||||
}
|
||||
|
||||
if ( ( (preg_match('/NONE/',$VDCL_ingroup_script)) and (strlen($VDCL_ingroup_script) < 5) ) or (strlen($VDCL_ingroup_script) < 1) )
|
||||
{
|
||||
@@ -9358,7 +9370,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$VDADchannel_group';";
|
||||
$stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,browser_alert_sound,browser_alert_volume from vicidial_campaigns where campaign_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00121',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -9383,6 +9395,8 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_xferconf_e_number = $row[14];
|
||||
$VDCL_timer_action_destination = $row[15];
|
||||
$VDCL_ingroup_script_two = $row[16];
|
||||
$VDCL_browser_alert_sound = $row[17];
|
||||
$VDCL_browser_alert_volume = $row[18];
|
||||
}
|
||||
|
||||
$script_recording_delay=0;
|
||||
@@ -9526,8 +9540,8 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
}
|
||||
|
||||
### if web form is set then send on to vicidial.php for override of WEB_FORM address
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";}
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|$VDCL_browser_alert_sound|$VDCL_browser_alert_volume|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_inbound_survey|$VDCL_survey_participate|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|$VDCL_browser_alert_sound|$VDCL_browser_alert_volume|\n";}
|
||||
|
||||
$stmt = "SELECT full_name from vicidial_users where user='$tsr';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -9682,6 +9696,8 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$LeaD_InfO .= $call_date . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_sound . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_volume . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -10620,7 +10636,7 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_front_VDlog =$row[0];
|
||||
}
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script_two from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script_two,browser_alert_sound,browser_alert_volume from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00500',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -10656,10 +10672,12 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$VDCL_timer_action_destination = $row[25];
|
||||
$VDCL_group_web_three = stripslashes($row[26]);
|
||||
$VDCL_ingroup_script_two = $row[28];
|
||||
$VDCL_browser_alert_sound = $row[29];
|
||||
$VDCL_browser_alert_volume = $row[30];
|
||||
|
||||
$status_group_gather_data = status_group_gather($row[27],'INGROUP');
|
||||
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,browser_alert_sound,browser_alert_volume from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00501',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -11010,6 +11028,8 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$LeaD_InfO .= $call_date . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_sound . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_volume . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -11747,7 +11767,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$script_recording_delay = $row[0];
|
||||
}
|
||||
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script,browser_alert_sound,browser_alert_volume from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00468',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -11783,10 +11803,12 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$VDCL_timer_action_destination = $row[25];
|
||||
$VDCL_group_web_three = stripslashes($row[26]);
|
||||
$VDCL_ingroup_script_two = $row[28];
|
||||
$VDCL_browser_alert_sound = $row[29];
|
||||
$VDCL_browser_alert_volume = $row[30];
|
||||
|
||||
$status_group_gather_data = status_group_gather($row[27],'INGROUP');
|
||||
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two from vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,browser_alert_sound,browser_alert_volume from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00469',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -11822,6 +11844,11 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
{$VDCL_xferconf_e_number = $row[13];}
|
||||
if (strlen($VDCL_timer_action_destination) < 1)
|
||||
{$VDCL_timer_action_destination = $row[14];}
|
||||
if ( (strlen($VDCL_browser_alert_sound) < 1) or (preg_match("/---DISABLED---/",$VDCL_browser_alert_sound)) )
|
||||
{
|
||||
$VDCL_browser_alert_sound = $row[16];
|
||||
$VDCL_browser_alert_volume = $row[17];
|
||||
}
|
||||
|
||||
if ( ( (preg_match('/NONE/',$VDCL_ingroup_script)) and (strlen($VDCL_ingroup_script) < 5) ) or (strlen($VDCL_ingroup_script) < 1) )
|
||||
{
|
||||
@@ -11971,8 +11998,8 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
}
|
||||
|
||||
### if web form is set then send on to vicidial.php for override of WEB_FORM address
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|\n";}
|
||||
if ( (strlen($VDCL_group_web)>5) or (strlen($VDCL_group_name)>0) ) {echo "$VDCL_group_web|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|$VDCL_browser_alert_sound|$VDCL_browser_alert_volume|\n";}
|
||||
else {echo "X|$VDCL_group_name|$VDCL_group_color|$VDCL_fronter_display|$VDADchannel_group|$VDCL_ingroup_script|$VDCL_get_call_launch|$VDCL_xferconf_a_dtmf|$VDCL_xferconf_a_number|$VDCL_xferconf_b_dtmf|$VDCL_xferconf_b_number|$VDCL_default_xfer_group|$VDCL_ingroup_recording_override|$VDCL_ingroup_rec_filename|$VDCL_default_group_alias|$VDCL_caller_id_number|$VDCL_group_web_vars|$VDCL_group_web_two|$VDCL_timer_action|$VDCL_timer_action_message|$VDCL_timer_action_seconds|$VDCL_xferconf_c_number|$VDCL_xferconf_d_number|$VDCL_xferconf_e_number|$VDCL_uniqueid_status_display|$custom_call_id|$VDCL_uniqueid_status_prefix|$VDCL_timer_action_destination|$DID_id|$DID_extension|$DID_pattern|$DID_description|$INclosecallid|$INxfercallid|$VDCL_group_web_three|$VDCL_ingroup_script_color|$VDCL_ingroup_script_two|$VDCL_ingroup_script_color_two|$VDCL_browser_alert_sound|$VDCL_browser_alert_volume|\n";}
|
||||
|
||||
$stmt = "SELECT full_name from vicidial_users where user='$tsr';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -12138,6 +12165,8 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$LeaD_InfO .= $call_date . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_sound . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_volume . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
|
||||
@@ -634,10 +634,11 @@
|
||||
# 200403-1539 - Added Manual Dial API outbound_cid function
|
||||
# 200406-0949 - Fix for manual dial box with no phone number, Issue #1188
|
||||
# 200406-1205 - Fix for gender custom field population, Issue #1205
|
||||
# 200407-1822 - Added Agent Browser Call Alert Sounds
|
||||
#
|
||||
|
||||
$version = '2.14-603c';
|
||||
$build = '200406-1205';
|
||||
$version = '2.14-604c';
|
||||
$build = '200407-1822';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=91;
|
||||
$one_mysql_log=0;
|
||||
@@ -752,7 +753,7 @@ if ($sl_ct > 0)
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link,agentonly_callback_campaign_lock,manual_dial_validation,mute_recordings,enable_second_script,enable_first_webform,recording_buttons,outbound_cid_any FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url,custom_fields_enabled,pllb_grouping_limit,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_third_webform,default_language,active_modules,allow_chats,chat_url,default_phone_code,agent_screen_colors,manual_auto_next,agent_xfer_park_3way,admin_web_directory,agent_script,agent_push_events,agent_push_url,agent_logout_link,agentonly_callback_campaign_lock,manual_dial_validation,mute_recordings,enable_second_script,enable_first_webform,recording_buttons,outbound_cid_any,browser_call_alerts FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01001',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -802,6 +803,7 @@ if ($qm_conf_ct > 0)
|
||||
$SSenable_first_webform = $row[39];
|
||||
$SSrecording_buttons = $row[40];
|
||||
$SSoutbound_cid_any = $row[41];
|
||||
$SSbrowser_call_alerts = $row[42];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -907,6 +909,8 @@ $SSalt_row1_background='BDFFBD';
|
||||
$SSalt_row2_background='99FF99';
|
||||
$SSalt_row3_background='CCFFCC';
|
||||
|
||||
$browser_alert_sounds_list = 'bark_dog,beep_double,beep_five,beep_up,bell_double,bell_school,bird,blaster1,blaster2,buzz1,buzz2,cash_register,chat_alert,close_encounter,confirmation,ding,droplet,droplet_double,elephant,email_alert,hold_tone,horn_bike,horn_car,horn_car_triple,horn_clown,horn_double,horn_train,meow_cat,scream_wilhelm,silence_quick,siren,slide_down,slide_up,swish,teleport1,teleport2,whip,whoosh,xylophone1,xylophone2,xylophone3,xylophone4';
|
||||
|
||||
if ($agent_screen_colors != 'default')
|
||||
{
|
||||
$stmt = "SELECT menu_background,frame_background,std_row1_background,std_row2_background,std_row3_background,std_row4_background,std_row5_background,alt_row1_background,alt_row2_background,alt_row3_background,web_logo FROM vicidial_screen_colors where colors_id='$agent_screen_colors';";
|
||||
@@ -1963,7 +1967,7 @@ else
|
||||
$HKstatusnames = substr("$HKstatusnames", 0, -1);
|
||||
|
||||
##### grab the campaign settings
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,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,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings,leave_vm_no_dispo,leave_vm_message_group_id,campaign_script_two FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,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,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings,leave_vm_no_dispo,leave_vm_message_group_id,campaign_script_two,browser_alert_sound,browser_alert_volume FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -2129,6 +2133,8 @@ else
|
||||
$leave_vm_no_dispo = $row[158];
|
||||
$leave_vm_message_group_id = $row[159];
|
||||
$campaign_script_two = $row[160];
|
||||
$browser_alert_sound = $row[161];
|
||||
$browser_alert_volume = $row[162];
|
||||
|
||||
if ($leave_vm_no_dispo == 'ENABLED')
|
||||
{$leave_vm_no_dispo = 'VMNOHANG';}
|
||||
@@ -4972,6 +4978,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var SSenable_second_script='<?php echo $SSenable_second_script ?>';
|
||||
var SSoutbound_cid_any='<?php echo $SSoutbound_cid_any ?>';
|
||||
var NeWManuaLDiaLBox_open=0;
|
||||
var SSbrowser_call_alerts='<?php echo $SSbrowser_call_alerts ?>';
|
||||
var CAMPbrowser_alert_sound='<?php echo $browser_alert_sound ?>';
|
||||
var CAMPbrowser_alert_volume='<?php echo $browser_alert_volume ?>';
|
||||
var browser_alert_sound='<?php echo $browser_alert_sound ?>';
|
||||
var browser_alert_volume='<?php echo $browser_alert_volume ?>';
|
||||
var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_paused.gif") ?>\" border=\"0\" alt=\"You are paused\" /></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_active.gif") ?>\" border=\"0\" alt=\"You are active\" /></a>";
|
||||
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/<?php echo _QXZ("vdc_LB_blank_OFF.gif") ?>\" border=\"0\" alt=\"pause button disabled\" />";
|
||||
@@ -5151,6 +5162,21 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
}
|
||||
|
||||
// ################################################################################
|
||||
// Play MP3 audio file upon call arriving in agent screen, if enabled in system settings and campaign/in-group
|
||||
function play_browser_sound(temp_sound,temp_volume)
|
||||
{
|
||||
if ( (temp_sound != '---NONE---') && (temp_sound != '---DISABLED---') && (temp_sound != '') )
|
||||
{
|
||||
var temp_selected_element = 'BAS_' + temp_sound;
|
||||
var temp_audio = document.getElementById(temp_selected_element);
|
||||
var temp_js_volume = (temp_volume * .01);
|
||||
temp_audio.volume = temp_js_volume;
|
||||
// alert(temp_selected_element + ' ' + temp_js_volume);
|
||||
temp_audio.play();
|
||||
}
|
||||
}
|
||||
|
||||
// ################################################################################
|
||||
// Send volume control command for meetme participant
|
||||
function volume_control(taskdirection,taskvolchannel,taskagentmute)
|
||||
@@ -8194,6 +8220,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{CalL_ScripT_id_two = change_data[36];}
|
||||
if (change_data[37].length > 0)
|
||||
{CalL_ScripT_color_two = change_data[37];}
|
||||
if (change_data[38].length > 0)
|
||||
{
|
||||
browser_alert_sound = change_data[38];
|
||||
browser_alert_volume = change_data[39];
|
||||
}
|
||||
|
||||
document.vicidial_form.lead_id.value = VDIC_data_VDAC[0];
|
||||
LeaDPreVDispO = change_array[6];
|
||||
@@ -9167,6 +9198,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{
|
||||
MDcheck_for_answer=1;
|
||||
}
|
||||
|
||||
if (SSbrowser_call_alerts > 0)
|
||||
{
|
||||
if ( (browser_alert_sound != '') && (browser_alert_sound != '---NONE---') && (browser_alert_sound != '---DISABLED---') )
|
||||
{
|
||||
button_click_log = button_click_log + "" + SQLdate + "-----MANplay_browser_sound---" + browser_alert_sound + " " + browser_alert_volume + "|";
|
||||
play_browser_sound(browser_alert_sound,browser_alert_volume);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9680,7 +9720,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{
|
||||
var MDnextResponse = null;
|
||||
// alert(manDiaLnext_query + "\n" + xmlhttp.responseText);
|
||||
// document.getElementById("debugbottomspan").innerHTML = manDiaLnext_query + "\n" + xmlhttp.responseText;
|
||||
// document.getElementById("debugbottomspan").innerHTML = manDiaLnext_query + "\n\n" + xmlhttp.responseText;
|
||||
MDnextResponse = xmlhttp.responseText;
|
||||
|
||||
if (active_ingroup_dial.length > 0)
|
||||
@@ -9844,6 +9884,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
LIVE_default_xfer_group = MDnextResponse_array[60];
|
||||
CalL_ScripT_id_two = MDnextResponse_array[61];
|
||||
CalL_ScripT_color_two = MDnextResponse_array[62];
|
||||
browser_alert_sound = MDnextResponse_array[63];
|
||||
browser_alert_volume = MDnextResponse_array[64];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
@@ -11102,7 +11144,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
CFAI_sent=0;
|
||||
check_incoming = xmlhttprequestcheckauto.responseText;
|
||||
// alert(checkVDAI_query);
|
||||
// document.getElementById("debugbottomspan").innerHTML = checkVDAI_query + "\n" + xmlhttp.responseText;
|
||||
// document.getElementById("debugbottomspan").innerHTML = checkVDAI_query + "\n" + xmlhttprequestcheckauto.responseText;
|
||||
var check_VDIC_array=check_incoming.split("\n");
|
||||
if (check_VDIC_array[0] == '1')
|
||||
{
|
||||
@@ -11216,6 +11258,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{CalL_ScripT_id_two = VDIC_data_VDIG[38];}
|
||||
if (VDIC_data_VDIG[39].length > 0)
|
||||
{CalL_ScripT_color_two = VDIC_data_VDIG[39];}
|
||||
if (VDIC_data_VDIG[40].length > 0)
|
||||
{
|
||||
browser_alert_sound = VDIC_data_VDIG[40];
|
||||
browser_alert_volume = VDIC_data_VDIG[41];
|
||||
}
|
||||
|
||||
var VDIC_data_VDFR=check_VDIC_array[3].split("|");
|
||||
if ( (VDIC_data_VDFR[1].length > 1) && (VDCL_fronter_display == 'Y') )
|
||||
@@ -11838,6 +11885,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
}
|
||||
}
|
||||
|
||||
if (SSbrowser_call_alerts > 0)
|
||||
{
|
||||
if ( (browser_alert_sound != '') && (browser_alert_sound != '---NONE---') && (browser_alert_sound != '---DISABLED---') )
|
||||
{
|
||||
button_click_log = button_click_log + "" + SQLdate + "-----AUTOplay_browser_sound---" + browser_alert_sound + " " + browser_alert_volume + "|";
|
||||
play_browser_sound(browser_alert_sound,browser_alert_volume);
|
||||
}
|
||||
}
|
||||
if (alert_enabled=='ON')
|
||||
{
|
||||
var callnum = dialed_number;
|
||||
@@ -14577,6 +14632,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
CalL_ScripT_color='';
|
||||
CalL_ScripT_id_two='';
|
||||
CalL_ScripT_color_two='';
|
||||
browser_alert_sound = CAMPbrowser_alert_sound;
|
||||
browser_alert_volume = CAMPbrowser_alert_volume;
|
||||
callback_gmt_offset='';
|
||||
callback_timezone='';
|
||||
document.getElementById("SBC_timezone_span").innerHTML = '<?php echo _QXZ("Loading"); ?>...';
|
||||
@@ -21817,11 +21874,27 @@ if ($agent_display_dialable_leads > 0)
|
||||
<audio id='ChatAudioAlertFile'><source src="sounds/chat_alert.mp3" type="audio/mpeg"></audio>
|
||||
<audio id='EmailAudioAlertFile'><source src="sounds/email_alert.mp3" type="audio/mpeg"></audio>
|
||||
|
||||
<?php
|
||||
if ($SSbrowser_call_alerts > 0)
|
||||
{
|
||||
$bas=0; $bas_embed_output='';
|
||||
$browser_alert_sounds_listARY = explode(',',$browser_alert_sounds_list);
|
||||
$browser_alert_sounds_listARY_ct = count($browser_alert_sounds_listARY);
|
||||
while ($browser_alert_sounds_listARY_ct > $bas)
|
||||
{
|
||||
$bas_embed_output .= "<audio id='BAS_$browser_alert_sounds_listARY[$bas]'><source src=\"sounds/".$browser_alert_sounds_listARY[$bas].".mp3\" type=\"audio/mpeg\"></audio>\n";
|
||||
$bas++;
|
||||
}
|
||||
echo "$bas_embed_output";
|
||||
echo "\n";
|
||||
}
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -81,6 +81,7 @@
|
||||
# 190530-1013 - Added javascript for active list change feature
|
||||
# 191028-1739 - Added VM Message Groups
|
||||
# 200206-2314 - Added password length indicator
|
||||
# 200407-1534 - Added play_browser_sound javascript function for campaigns/ingroups
|
||||
#
|
||||
|
||||
$stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled,custom_fields_enabled,allow_emails,level_8_disable_add,allow_chats,enable_languages,admin_row_click,admin_screen_colors,user_new_lead_limit,user_territories_active,qc_features_active,agent_soundboards,enable_drop_lists,allow_ip_lists from system_settings;";
|
||||
@@ -844,7 +845,6 @@ else
|
||||
document.getElementById("audio_chooser_span").innerHTML = '';
|
||||
}
|
||||
|
||||
|
||||
function user_submit()
|
||||
{
|
||||
var user_field = document.getElementById("user");
|
||||
@@ -852,6 +852,22 @@ else
|
||||
document.userform.submit();
|
||||
}
|
||||
|
||||
function play_browser_sound(temp_element,temp_volume)
|
||||
{
|
||||
var taskIndex = document.getElementById(temp_element).selectedIndex;
|
||||
var taskValue = document.getElementById(temp_element).options[taskIndex].value;
|
||||
var temp_selected_element = 'BAS_' + taskValue;
|
||||
if ( (taskValue != '---NONE---') && (taskValue != '---DISABLED---') && (taskValue != '') )
|
||||
{
|
||||
var temp_audio = document.getElementById(temp_selected_element);
|
||||
var taskVolIndex = document.getElementById(temp_volume).selectedIndex;
|
||||
var taskVolValue = document.getElementById(temp_volume).options[taskVolIndex].value;
|
||||
var temp_js_volume = (taskVolValue * .01);
|
||||
temp_audio.volume = temp_js_volume;
|
||||
// alert(temp_selected_element + ' ' + temp_js_volume);
|
||||
temp_audio.play();
|
||||
}
|
||||
}
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# version: 20200406231801
|
||||
# version: 20200407150901
|
||||
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>
|
||||
@@ -249,6 +249,7 @@ campaigns-agent_lead_search_method Agent Lead Search Method <QXZ>If Agent Lead S
|
||||
campaigns-campaign_script Campaign Script <QXZ>This menu allows you to choose the script that will appear on the agents screen for this campaign. Select NONE to show no script for this campaign.</QXZ>
|
||||
campaigns-clear_script Clear Script <QXZ>This option if enabled will clear the agent SCRIPT tab after a call has been dispositioned by the agent. Default is DISABLED.</QXZ>
|
||||
campaigns-get_call_launch Get Call Launch <QXZ>This menu allows you to choose whether you want to auto-launch the web-form page in a separate window, auto-switch to the SCRIPT, EMAIL, or CHAT tab ,emails and chats must be allowed to have those options available, or do nothing when a call is sent to the agent for this campaign. If custom list fields are enabled on your system, FORM will open the FORM tab upon connection of a call to an agent. If the PREVIEW option is included, then the launch will happen if a lead is being previewed.</QXZ>
|
||||
campaigns-browser_alert_sound Agent Browser Call Alert Sound <QXZ>This is the sound that will be played in the web browser that the agent is logged into the agent screen with when a call arrives into the agent session. Default is ---NONE--- for no sound.</QXZ>
|
||||
campaigns-xferconf_a_dtmf Xfer-Conf DTMF <QXZ>These fields allow for you to have two sets of Transfer Conference and DTMF presets. When the call or campaign is loaded, the agent screen will show two buttons on the transfer-conference frame and auto-populate the number-to-dial and the send-dtmf fields when pressed. If you want to allow Consultative Transfers, a fronter to a closer, have the agent use the CONSULTATIVE checkbox, which does not work for third party non-agent consultative calls. For those just have the agent click the Dial With Customer button. Then the agent can just LEAVE-3WAY-CALL and move on to their next call. If you want to allow Blind transfers of customers to an AGI script for logging or an IVR, then place AXFER in the number-to-dial field. You can also specify a custom extension after the AXFER, for instance if you want to do a call to a special IVR you have set to extension 83900 you would put AXFER83900 in the number-to-dial field.</QXZ>
|
||||
campaigns-prepopulate_transfer_preset PrePopulate Transfer Preset <QXZ>This option will fill in the Number to Dial field in the Transfer Conference frame of the agent screen if defined. Default is N for disabled.</QXZ>
|
||||
campaigns-enable_xfer_presets Enable Transfer Presets <QXZ>This option will enable the Presets sub menu to appear at the top of the Campaign Modification page, and also you will have the ability to specify Preset dialing numbers for Agents to use in the Transfer-Conference frame of the agent interface. Default is DISABLED. CONTACTS is an option only if contact_information is enabled on your system, that is a custom feature.</QXZ>
|
||||
@@ -460,6 +461,7 @@ inbound_groups-ingroup_script Campaign Script <QXZ>This menu allows you to choos
|
||||
inbound_groups-ignore_list_script_override Ignore List Script Override <QXZ>This option allows you to ignore the list ID Script Override option for calls coming into this In-Group. Setting this to Y will ignore any List ID script settings. Default is N.</QXZ>
|
||||
inbound_groups-status_group_id Status Group Override <QXZ>If this field is set, this Status Group will be used instead of the campaign statuses for calls handled by agents from this inbound group. This does not affect System Statuses which will always be shown. Statuses defined within this status group will not be available with Campaign HotKeys unless they are defined in Campaign Statuses. Default is not set.</QXZ>
|
||||
inbound_groups-get_call_launch Get Call Launch <QXZ>This menu allows you to choose whether you want to auto-launch the web-form page in a separate window, auto-switch to the SCRIPT, EMAIL, or CHAT tab ,emails and chats must be allowed to have those options available, or do nothing when a call is sent to the agent for this campaign. If custom list fields are enabled on your system, FORM will open the FORM tab upon connection of a call to an agent.</QXZ>
|
||||
inbound_groups-browser_alert_sound Agent Browser Call Alert Sound <QXZ>This option will override the same campaign setting for calls from this inbound group, if not set to ---DISABLED---. Default is ---DISABLED---.</QXZ>
|
||||
inbound_groups-group_handling Group Handling <QXZ>This menu allows you to choose what type of inbound activity this group should handle. PHONE means this in-group is for handling phone calls and will show under the In-Group section. EMAIL is for handling incoming emails and will cause the group to be listed under the Email Group section. CHAT is for handling customer chats and will cause the group to be listed under the Email Group section</QXZ>
|
||||
inbound_groups-xferconf_a_dtmf Xfer-Conf DTMF <QXZ>These four fields allow for you to have two sets of Transfer Conference and DTMF presets. When the call or campaign is loaded, the agent screen will show two buttons on the transfer-conference frame and auto-populate the number-to-dial and the send-dtmf fields when pressed. If you want to allow Consultative Transfers, a fronter to a closer, have the agent use the CONSULTATIVE checkbox, which does not work for third party agent screen consultative calls. For those just have the agent click the Dial With Customer button. Then the agent can just LEAVE-3WAY-CALL and move on to their next call. If you want to allow Blind transfers of customers to an AGI script for logging or an IVR, then place AXFER in the number-to-dial field. You can also specify a custom extension after the AXFER, for instance if you want to do a call to a special IVR you have set to extension 83900 you would put AXFER83900 in the number-to-dial field.</QXZ>
|
||||
inbound_groups-timer_action Timer Action <QXZ>This feature allows you to trigger actions after a certain amount of time. the D1 and D2 DIAL options will launch a call to the Transfer Conference Number presets and send them to the agent session, this is usually used for simple IVR validation AGI applications or just to play a pre-recorded message. WEBFORM will open the web form address. MESSAGE_ONLY will simply display the message that is in the field below. NONE will disable this feature and is the default. This setting will override the Campaign settings. HANGUP will hang up the call when the timer is triggered, CALLMENU will send the call to the Call Menu specified in the Timer Action Destination field, EXTENSION will send the call to the Extension that is specified in the Timer Action Destination field, IN_GROUP will send the call to the In-Group specified in the Timer Action Destination field.</QXZ>
|
||||
@@ -1001,6 +1003,7 @@ settings-vdc_header_phone_format Agent Screen Customer Phone Format <QXZ>This me
|
||||
settings-agent_xfer_park_3way Agent Screen Park Xfer Button <QXZ>This option defines whether the agent screen can have a button in the Transfer Conference frame that will allow the agent to park a 3way call. Default is 0 for disabled.</QXZ>
|
||||
settings-agent_logout_link Agent Screen Logout Link Credentials <QXZ>This option controls whether the agent screen logout link will contain the agent credentials as a part of the link, or if the link will go to a blank login page. -0- will go to a blank form and -1- will go to a form that has the user credentials filled in.</QXZ>
|
||||
settings-agent_soundboards Agent Soundboards <QXZ>This option allows you to create agent soundboards that allow an agent in the user screen to click on audio files to have them play in their session. Default is 0 for disabled.</QXZ>
|
||||
settings-browser_call_alerts Agent Browser Call Alerts <QXZ>This option, if enabled, will allow you to select a sound, at the campaign level, when a call arrives in an agent session, to be played by the web browser program that the agent is using to log into the Agent Screen with. This is only recommended for agents using softphones or webphones. If you decide to use this option, you may want to contact your system administrator to disable the default enter and leave session sounds on your dialers. Default is 0 for disabled.</QXZ>
|
||||
settings-enable_pause_code_limits Enable Pause Code Time Limits <QXZ>This option allows you to be able to set the Time Limit field in campaign pause codes, which will change the color of the agent on the Real-Time Report if they are in that pause code for more than the defined amount of seconds. Default is 0 for disabled.</QXZ>
|
||||
settings-agentonly_callback_campaign_lock Agent Only Callback Campaign Lock <QXZ>This option defines whether AGENTONLY callbacks are locked to the campaign that the agent originally created them under. Setting this to 1 means that the agent can only dial them from the campaign they were set under, 0 means that the agent can access them no matter what campaign they are logged into. Default is 1.</QXZ>
|
||||
settings-callback_time_24hour Callback Time 24 Hours <QXZ>This option defines whether the agent sees 12 hour time with AM PM options or 24 hour time on the Callback setting screen in the agent interface. Default is 0 for disabled.</QXZ>
|
||||
|
||||
Reference in New Issue
Block a user