From b73696bd4c9e7be79cfa8a3c8875bb77207b408c Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 9 Jan 2007 21:35:31 +0000 Subject: [PATCH] added ALTPH2 and ADDR3 HotKey options in admin.php changed behaviour of manual dial hotkeys to automatically dial next number, vicidial.php added ability for agent to dial alternate phone number and address3 with hotkeys, vicidial.php git-svn-id: svn://192.168.202.10@457 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../TO_BE_TRANSLATED_2.0.3.txt | 1 + agc_2-X/trunk/www/agc/vicidial.php | 91 ++++++++++++++++--- agc_2-X/trunk/www/vicidial/admin.php | 10 +- 3 files changed, 88 insertions(+), 14 deletions(-) diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt index 41376289..b29e2f2d 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt @@ -2,6 +2,7 @@ ADAPT OVERRIDE|| The ADAPT OVERRIDE checkbox allows you to force a new dial level even though the dial method is in an ADAPT mode. This is useful if there is a dramatic shift in the quality of leads and you want to drastically change the dial_level manually.|| +There are two special HotKey options that you can use in conjunction with Alternate Phone number dialing, ALTPH2 - Alternate Phone Hot Dial and ADDR3-----Address3 Hot Dial allow an agent to use a hotkey to hangup their call, stay on the same lead, and dial another contact number from that lead.|| ############################################################ CLIENT diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 1a6db4e8..bea279ad 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -133,6 +133,8 @@ # 61130-1617 - Added lead_id to MonitorConf for recording_log # 61221-1212 - Changed width to 760 to better fit 800x600 screens, widened SCRIPT # 70109-1128 - Fixed wrapup timer bug +# 70109-1635 - Added option for HotKeys automatically dialing next number in manual mode +# - Added option for alternate number dialing with hotkeys # require("dbconnect.php"); @@ -178,8 +180,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];} $forever_stop=0; -$version = '2.0.106'; -$build = '70109-1128'; +$version = '2.0.107'; +$build = '70109-1635'; if ($force_logout) { @@ -1434,6 +1436,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var CBuser = ''; var CBcomments = ''; var volumecontrol_active = ''; + var manual_auto_hotkey = 0; var DiaLControl_auto_HTML = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Resume\""; @@ -3671,7 +3674,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // Send Hangup command for customer call connected to the conference now to Manager - function dialedcall_send_hangup(dispowindow) + function dialedcall_send_hangup(dispowindow,hotkeysused,altdispo) { var form_cust_channel = document.vicidial_form.callchannel.value; var form_cust_serverip = document.vicidial_form.callserverip.value; @@ -3809,10 +3812,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (document.vicidial_form.DiaLAltPhonE.checked==true) { reselect_alt_dial = 1; + if (altdispo == 'ALTPH2') + { + ManualDialOnly('ALTPhoneE'); + } + else + { + if (altdispo == 'ADDR3') + { + ManualDialOnly('AddresS3'); + } + else + { + if (hotkeysused == 'YES') + { + reselect_alt_dial = 0; + manual_auto_hotkey = 1; + } + } + } } else { - document.getElementById("DiaLControl").innerHTML = "\"Dial"; + if (hotkeysused == 'YES') + { + manual_auto_hotkey = 1; + } + else + { + document.getElementById("DiaLControl").innerHTML = "\"Dial"; + } reselect_alt_dial = 0; } } @@ -3821,6 +3850,27 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if (document.vicidial_form.DiaLAltPhonE.checked==true) { reselect_alt_dial = 1; + if (altdispo == 'ALTPH2') + { + ManualDialOnly('ALTPhoneE'); + } + else + { + if (altdispo == 'ADDR3') + { + ManualDialOnly('AddresS3'); + } + else + { + if (hotkeysused == 'YES') + { + document.getElementById("MainStatuSSpan").style.background = panel_bgcolor; + document.getElementById("MainStatuSSpan").innerHTML = ''; + document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML_OFF; + reselect_alt_dial = 0; + } + } + } } else { @@ -4204,6 +4254,15 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} AutoDial_ReSume_PauSe("VDADready","NO"); // document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML_ready; } + else + { + // trigger HotKeys manual dial automatically go to next lead + if (manual_auto_hotkey == '1') + { + manual_auto_hotkey = 0; + ManualDialNext('','','','',''); + } + } } } } @@ -4537,14 +4596,24 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} document.vicidial_form.inert_button.focus(); document.vicidial_form.inert_button.blur(); CustomerData_update(); - HKdispo_display = 4; - HKfinish=1; var HKdispo_ary = HKdispo.split(" ----- "); - document.getElementById("HotKeyDispo").innerHTML = HKdispo_ary[0] + " - " + HKdispo_ary[1]; - showDiv('HotKeyActionBox'); - hideDiv('HotKeyEntriesBox'); - document.vicidial_form.DispoSelection.value = HKdispo_ary[0]; - dialedcall_send_hangup('NO'); + if ( (HKdispo_ary[0] == 'ALTPH2') || (HKdispo_ary[0] == 'ADDR3') ) + { + if (document.vicidial_form.DiaLAltPhonE.checked==true) + { + dialedcall_send_hangup('NO', 'YES', HKdispo_ary[0]); + } + } + else + { + HKdispo_display = 4; + HKfinish=1; + document.getElementById("HotKeyDispo").innerHTML = HKdispo_ary[0] + " - " + HKdispo_ary[1]; + showDiv('HotKeyActionBox'); + hideDiv('HotKeyEntriesBox'); + document.vicidial_form.DispoSelection.value = HKdispo_ary[0]; + dialedcall_send_hangup('NO', 'YES', HKdispo_ary[0]); + } // DispoSelect_submit(); // AutoDialWaiting = 1; // AutoDial_ReSume_PauSe("VDADready"); diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 8133f937..09803a20 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -802,12 +802,13 @@ $lead_filter_sql = ereg_replace(";","",$lead_filter_sql); # 61129-1028 - Added headers to Users and Phones with clickable order-by titles # 70108-1405 - Added ADAPT OVERRIDE to allow for forced dial_level changes in ADAPT dial methods # - Screen width definable at top of script, merged server_stats into this script +# 70109-1638 - Added ALTPH2 and ADDR3 hotkey options for alt number dialing with HotKeys # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time -$version = '2.0.74'; -$build = '70108-1405'; +$version = '2.0.75'; +$build = '70109-1638'; $STARTtime = date("U"); @@ -1858,7 +1859,8 @@ echo "
VICIDIAL_CAMPAIGN_HOTKEYS TABLE


-Through the use of custom campaign hotkeys, agents that use the vicidial web-client can hangup and disposition calls just by pressing a single key on their keyboard. +Through the use of custom campaign hotkeys, agents that use the vicidial web-client can hangup and disposition calls just by pressing a single key on their keyboard. There are two special HotKey options that you can use in conjunction with Alternate Phone number dialing, ALTPH2 - Alternate Phone Hot Dial and ADDR3-----Address3 Hot Dial allow an agent to use a hotkey to hangup their call, stay on the same lead, and dial another contact number from that lead. + @@ -6466,6 +6468,8 @@ echo "\n"; echo "   \n"; echo "Status:   \n"; echo "
\n"; echo "
\n";