Skip to content

chore(freepbx): import nethserver-phonebook-mysql #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Amygos
Copy link
Member

@Amygos Amygos commented Jul 10, 2025

Vendoring the ns8 branch, starting from nethesis/nethserver-phonebook-mysql@e37e63f

NethServer/dev#7564

@Amygos Amygos requested a review from Stell0 July 14, 2025 12:09
@Amygos Amygos force-pushed the nethserver-phonebook-mysql branch from 795c3b1 to d390cb7 Compare July 15, 2025 09:38
@Amygos Amygos force-pushed the nethserver-phonebook-mysql branch from 215157c to 28389e5 Compare July 22, 2025 12:51
unixodbc files are overwritten on container restart, with this library
is possible to use pdo dblib like in business_nts example
https://github.com/nethesis/ns8-nethvoice/blob/b0c15755fd627659c75541b232464ccf4a297cff/freepbx/usr/share/phonebooks/samples/business_nts.php#L6
@Amygos Amygos force-pushed the nethserver-phonebook-mysql branch from 28389e5 to 476aab9 Compare July 22, 2025 12:54
Remove gamma_enterprise.php sample script as it cannot be tested
at this time. Consider re-adding in the future if testing becomes
possible.
@Amygos Amygos requested a review from Copilot July 22, 2025 13:03
Copilot

This comment was marked as outdated.

@Stell0 Stell0 requested a review from Copilot July 22, 2025 14:04
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR imports the nethserver-phonebook-mysql package into the FreePBX codebase, replacing a remote download with vendored files. The change transitions from downloading phonebook scripts at build time to including them directly in the repository.

  • Vendors the phonebook integration scripts from the ns8 branch of nethserver-phonebook-mysql
  • Adds support for MS SQL Server database connectivity through FreeTDS
  • Includes sample integration scripts for various CRM systems (VTiger, VTE, Business NTS, WebRecall)

Reviewed Changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
freepbx/Containerfile Adds FreeTDS dependencies and replaces remote download with local copy
freepbx/usr/share/phonebooks/phonebook-import Main Python script for importing contacts from various database sources
freepbx/usr/share/phonebooks/phonebook Shell script orchestrating phonebook synchronization
freepbx/usr/share/phonebooks/*.php Core PHP scripts for exporting/cleaning phonebook data
freepbx/usr/share/phonebooks/samples/*.php Sample integration scripts for external CRM systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nethvoice: vendor nethserver-phonebook-mysql package in freepbx container
2 participants