|
@@ -50,13 +50,10 @@ require_once "resources/classes/EventSocket.php";
|
|
// dirs - detected by from the switch
|
|
// dirs - detected by from the switch
|
|
protected $_base_dir = '';
|
|
protected $_base_dir = '';
|
|
protected $_cache_dir = '';
|
|
protected $_cache_dir = '';
|
|
- protected $_certs_dir = '';
|
|
|
|
protected $_conf_dir = '';
|
|
protected $_conf_dir = '';
|
|
protected $_db_dir = '';
|
|
protected $_db_dir = '';
|
|
- protected $_external_ssl_dir = '';
|
|
|
|
protected $_grammar_dir = '';
|
|
protected $_grammar_dir = '';
|
|
protected $_htdocs_dir = '';
|
|
protected $_htdocs_dir = '';
|
|
- protected $_internal_ssl_dir = '';
|
|
|
|
protected $_log_dir = '';
|
|
protected $_log_dir = '';
|
|
protected $_mod_dir = '';
|
|
protected $_mod_dir = '';
|
|
protected $_recordings_dir = '';
|
|
protected $_recordings_dir = '';
|
|
@@ -67,13 +64,10 @@ require_once "resources/classes/EventSocket.php";
|
|
protected $_temp_dir = '';
|
|
protected $_temp_dir = '';
|
|
public function base_dir() { return $this->_base_dir; }
|
|
public function base_dir() { return $this->_base_dir; }
|
|
public function cache_dir() { return $this->_cache_dir; }
|
|
public function cache_dir() { return $this->_cache_dir; }
|
|
- public function certs_dir() { return $this->_certs_dir; }
|
|
|
|
public function conf_dir() { return $this->_conf_dir; }
|
|
public function conf_dir() { return $this->_conf_dir; }
|
|
public function db_dir() { return $this->_db_dir; }
|
|
public function db_dir() { return $this->_db_dir; }
|
|
- public function external_ssl_dir() { return $this->_external_ssl_dir; }
|
|
|
|
public function grammar_dir() { return $this->_grammar_dir; }
|
|
public function grammar_dir() { return $this->_grammar_dir; }
|
|
public function htdocs_dir() { return $this->_htdocs_dir; }
|
|
public function htdocs_dir() { return $this->_htdocs_dir; }
|
|
- public function internal_ssl_dir() { return $this->_internal_ssl_dir; }
|
|
|
|
public function log_dir() { return $this->_log_dir; }
|
|
public function log_dir() { return $this->_log_dir; }
|
|
public function mod_dir() { return $this->_mod_dir; }
|
|
public function mod_dir() { return $this->_mod_dir; }
|
|
public function recordings_dir() { return $this->_recordings_dir; }
|
|
public function recordings_dir() { return $this->_recordings_dir; }
|
|
@@ -128,11 +122,10 @@ require_once "resources/classes/EventSocket.php";
|
|
throw new Exception('Failed to use event socket');
|
|
throw new Exception('Failed to use event socket');
|
|
}
|
|
}
|
|
$FS_Version = $this->event_socket_request('api version');
|
|
$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->_major = $matches[1];
|
|
$this->_minor = $matches[2];
|
|
$this->_minor = $matches[2];
|
|
$this->_build = $matches[3];
|
|
$this->_build = $matches[3];
|
|
- $this->_bits = $matches[4];
|
|
|
|
$FS_Vars = $this->event_socket_request('api global_getvar');
|
|
$FS_Vars = $this->event_socket_request('api global_getvar');
|
|
foreach (explode("\n",$FS_Vars) as $FS_Var){
|
|
foreach (explode("\n",$FS_Vars) as $FS_Var){
|
|
preg_match("/(\w+_dir)=(.*)/", $FS_Var, $matches);
|
|
preg_match("/(\w+_dir)=(.*)/", $FS_Var, $matches);
|