From c7ff5f5c203722e55a75b3feb72b3b79691ad615 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 13 Sep 2016 10:37:39 +0000 Subject: [PATCH] Fixed StopMonitorConf bug involving agent-invoked commands to stop recording, manager_send.php git-svn-id: svn://192.168.202.10@2588 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/manager_send.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/www/agc/manager_send.php b/agc_2-X/trunk/www/agc/manager_send.php index 789ffb54..1a3539b9 100644 --- a/agc_2-X/trunk/www/agc/manager_send.php +++ b/agc_2-X/trunk/www/agc/manager_send.php @@ -129,10 +129,11 @@ # 150915-2039 - Added option for RECID as variable in recording filename # 151230-0910 - Fixed transfer of parked call logging issue #901 # 160101-1130 - Added code to handle routing initiated recordings +# 160912-2310 - Fixed StopMonitorConf bug involving agent-invoked commands to stop recording # -$version = '2.12-76'; -$build = '160101-1130'; +$version = '2.12-77'; +$build = '160912-2310'; $php_script = 'manager_send.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=138; @@ -2187,7 +2188,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) $channel_live=1; $uniqueidSQL=''; - if ( (strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<8) ) + if ( (($ACTION=="MonitorConf") && ((strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<8))) || (($ACTION=="StopMonitorConf") && ((strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<4))) ) { $channel_live=0; echo _QXZ("Channel %1s is not valid or exten %2s is not valid or filename: %3s is not valid, %4s command not inserted",0,'',$channel,$exten,$filename,$ACTION)."\n";