Enable "Show unregistered extensions" by default for all Windows Clients (15.5.1694.0)

Status
Not open for further replies.

Justin Eastridge

Joined
Jul 12, 2017
Messages
3
Reaction score
0
Late night I updated our Windows client on our 3CX server. Then I come in today and people are complaining they can't see the full address book. We have all of our agents in the 3CX directory but they don't actually use the 3CX system. That means that they have extension but are normally left at unregistered. After the update, the windows client only showed the available extensions and people couldn't access the full directory. However on my Android client I have no problem seeing the full address by default. I found out that if I go into the Windows client I can change 'Show unregistered extensions' then under Presence information it shows the full address book.

Do I have to do this manually for every Windows client or is there something server side I can do to fix this?
 
Hello @Justin Eastridge,

Unfortunately no, there is no global setting for all the clients. The option is client based.
You can however post it as a feature request in the forum's Ideas section where it can be upvoted and be reviewed from the appropriate department.
 
The problem with powershell is that it triggers the UAC, so if the user doesn't have the admin privilege on his machine, it can be annoying.

I found a script to change specific lines in the extension file. I put it as a logon script so it's executed before the 3CX client, as you can't change the file while it's being executed.

Code:
@ECHO OFF &SETLOCAL
taskkill /FI "WINDOWTITLE eq 3CX*" /F

cd "%appdata%\3CXPhone for Windows"

SET "file=3CXPhone.xml"
SET /a Line#ToSearch=the number of the line you want to change
SET "Replacement=<ShowUnregisteredExtensions>True</ShowUnregisteredExtensions>"

(FOR /f "tokens=1*delims=:" %%a IN ('findstr /n "^" "%file%"') DO (
    SET "Line=%%b"
    IF %%a equ %Line#ToSearch% SET "Line=%Replacement%"
    SETLOCAL ENABLEDELAYEDEXPANSION
    ECHO(!Line!
    ENDLOCAL
))>"%file%.new"

TYPE "%file%.new"
MOVE "%file%.new" "%file%"

It's not really complete, as i could have checked if the 3CX client is running before the taskkill line, but it works like a charm for me.
 
  • Like
Reactions: dan_tx
Status
Not open for further replies.