It’s a small thing but I have to ask: Why “summary” info panel was removed from “Reports->Asterisk Info” page in FreePBX 15 distro?
I’m talking about this one:
It’s a small thing but I have to ask: Why “summary” info panel was removed from “Reports->Asterisk Info” page in FreePBX 15 distro?
I’m talking about this one:
Disclaimer: I am no PHP developer, the below may be completely wrong.
cd /var/www/html/admin/modules/asteriskinfo/Modules/
nano AsteriskSummary.php
Paste the following:
<?php
namespace FreePBX\modules\Asteriskinfo\Modules;
class AsteriskSummary{
public function __construct(){
$this->freepbx = \FreePBX::Create();
$this->astman = $this->freepbx->astman;
}
public function getDisplay(){
$data = $this->freepbx->Asteriskinfo->getOutput('core show uptime');
return '<div class="panel panel-default"><div class="panel-body"><pre>'.$data.'</pre></div></div>';
}
}
Press Ctrl + x, to save, enter y and press enter.
chown asterisk:asterisk AsteriskSummary.php
chmod 0664 AsteriskSummary.php
In your browser open http://your.pbx.ip/admin/config.php?display=asteriskinfo
and you should see:
Couple of things:
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.