Hide Extensions from HUDLite

AlecIs
Posts: 5
Member Since:
2010-07-28

Other than by hand editing users.xml, is there any way to keep HUDLite from displaying all extensions?

In my installation, there are extensions (management, mostly) which shouldn't be seen in the HUDLite display. I like the automated generation of users.xml in the Trixbox UI, but would love a switch that says "Don't add to users.xml".

I'm hoping there is a setting in there somewhere so I don't have to hand edit users.xml every time I add or delete an extension.

Thanks.



mpalmer67
Posts: 2
Member Since:
2010-12-02
Hide Extensions from HUDLite

You could edit: /var/www/html/maint/modules/hudadmin/include/functions.php
Add the extension statically in the SELECT statement:

Original: SELECT id,dial,description FROM devices WHERE tech = 'sip' ORDER BY id ASC
Becomes: SELECT id,dial,description FROM devices WHERE tech = 'sip' AND id NOT IN (101,104,2102,2304,4122)

or an easier way, modify the SQL, then add a - in front of the display name under the extensions configuration in the web interface for each one you want to not display.

then modify the above SQL to be:

SELECT id,dial,description FROM devices WHERE tech = 'sip' and description NOT LIKE "-%"

This is an easier method and keeps you out of the functions.php.



Comment viewing options

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