FreePBX->Core->getAllDriversInfo();
$core = $this->srvinterface->getSCCPVersion();
$ast_realtime = $this->srvinterface->sccp_realtime_status();
$ast_realm = (empty($ast_realtime['sccp']) ? '':'sccp');
foreach ($ast_realtime as $key => $value) {
if (empty($ast_realm)) {
if ($value['status'] == 'OK') {
$ast_realm = $key;
}
}
}
$conf_realtime = $this->extconfigs->validate_RealTime($ast_realm);
$db_Schema = $this->dbinterface->validate();
$mysql_info = $this->dbinterface->get_db_sysvalues();
$compatable = $this->srvinterface->get_compatible_sccp();
$info = array();
$info['srvinterface'] = $this->srvinterface->info();
$info['extconfigs'] = $this->extconfigs->info();
$info['dbinterface'] = $this->dbinterface->info();
$info['aminterface'] = $this->aminterface->info();
$info['XML'] = $this->xmlinterface->info();
$info['sccp_class'] = $driver['sccp'];
$info['Core_sccp'] = array('Version' => $core['Version'], 'about'=> 'Sccp ver.'. $core['Version'].' r'.$core['vCode']. ' Revision :'. $core['RevisionNum']. ' Hash :'. $core['RevisionHash']);
$info['Asterisk'] = array('Version' => FreePBX::Config()->get('ASTVERSION'), 'about'=> 'Asterisk.');
if (!empty($this->sccpvalues['SccpDBmodel'])) {
$info['DB Model'] = array('Version' => $this->sccpvalues['SccpDBmodel']['data'], 'about'=> 'SCCP DB Configure');
}
if (!empty($this->sccpvalues['tftp_rewrite'])) {
if ($this->sccpvalues['tftp_rewrite']['data'] == 'pro') {
$info['Provision_SCCP'] = array('Version' => 'base', 'about'=> 'Provision Sccp enabled');
} else {
$info['TFTP_Rewrite'] = array('Version' => 'base', 'about'=> 'Rewrite Supported');
}
}
$info['Сompatible'] = array('Version' => $compatable, 'about'=> 'Ok');
if (!empty($this->sccpvalues['SccpDBmodel'])) {
if ($compatable > $this->sccpvalues['SccpDBmodel']['data']){
$info['Сompatible']['about'] = '
Reinstall SCCP manager required
';
}
}
if ($db_Schema == 0) {
$info['DB_Schema'] = array('Version' => 'Error', 'about'=> ' ERROR DB Version
');
} else {
$info['DB_Schema'] = array('Version' => $db_Schema, 'about'=> (($compatable == $db_Schema ) ? 'Ok' : 'Incompatable Version'));
}
if (empty($ast_realtime)) {
$info['RealTime'] = array('Version' => 'Error', 'about'=> ' No found Real Time connections
');
} else {
$rt_info = '';
$rt_sccp = 'Failed';
foreach ($ast_realtime as $key => $value) {
if ($key == $ast_realm) {
if ($value['status'] == 'OK') {
$rt_sccp = 'TEST OK';
$rt_info .= 'SCCP Connections found';
} else {
$rt_sccp = 'SCCP ERROR';
$rt_info .= ' Error : '. $value['message']. '
';
}
} else if ($value['status'] == 'ERROR') {
$rt_info .= ' Found error in realtime sectoin ['.$key.'] : '. $value['message']. '
';
}
}
$info['RealTime'] = array('Version' => $rt_sccp, 'about'=> $rt_info);
}
if (empty($conf_realtime)) {
$info['ConfigsRealTime'] = array('Version' => 'Error', 'about'=> ' No found Real Time Configs
');
} else {
$rt_info = '';
foreach ($conf_realtime as $key => $value) {
if (($value != 'OK') && ($key != 'extconfigfile')) {
$rt_info .= ' Found error in section '.$key.' :'. $value. '
';
}
}
if (!empty($rt_info)) {
$info['ConfigsRealTime'] = array('Version' => 'Error', 'about'=> $rt_info);
}
}
// $mysql_info
if ($mysql_info['Value'] <= '2000') {
$this->info_warning['MySql'] = Array('Increase Mysql Group Concat Max. Length','Step 1: Go to mysql path
nano /etc/my.cnf',
'Step 2: And add the following line below [mysqld] as shown below
[mysql]
group_concat_max_len = 4096 or more',
'Step 3: Save and restart
systemctl restart mariadb.service
Or
service mysqld restart');
}
global $amp_conf;
// ************************************************************************************
/*
//$tmp_data_list = $this->getSccp_model_information('enabled', $validate = TRUE);
//$tmp_data_list = $amp_conf;
//$tmp_data_list=FreePBX::create()->Sipsettings->getConfig('bindport');
// $tmp_data_list=FreePBX::Sipsettings()->getChanSipSettings();
$tmp_data_list=$this->sipconfigs->getSipConfig();
//$tmp_data_list=FreePBX::Sipsettings()->getBinds();
// $tmp_data_list = \FreePBX::Sipsettings()->getSipPortOwner();
// $tmp_data_list=$this->dbinterface->get_db_SccpTableData('SccpExtension');
// $tmp_data_list=$this->dbinterface->get_db_SccpTableData('SccpDevice', array('type'=>'cisco-sip'));
// $tmp_data_list= FreePBX::Sipsettings()->getChanSipDefaults();
//$tmp_data_list = $this->find_all_files($dir, $file_ext, 'fileonly');
print_r("
Help Info:
");
print_r("
");
print_r($tmp_data_list);
//$tmp_data_list = FreePBX::Sipsettings()->getChanSipDefaults();
// $tmp_data_list = \FreePBX::Sipsettings()->getSipPortOwner();
//print_r($buton_list);
print_r("
");
print_r($this->sccp_conf_init);
//$tmp_data_list=$this->sipconfigs->get_db_sip_TableData('Device');
print_r("
");
// print_r("DIRECT START");
// print_r($this->sccpvalues['ccm_address']);
//print_r($this->get_php_classes('\\FreePBX\\modules\\'));
//print_r($this->dbinterface->get_db_SccpTableData('SccpExtension'));
// print_r($this->srvinterface->getеtestChanSCCP_GlablsInfo());
// $test_data = $this->srvinterface-> astman_GetRaw('ExtensionStateList');
// print_r($test_data);
// print_r($this->srvinterface-> core_list_all_exten());
// print_r($this->get_hint_info());
// print_r($this->aminterface-> core_list_all_exten('exten'));
// print_r($this->aminterface->Sok_param['total']);
// print_r($this->srvinterface->t_get_meta_data());
// print_r($this->sccp_metainfo);
print("
");
/* */
// ************************************************************************************
// $lang_arr = $this->extconfigs->getextConfig('sccp_lang','sk_SK');
// print_r('
');
// print_r(timezone_identifiers_list());
// print_r('
');
//print_r($this->dbinterface->info());
if (!empty($this->info_warning)) {
?>
Sccp Manager Warning
There are Warning in the SCCP Module:
info_warning as $key => $value) {
echo ''.$key.'
';
if (is_array($value)) {
echo '
'._(implode('', $value)).'';
} else {
echo '
'. _($value).'';
}
}
?>
Check these problems before continuing to work.
class_error)) {
?>
Diagnostic information about SCCP Manager errors
There is an error in the :
class_error); ?>
Correct these problems before continuing to work.
Open 'SCCP Connectivity' -> Server Config' to change global settings
Sccp Manager V.sccp_manager_ver); ?> Info
Module |
Version |
Info |
$value) {
echo '' . $key . ' | ' . $value['Version'] . ' | ' . $value['about'] . ' |
';
}
?>
ShowGroup('sccp_info',0); ?>