From 57c4b209c5ec0d08f6c90cbd7e6c8513ce611a23 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 9 May 2017 17:29:45 +0000 Subject: [PATCH] small fix for rt blind monitor logging git-svn-id: svn://192.168.202.10@2750 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/FastAGI_log.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/FastAGI_log.pl b/bin/FastAGI_log.pl index 172c6ca4..baf358ab 100644 --- a/bin/FastAGI_log.pl +++ b/bin/FastAGI_log.pl @@ -675,7 +675,7 @@ sub process_request ### BEGIN log end of real-time blind monitor calls ### if ( ( ($callerid =~ /^BM\d\d\d\d\d\d\d\d/) && ($channel =~ /ASTblind/) ) || ($callerid =~ /^BB\d\d\d\d\d\d\d\d/) || ($callerid =~ /^BW\d\d\d\d\d\d\d\d/) ) { - $stmtA = "SELECT monitor_start_time,UNIX_TIMESTAMP(monitor_start_time) from vicidial_rt_monitor_log where caller_code='$callerid' and monitor_end_time is NULL;"; + $stmtA = "SELECT monitor_start_time,UNIX_TIMESTAMP(monitor_start_time) from vicidial_rt_monitor_log where caller_code='$callerid' and ( (monitor_end_time is NULL) or (monitor_start_time=monitor_end_time) );"; $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; $sthArows=$sthA->rows;