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:
mattf
2020-04-08 02:47:19 +00:00
parent d4c3e6fb61
commit 87cf0bae6c
48 changed files with 292 additions and 42 deletions
+17 -1
View File
@@ -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
}