Cloud Phonebook


(United States) #1

First Thanks for FreePBX, great open source product. Rolled out a Cloud Base System for a Small NPO spread across multiple sites. Really works well. However, I am trying to configure extensions (30-A25 Digium Phones) to retrieve data from “http://ipaddress/digium_phones/contacts-internal.xml” for a centrally managed internal phonebook. This would be advantageous (to say the least) compared to updating contacts on each extension. The individual phones do not complain of any issues upon configuration, but the Contacts do not appear. Browsing to the URL readily displays the contents of the “contacts-internal.xml” file.

Any insight would be appreciated!


(Malcolm Davenport) #2

Likely, that file is being built by something that constructs contacts files formatted for D-Series telephones (https://wiki.asterisk.org/wiki/display/DIGIUM/Contacts). A-Series telephones use a different format (https://wiki.asterisk.org/wiki/display/DIGIUM/A-Series+Contacts)

If that’s not the case, then I don’t have a good guess.


(United States) #3

Exactly the problem. I uploaded a contact list created on a A25 to the directory, worked perfectly.
Once all phones are configured to read from this URL, future changes can be implemented by editing the one file! Wish I could reconfigure FreePBX to format the xml as used by the A series phones by default, but this will do the trick!

Thanks!


(Lorne Gaetz) #4

There are a few threads about projects here where people are generating XML files from the phonebook module and/or contact manager. I can’t point to any specifically, as this sort of thing is off my radar, but I remember @sorvani has one.


(Charles Darwin) #5

I use a script which converts entries of the freePBX contact manager to a phonebook-file the Digium/Sangoma D-series phones can read. Maybe you should try to adapt it to your needs?


(Jared Busch) #6

I tweaked my Yealink file to work with the A Series. I do not have one to test though. But it spits out correctly in my browser.

Normally, I create a sub folder on the server in the web directory.

sudo -u asterisk mkdir /var/www/html/custom
then i’ll pull down this file with wget
cd /var/www/html/custom
sudo -u asterisk wget https://raw.githubusercontent.com/sorvani/freepbx-helper-scripts/master/ContactManager_to_Digium_AddressBook/cm_to_digum_aseries.php
I like to rename it to be shorter name.
sudo -u asterisk mv cm_to_digium_aseries.php cmda.php

Then you can test it in your browser:
https://pbx.yourdomain.com/custom/cmda.php?cgroup=User Manager Group&e164=0&rtype=2


(system) closed #7

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.