From fe9b3bdcbd848b7193699c7642ac6326d659ac47 Mon Sep 17 00:00:00 2001 From: mattf Date: Sat, 24 Mar 2018 02:31:51 +0000 Subject: [PATCH] Fix for dial_ingroup error message on external_dial function in api.php Added more logging for notices in vicidial.php git-svn-id: svn://192.168.202.10@2947 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/FastAGI_log.pl | 2 ++ agc_2-X/trunk/www/agc/api.php | 28 ++++++++++++++++------------ agc_2-X/trunk/www/agc/vicidial.php | 7 +++++-- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/agc_2-X/trunk/bin/FastAGI_log.pl b/agc_2-X/trunk/bin/FastAGI_log.pl index f04d6eef..0a4e526b 100644 --- a/agc_2-X/trunk/bin/FastAGI_log.pl +++ b/agc_2-X/trunk/bin/FastAGI_log.pl @@ -1641,8 +1641,10 @@ sub process_request $epc_countCAMPDATA++; } $sthA->finish(); + # if ($AGILOG) {$agi_string = "AUTO-ALT TEST: |$VD_status|$VDL_status|$VD_auto_alt_dial_statuses|$VD_auto_alt_dial|"; &agi_output;} if ($VD_auto_alt_dial_statuses =~ / $VD_status | $VDL_status /) { + if ($AGILOG) {$agi_string = "AUTO-ALT MATCH: |$VD_status|$VDL_status|$VD_auto_alt_dial_statuses|$VD_auto_alt_dial|"; &agi_output;} if ( ($VD_auto_alt_dial =~ /(ALT_ONLY|ALT_AND_ADDR3|ALT_AND_EXTENDED)/) && ($VD_alt_dial =~ /NONE|MAIN/) ) { $alt_dial_skip=0; diff --git a/agc_2-X/trunk/www/agc/api.php b/agc_2-X/trunk/www/agc/api.php index 464579ed..0094d246 100644 --- a/agc_2-X/trunk/www/agc/api.php +++ b/agc_2-X/trunk/www/agc/api.php @@ -94,10 +94,11 @@ # 180124-1608 - Added calls_in_queue_count function # 180204-2350 - Added dial_ingroup external_dial option # 180301-2302 - Added GET-AND-POST URL logging +# 180323-2227 - Fix for dial_ingroup error message on external_dial function # -$version = '2.14-60'; -$build = '180301-2302'; +$version = '2.14-61'; +$build = '180323-2227'; $startMS = microtime(); @@ -1625,17 +1626,20 @@ if ($function == 'external_dial') { $agent_ready=1; } - $stmt = "select count(*) from vicidial_inbound_groups where group_id='$dial_ingroup';"; - if ($DB) {echo "$stmt\n";} - $rslt=mysql_to_mysqli($stmt, $link); - $row=mysqli_fetch_row($rslt); - if ($row[0] < 1) + if (strlen($dial_ingroup)>0) { - $result = _QXZ("ERROR"); - $result_reason = _QXZ("defined dial_ingroup not found"); - echo "$result: $result_reason - $dial_ingroup\n"; - api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); - $dial_ingroup=''; + $stmt = "select count(*) from vicidial_inbound_groups where group_id='$dial_ingroup';"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_to_mysqli($stmt, $link); + $row=mysqli_fetch_row($rslt); + if ($row[0] < 1) + { + $result = _QXZ("NOTICE"); + $result_reason = _QXZ("defined dial_ingroup not found"); + echo "$result: $result_reason - $dial_ingroup\n"; + api_log($link,$api_logging,$api_script,$user,$agent_user,$function,$value,$result,$result_reason,$source,$data); + $dial_ingroup=''; + } } if ( ($agent_ready > 0) or (strlen($dial_ingroup)>0) ) { diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 6c8749f3..4a3acc43 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -587,10 +587,11 @@ # 180302-1704 - Fix for pause code issue # 180306-1717 - Added script_top_dispo feature # 180314-2222 - Fix for lead search screen hidden fields, issue #1079 +# 180323-2228 - Added more logging for notices # -$version = '2.14-557c'; -$build = '180314-2222'; +$version = '2.14-558c'; +$build = '180323-2228'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=87; $one_mysql_log=0; @@ -14087,6 +14088,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Show message that customer has hungup the call before agent has function CustomerChanneLGone() { + button_click_log = button_click_log + "" + SQLdate + "-----CustomerGoneShow---|"; showDiv('CustomerGoneBox'); agent_events('customer_gone', '', aec); aec++; @@ -14117,6 +14119,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Show message that there are no voice channels in the VICIDIAL session function NoneInSession() { + button_click_log = button_click_log + "" + SQLdate + "-----NoneInSessionShow---|"; showDiv('NoneInSessionBox'); agent_events('none_in_session', '', aec); aec++; document.getElementById("NoneInSessionID").innerHTML = session_id;