FreePBX asterisk info summary is... missing?


(Vadrn) #1

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:


(Itzik) #2

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:

  1. If you do any updates or signature checking it may get removed or throw an error.
  2. As mentioned, I am not familiar with PHP. I would love to add a space between Asterisk and Summary, but have no idea how… (Right now it is AsteriskSummary as shown in the screenshot)
  3. I submitted a CSA to Sangoma so it can officially by used.

(system) closed #3

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.