Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.