Where are FreePBX contacts stored?

Contacts and contact groups created on the FreePBX GUI under contact manager, are those stored in the mysql database and where exactly?

I am writing an application and would like to reference those.

FreePBX Distro, version 13

MariaDB [asterisk]> show tables like "%contactmanager%";
+---------------------------------------+
| Tables_in_asterisk (%contactmanager%) |
+---------------------------------------+
| contactmanager_entry_emails           |
| contactmanager_entry_images           |
| contactmanager_entry_numbers          |
| contactmanager_entry_speeddials       |
| contactmanager_entry_userman_images   |
| contactmanager_entry_websites         |
| contactmanager_entry_xmpps            |
| contactmanager_group_entries          |
| contactmanager_groups                 |
+---------------------------------------+
9 rows in set (0.00 sec)

If using PHP, much better to use the methods already in place, sample files here that might assist:


1 Like

Excellent, thank you!

I have a script that pulls those out for Yealink phones.

1 Like

@sorvani please use bootstrap instead of reading amportal which isn’t being written to anymore.

1 Like

I do in my newer items like this: freepbx-helper-scripts/Aastra_Button_Functions/show_ring_group_membership.php at master · sorvani/freepbx-helper-scripts · GitHub

I haven’t spent the time to rewrite old scripts yet as they still run.

Ah excellent! I understand that.

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