From 655188a5a817296e568a2af5ad836912addda5a6 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 5 Oct 2006 05:30:01 +0000 Subject: [PATCH] added volumecontrol_active variable at the top of vicidial.php to enable/disable volume control, and some other small changes git-svn-id: svn://192.168.202.10@335 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../TO_BE_TRANSLATED_2.0.2.txt | 48 +++++++++---------- www/agc/vicidial.php | 20 ++++++-- 2 files changed, 39 insertions(+), 29 deletions(-) diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt index d2351bdd..557e5116 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt @@ -1,32 +1,32 @@ ############################################################ ADMIN -VICIDIAL Server Trunks allows you to restrict the outgoing lines that are used on this server for campaign dialing on a per-campaign basis. You have the option to reserve a specific number of lines to be used by only one campaign as well as allowing that campaign to run over its reserved lines into whatever lines remain open, as long at the total lines used by vicidial on this server is less than the Max VICIDIAL Trunks setting. Not having any of these records will allow the campaign that dials the line first to have as many lines as it can get under the Max VICIDIAL Trunks setting -VICIDIAL Balance Dialing -<\/B> Setting this field to Y will allow the server to place balance calls for campaigns in VICIDIAL so that the defined dial level can be met even if there are no agents logged into that campaign on this server. Default is N -VICIDIAL Balance Offlimits -<\/B> This setting defines the number of trunks to not allow VICIDIAL balance dialing to use. For example if you have 40 max vicidial trunks and balance offlimits is set to 10 you will only be able to use 30 trunk lines for VICIDIAL balance dialing. Default is 0 -VICIDIAL SERVER TRUNK RECORD NOT ADDED -there is already a server-trunk record for this campaign -the number of vicidial trunks is too high -VICIDIAL SERVER TRUNK RECORD ADDED -VICIDIAL SERVER TRUNK RECORD NOT MODIFIED -VICIDIAL SERVER TRUNK RECORD MODIFIED -VICIDIAL SERVER TRUNK RECORD NOT DELETED -VICIDIAL SERVER TRUNK RECORD DELETED -campaign must be between 3 and 8 characters in length -server_ip delay must be at least 7 characters -trunks must be a digit from 0 to 9999 -VICIDIAL Balance Dialing -VICIDIAL Balance Offlimits -ADDING NEW SERVER VICIDIAL TRUNK RECORD -ADD NEW SERVER VICIDIAL TRUNK RECORD -MODIFY SERVER VICIDIAL TRUNK RECORD -DELETE SERVER VICIDIAL TRUNK RECORD -VICIDIAL TRUNKS FOR THIS SERVER -RESTRICTION -TRUNKS +VICIDIAL Server Trunks allows you to restrict the outgoing lines that are used on this server for campaign dialing on a per-campaign basis. You have the option to reserve a specific number of lines to be used by only one campaign as well as allowing that campaign to run over its reserved lines into whatever lines remain open, as long at the total lines used by vicidial on this server is less than the Max VICIDIAL Trunks setting. Not having any of these records will allow the campaign that dials the line first to have as many lines as it can get under the Max VICIDIAL Trunks setting|| +VICIDIAL Balance Dialing -<\/B> Setting this field to Y will allow the server to place balance calls for campaigns in VICIDIAL so that the defined dial level can be met even if there are no agents logged into that campaign on this server. Default is N|| +VICIDIAL Balance Offlimits -<\/B> This setting defines the number of trunks to not allow VICIDIAL balance dialing to use. For example if you have 40 max vicidial trunks and balance offlimits is set to 10 you will only be able to use 30 trunk lines for VICIDIAL balance dialing. Default is 0|| +VICIDIAL SERVER TRUNK RECORD NOT ADDED|| +there is already a server-trunk record for this campaign|| +the number of vicidial trunks is too high|| +VICIDIAL SERVER TRUNK RECORD ADDED|| +VICIDIAL SERVER TRUNK RECORD NOT MODIFIED|| +VICIDIAL SERVER TRUNK RECORD MODIFIED|| +VICIDIAL SERVER TRUNK RECORD NOT DELETED|| +VICIDIAL SERVER TRUNK RECORD DELETED|| +campaign must be between 3 and 8 characters in length|| +server_ip delay must be at least 7 characters|| +trunks must be a digit from 0 to 9999|| +VICIDIAL Balance Dialing|| +VICIDIAL Balance Offlimits|| +ADDING NEW SERVER VICIDIAL TRUNK RECORD|| +ADD NEW SERVER VICIDIAL TRUNK RECORD|| +MODIFY SERVER VICIDIAL TRUNK RECORD|| +DELETE SERVER VICIDIAL TRUNK RECORD|| +VICIDIAL TRUNKS FOR THIS SERVER|| +RESTRICTION|| +TRUNKS|| ############################################################ CLIENT - +VOLUME|| ############################################################ ADMIN Manual diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 8f8d58a0..083ef00b 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -208,6 +208,7 @@ $webform_sessionname = '1'; # set to 1 to include the session_name in webform UR $local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server $clientDST = '1'; # set to 1 to check for DST on server for agent time $no_delete_sessions = '0'; # set to 1 to not delete sessions at logout +$volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels $TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen @@ -1393,6 +1394,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var CBcallback_time = ''; var CBuser = ''; var CBcomments = ''; + var volumecontrol_active = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Resume\""; @@ -1847,7 +1849,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var LMAcontent_match=0; var conv_start=-1; // var live_conf_HTML = "LIVE CALLS IN THIS CONFERENCE:
"; - var live_conf_HTML = "LIVE CALLS IN YOUR SESSION:
#REMOTE CHANNELHANGUPXFER
"; + var live_conf_HTML = "LIVE CALLS IN YOUR SESSION:
#REMOTE CHANNELHANGUPVOLUME
"; if ( (LMAcount > live_conf_calls) || (LMAcount < live_conf_calls) || (LMAforce > 0)) { LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; @@ -1864,8 +1866,14 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var conv_ct = (loop_ct + conv_start); var channelfieldA = conf_chan_array[conv_ct]; // live_conf_HTML = live_conf_HTML + ""; - live_conf_HTML = live_conf_HTML + ""; - + if (volumecontrol_active!=1) + { + live_conf_HTML = live_conf_HTML + ""; + } + else + { + live_conf_HTML = live_conf_HTML + ""; + } // var debugspan = document.getElementById("debugbottomspan").innerHTML; if (channelfieldA == lastcustchannel) {custchannellive++;} @@ -3403,7 +3411,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.getElementById("DialBlindVMail").innerHTML = "\"Blind"; - if (callserverip == server_ip) + if (lastcustserverip == server_ip) { document.getElementById("VolumeUpSpan").innerHTML = ""; document.getElementById("VolumeDownSpan").innerHTML = ""; @@ -4770,6 +4778,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} {clearDiv('DiaLLeaDPrevieW');} if (alt_phone_dialing != 1) {clearDiv('DiaLDiaLAltPhonE');} + if (volumecontrol_active != '1') + {hideDiv('VolumeControlSpan');} document.vicidial_form.LeadLookuP.checked=true; document.getElementById("sessionIDspan").innerHTML = session_id; @@ -5386,7 +5396,7 @@ echo "\n"; -
+
#REMOTE CHANNELHANGUPVOLUME
" + loop_ct + "" + channelfieldA + "HangupXFER
" + loop_ct + "" + channelfieldA + "HANGUP    
" + loop_ct + "" + channelfieldA + "HANGUP
" + loop_ct + "" + channelfieldA + "HANGUP