This module will print a list of users and extensions. Handy for creating a company directory listing quickly.
- Printer-friendly version
- Login or register to post comments
This module will print a list of users and extensions. Handy for creating a company directory listing quickly.
Changing order to be by name
In our context having a list of extensions is VERY useful, but it only makes sense if they are ordered by NAME rather than by extension.
(This assumes a little familiarity with command line, file editing, etc. Also assumes that your setup directories are where mine are.)
$ cd /var/www/admin/modules/printextensions
$ vi functions.inc.php
on line 6 change the "ORDER BY extension" to read "ORDER BY name"
on line 16 prepend a # to the beginning of the line so that the line that originally looks like this:
if (isset($users)) sort ($users);
now should look like this:
#if (isset($users)) sort ($users);
Go back into the GUI in FreePBX, reload your page, and you should be looking at a list that is ordered by name rather than ordered by extension.
Enjoy!
(NOTE: you may have to do this fix again if this extension gets a new update or something like that. This may well be a nonstandard way to do customizations. I'm a complete newbie at FreePBX but figured out a way to fix this problem I was having and so I'm sharing it with the rest of you -- if someone wants to correct this to a more standard way of doing customizations please feel free)
Options
It sure would be nice to be able to format the list before printing. Would it be possible to have it save as .xls or .ods so as to tidy it up a bit before putting it out to rest of my organization?
Guest url?
Greetings ...
Is there a guest URL that I have provide my users with or a way to setup a guest account in FreePBX, so that my users don't all need login details to access the "Print Extensions" modle?
Thanks
Mailed
LeeT