Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


Print Extensions

This module will print a list of users and extensions. Handy for creating a company directory listing quickly.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Changing order to be by name

pbowers's picture

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)