Skip to content

Conversation

@shdwlynx
Copy link

@shdwlynx shdwlynx commented Jun 3, 2015

Although you like dashes and I'm less fond of them, you might be interested in checking out my changes: extension name lookup and display, phone number formatting, minor cosmetic tweaks, plus an example of how to embed it in the FreePBX System Status dashboard PHP file.

screen shot 2015-06-03 at 12 49 31 pm 2

shdwlynx added 4 commits June 3, 2015 12:18
Just lessening the load a bit by only updating once every 5 seconds instead of every second.
The biggest change is the addition of the getExtensionName method, which uses the "sip show user 1234" command to get the name of the person at the chosen extension.  Additionally, I made some minor cosmetic changes, such as moving the Channel information into the row's Title attribute (so it appears when you hover), and formatting the phone number into a U.S.-style number.
This file is the FreePBX dashboard PHP file, modified to include the Call Status page.  It's buried in this repository as an example, but should be placed into something like /var/www/http/admin/modules/dashboard.  Actually, I recommend modifying the page.index.php that you already have there:

My additional code begins at line 669 and ends at 683 (of my version, but yours may vary.)   You can pretty much insert this wherever you want in FreePBX, but it works well here so that, when you go to Reports -> FreePBX System Status, you can see who is calling whom while monitoring other important server life signs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant