- 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
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