generated from NethServer/ns8-kickstart
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(trunks): automate disable_topos management in wizard
- 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, the feature is enabled by default.
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
mariadb/docker-entrypoint-initdb.d/10_asterisk.rest_pjsip_trunks_custom_flags.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/*!40101 SET NAMES binary*/; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=0*/; | ||
|
||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
USE `asterisk`; | ||
CREATE TABLE `rest_pjsip_trunks_custom_flags` ( | ||
`provider_id` bigint(20) NOT NULL, | ||
`keyword` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', | ||
`value` TINYINT(1) NOT NULL DEFAULT 0, | ||
PRIMARY KEY (`provider_id`,`keyword`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
29 changes: 29 additions & 0 deletions
29
mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_custom_flags.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*!40101 SET NAMES binary*/; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=0*/; | ||
/*!40103 SET TIME_ZONE='+00:00' */; | ||
USE `asterisk`; | ||
INSERT INTO `rest_pjsip_trunks_custom_flags` (`provider_id`,`keyword`,`value`) VALUES | ||
(1,"disable_topos",0), | ||
(2,"disable_topos",0), | ||
(3,"disable_topos",0), | ||
(4,"disable_topos",0), | ||
(5,"disable_topos",0), | ||
(6,"disable_topos",0), | ||
(7,"disable_topos",0), | ||
(8,"disable_topos",0), | ||
(9,"disable_topos",0), | ||
(10,"disable_topos",0), | ||
(11,"disable_topos",0), | ||
(12,"disable_topos",0), | ||
(13,"disable_topos",0), | ||
(14,"disable_topos",0), | ||
(15,"disable_topos",0), | ||
(16,"disable_topos",0), | ||
(17,"disable_topos",0), | ||
(18,"disable_topos",0), | ||
(19,"disable_topos",0), | ||
(20,"disable_topos",0), | ||
(21,"disable_topos",0), | ||
(22,"disable_topos",0), | ||
(23,"disable_topos",0), | ||
(24,"disable_topos",0); |