Generate Polycom XML directory using FreePBX

Recently, I was setting up the directory on a Polycom SoundPoint IP for my apartment. After manually entering some contacts for a while, I got fed up and decided to automate the process. You can find the bash script as a gist.

It’s a simple and hacked together bash script that queries the Asterisk DB on a FreePBX machine and spits out an XML file. All you have to do is replace the SQLUSER and SQLPASS variables with your MySQL credentials. In the future, I might add the ability to generate MAC address specific directory files.

Question or comment ? Let me know on twitter or email.