Workaround for incomplete Phonebook

Status
Not open for further replies.

Rainer

Joined
May 11, 2017
Messages
5
Reaction score
0
Hello Everybody,

there are lots of posts in the forum compaining about the missing phonebook entries in the 3CX xml phonebooks. This affects all phone types because it seems to be a limitation in 3CX itself.

We've produced two scripts to produce a fully populated, complete xml phonebook. The first script is a powershell script to extract the contacts to a CSV file. The second one is php script serving the contact info as XML. Currently it produces XML for Yealink phones, but it's probably easy to adapt this to Snom and others as well.

We run the powershell export script daily via TaskScheduler and then just put the php script on an internal server. Then we pointed the phonebook URL in the yealink template files to this script. Now the phonebooks at least show all contact numbers; there is still no type for each number, but that's a limitation of yealink and it's not really an issue for us.

You can find the two files attached. The powershell script runs on our Windows Server 2012 and the php script was tested on Debian/Apache. On the Windows machine you will need to install the Exchange Web Services Manage API (can be found on https://www.microsoft.com/en-us/download/details.aspx?id=42951).

Hope this helps somebody!

Best Regards
Rainer
 

Attachments

Hi, I have tried on linux/3cx/ machine but seems not working. Anything miss?
Thank you
 
Hi Sofiane,

I don't know your setup. Do you have apache running on your 3CX host? We are currently using a separate webserver to perform the translation from CSV into XML with the Php script.
 
Hi Rainer, I am using Nginx in local 3cx host
 
Ah I see, that would indeed be nice to have it on the 3CX machine directly, that's true. I'll test it there whenever we need to alter it again. For now we have it on Apache. And I really hope 3CX will fix this issue themselves so we don't need any external scripts anymore to have a complete phone book.
 
Status
Not open for further replies.

Latest Posts

Members Online Now

Forum statistics

Threads
111,862
Messages
589,443
Members
164,701
Latest member
yarusemiKK