From 7c830fd029464a4935b37f1666851cb76b8708e9 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 26 Apr 2024 02:32:12 +0000 Subject: [PATCH] small fix for last api change git-svn-id: svn://192.168.202.10@3831 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agc_2-X/trunk/www/agc/api.php b/agc_2-X/trunk/www/agc/api.php index e5b921c2..4d41177a 100644 --- a/agc_2-X/trunk/www/agc/api.php +++ b/agc_2-X/trunk/www/agc/api.php @@ -4257,7 +4257,7 @@ if ($function == 'transfer_conference') if (preg_match("/YES/i",$md_check)) { # check for still-active previous 3-way calls from this agent and send error if any are found - $stmt = "select count(*) from vicidial_3way_press_live where user='$agent_user' and status!='HUNGUP';"; + $stmt = "select count(*) from vicidial_3way_press_live where user='$agent_user' and status NOT IN('HUNGUP','DEFEATED','TRANSFER','TOOSLOW','DECLINED');"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); $VDTW_live_ct = mysqli_num_rows($rslt);