diff --git a/agc_2-X/trunk/docs/CROSS_CLUSTER_COMMUNICATION.txt b/agc_2-X/trunk/docs/CROSS_CLUSTER_COMMUNICATION.txt index 5d2a3815..7d9dafb2 100644 --- a/agc_2-X/trunk/docs/CROSS_CLUSTER_COMMUNICATION.txt +++ b/agc_2-X/trunk/docs/CROSS_CLUSTER_COMMUNICATION.txt @@ -2,7 +2,7 @@ CROSS-CLUSTER COMMUNICATION Started: 2011-05-27 Updated: 2017-06-09 -------------------------------- - SIMPLER IMPLEMENTED OPTION: implemented in SVN/trunk revision 2776 + SIMPLER IMPLEMENTED OPTION: implemented in SVN/trunk revision 2777 -------------------------------- Below is a description of a simple cross-cluster option, which is to send lead data in one direction from one cluster to another as a phone call is sent over. @@ -14,6 +14,10 @@ Below is a description of a simple cross-cluster option, which is to send lead d (Note: the phone entry on the destination cluster must have the Outbound CallerID and Fullname fields blank) The destination phone entry needs to use "trunkinbound" as it's phone and exten context +- Agent on the originating cluster will do a blind-transfer or dial-with-customer to a custom dialplan number that goes to the destination cluster + Agent should click on the "commit" link in the Customer Information screen before transferring the call(top right corner) + This will ensure that any customer info they have altered is updated on the origination database before the destination cluster gets the call + - At the DID, the call will get sent to a Call Menu where the call will go through an AGI script Set the prompt to "wait-moment|cm_sc_ccc_lookup_insert.agi,ccc_test---8199" # Flag Options: (separated by triple-pipe: "---") diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 1cab987f..3453e2d1 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -432,10 +432,11 @@ # 170526-2327 - Added additional variable filtering # 170527-2208 - Added more additional variable filtering, fixed rare inbound logging issue #1017 # 170605-1633 - Added vendor_lead_code to agent lead search results screen +# 170609-1710 - small debug addition # -$version = '2.14-326'; -$build = '170605-1633'; +$version = '2.14-327'; +$build = '170609-1710'; $php_script = 'vdc_db_query.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=684; @@ -12855,6 +12856,7 @@ if ($ACTION == 'updateLEAD') if ($format=='debug') {echo "\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00163',$user,$server_ip,$session_name,$one_mysql_log);} + $VLaffected_rows = mysqli_affected_rows($link); } $random = (rand(1000000, 9999999) + 10000000); @@ -12874,7 +12876,7 @@ if ($ACTION == 'updateLEAD') } echo _QXZ("Lead %1s information has%2s been updated",0,'',$lead_id,$DO_NOT_UPDATE_text)."\n"; - $stage = "$DO_NOT_UPDATE|$DO_NOT_UPDATEphone|$random"; + $stage = "$DO_NOT_UPDATE|$DO_NOT_UPDATEphone|$random|$VLaffected_rows"; } diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index d88a14b3..63bdb190 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -555,10 +555,11 @@ # 170513-1527 - Added debug logging of all alert boxes # 170531-0937 - Added Agent Events Push function # 170601-2017 - Added more agent events +# 170609-1711 - Added 'commit' function to force immediate submission of Customer Information changes to database # -$version = '2.14-525c'; -$build = '170601-2017'; +$version = '2.14-526c'; +$build = '170609-1711'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=87; $one_mysql_log=0; @@ -5040,7 +5041,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } else { - CustomerData_update(); + CustomerData_update('NO'); consult_custom_wait++; consult_custom_sent++; } @@ -5102,7 +5103,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} tasknum = Ctasknum + "*" + XfeR_GrouP + '*CXFER*' + document.vicidial_form.lead_id.value + '**' + dialed_number + '*' + user + '*' + agentdirect + '*' + VD_live_call_secondS + '*'; if (consult_custom_sent < 1) - {CustomerData_update();} + {CustomerData_update('NO');} } var regAXFvars = new RegExp("AXFER","g"); if (tasknum_string.match(regAXFvars)) @@ -5116,7 +5117,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} tasknum = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '**' + VD_live_call_secondS + '*'; if (consult_custom_sent < 1) - {CustomerData_update();} + {CustomerData_update('NO');} } @@ -6412,7 +6413,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (taskvar == 'XfeRLOCAL') { if (consult_custom_sent < 1) - {CustomerData_update();} + {CustomerData_update('NO');} document.vicidial_form.xfername.value=''; var XfeRSelecT = document.getElementById("XfeRGrouP"); @@ -12481,8 +12482,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Update vicidial_list lead record with all altered values from form - function CustomerData_update() + function CustomerData_update(commitclick) { + if (commitclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----customer_info_commit---" + commitclick + "|";} updatelead_complete=0; if ( (OtherTab == '1') && (comments_all_tabs == 'ENABLED') ) { @@ -14460,7 +14463,7 @@ if ($useIE > 0) // document.vicidial_form.inert_button.focus(); // document.vicidial_form.inert_button.blur(); button_click_log = button_click_log + "" + SQLdate + "-----hotkeypress---" + HKdispo + "|"; - CustomerData_update(); + CustomerData_update('NO'); var HKdispo_ary = HKdispo.split(" ----- "); if ( (HKdispo_ary[0] == 'ALTPH2') || (HKdispo_ary[0] == 'ADDR3') ) { @@ -14585,7 +14588,7 @@ else document.inert_form.inert_button.blur(); } button_click_log = button_click_log + "" + SQLdate + "-----hotkeypress---" + HKdispo + "|"; - CustomerData_update(); + CustomerData_update('NO'); var HKdispo_ary = HKdispo.split(" ----- "); if ( (HKdispo_ary[0] == 'ALTPH2') || (HKdispo_ary[0] == 'ADDR3') ) { @@ -16732,6 +16735,7 @@ function phone_number_format(formatphone) { hideDiv('HotKeyEntriesBox'); hideDiv('ViewCommentsBox'); hideDiv('MainPanel'); + hideDiv('MainCommit'); hideDiv('ScriptPanel'); hideDiv('ScriptRefresH'); hideDiv('EmailPanel'); @@ -16958,7 +16962,7 @@ function phone_number_format(formatphone) { document.getElementById("WrapupTimer").innerHTML = wrapup_seconds; wrapup_waiting=1; } - CustomerData_update(); + CustomerData_update('NO'); if (hide_gender < 1) { document.getElementById("GENDERhideFORie").innerHTML = ''; @@ -17163,7 +17167,7 @@ function phone_number_format(formatphone) { } else { - CustomerData_update(); + CustomerData_update('NO'); if ( (per_call_notes == 'ENABLED') && (comments_dispo_screen != 'REPLACE_CALL_NOTES') ) { var test_notesDE = document.vicidial_form.call_notes.value; @@ -17876,6 +17880,7 @@ function phone_number_format(formatphone) { hideDiv('CustomerChatRefresH'); hideDiv('InternalChatPanel'); showDiv('MainPanel'); + showDiv('MainCommit'); ShoWGenDerPulldown(); if (resumevar != 'NO') @@ -17943,6 +17948,7 @@ function phone_number_format(formatphone) { {document.vicidial_form.other_tab_comments.value = document.vicidial_form.comments.value} showDiv('OtherTabCommentsSpan'); } + hideDiv('MainCommit'); hideDiv('FormPanel'); hideDiv('FormRefresH'); hideDiv('EmailPanel'); @@ -18823,6 +18829,10 @@ if ($agent_display_dialable_leads > 0) + + + +