From a12e3f12b0f7559fb7cdf9835a950a8f9bbdf1c7 Mon Sep 17 00:00:00 2001 From: Matthew Vale Date: Wed, 30 Dec 2015 16:54:36 +0000 Subject: [PATCH] added correct bits detection --- core/install/resources/classes/detect_switch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/install/resources/classes/detect_switch.php b/core/install/resources/classes/detect_switch.php index 2427b5fdac..2f99213ab6 100644 --- a/core/install/resources/classes/detect_switch.php +++ b/core/install/resources/classes/detect_switch.php @@ -122,10 +122,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);