Skip to content
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

feat(trunks): allow to enable/disable TOPOS for each trunk #341

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

Conversation

Stell0
Copy link
Collaborator

@Stell0 Stell0 commented Nov 29, 2024

- Added a switch in the trunks interface to enable or disable TOPOS.
- When the "disable TOPOS" switch is activated, an "topos=0" header is sent in INVITE requests to instruct the nethvoice-proxy Kamailio to disable the TOPOS module for that specific invite.
- TOPOS configuration for trunks is now stored in the NethCTI FreePBX module's configuration key-value store.
- Modified the trunk interface and dialplan using dialplan hooks to accommodate the new feature.
- Automatically set the `disable_topos` value for trunks created via the wizard.
- Remove the `disable_topos` value when a trunk is deleted via the wizard.
- Added a new MySQL table to store default `disable_topos` values.
- If no default `disable_topos` value is specified, no header will bi sent and Kamailio will use TOPOS
- Add switch to control the sending of encrypted media on trunks.
- Migrate existing trunks to avoid attempting encrypted media with providers where media encryption is disabled.
Removed legacy SQL tables that were used for database initialization in previous versions.
Now all database tables are initialized in mariadb container and altered in freepbx/initdb.d
@Stell0 Stell0 marked this pull request as ready for review December 11, 2024 16:46
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.

1 participant