浏览代码

Merge pull request #1326 from mafoo/Bugfix-app/system

patch for SunOS
FusionPBX 9 年之前
父节点
当前提交
0136e26d86
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/install/resources/classes/detect_switch.php

+ 2 - 1
core/install/resources/classes/detect_switch.php

@@ -128,10 +128,11 @@ require_once "resources/classes/EventSocket.php";
 				throw new Exception('Failed to use event socket');
 			}
 			$FS_Version = $this->event_socket_request('api version');
-			preg_match("/FreeSWITCH Version (\d+\.\d+\.\d+(?:\.\d+)?).*\(.*?(\d+\w+)\s*\)/", $FS_Version, $matches);
+			preg_match("/FreeSWITCH Version (\d+)\.(\d+)\.(\d+(?:\.\d+)?).*\(.*?(\d+\w+)\s*\)/", $FS_Version, $matches);
 			$this->_major = $matches[1];
 			$this->_minor = $matches[2];
 			$this->_build = $matches[3];
+			$this->_bits  = $matches[4];
 			$FS_Vars = $this->event_socket_request('api global_getvar');
 			foreach (explode("\n",$FS_Vars) as $FS_Var){
 				preg_match("/(\w+_dir)=(.*)/", $FS_Var, $matches);