support trunk_types in voip_carriers (#496)

* support trunk_types in voip_carriers

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu
2025-10-21 17:47:56 +07:00
committed by GitHub
parent 16dcd26216
commit 1d609135fc
3 changed files with 22 additions and 13 deletions
+1 -1
View File
@@ -1,5 +1,4 @@
/* SQLEditor (MySQL (2))*/ /* SQLEditor (MySQL (2))*/
SET FOREIGN_KEY_CHECKS=0; SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS account_static_ips; DROP TABLE IF EXISTS account_static_ips;
@@ -418,6 +417,7 @@ register_public_ip_in_contact BOOLEAN NOT NULL DEFAULT false,
register_status VARCHAR(4096), register_status VARCHAR(4096),
dtmf_type ENUM('rfc2833','tones','info') NOT NULL DEFAULT 'rfc2833', dtmf_type ENUM('rfc2833','tones','info') NOT NULL DEFAULT 'rfc2833',
outbound_sip_proxy VARCHAR(255), outbound_sip_proxy VARCHAR(255),
trunk_type ENUM('static_ip','auth','reg') NOT NULL DEFAULT 'static_ip',
PRIMARY KEY (voip_carrier_sid) PRIMARY KEY (voip_carrier_sid)
) COMMENT='A Carrier or customer PBX that can send or receive calls'; ) COMMENT='A Carrier or customer PBX that can send or receive calls';
+19 -11
View File
@@ -546,12 +546,12 @@
<schema><![CDATA[]]></schema> <schema><![CDATA[]]></schema>
<comment><![CDATA[A Carrier or customer PBX that can send or receive calls]]></comment> <comment><![CDATA[A Carrier or customer PBX that can send or receive calls]]></comment>
<location> <location>
<x>16.00</x> <x>20.00</x>
<y>427.00</y> <y>418.00</y>
</location> </location>
<size> <size>
<width>293.00</width> <width>293.00</width>
<height>580.00</height> <height>600.00</height>
</size> </size>
<zorder>6</zorder> <zorder>6</zorder>
<SQLField> <SQLField>
@@ -749,6 +749,13 @@
<type><![CDATA[VARCHAR(255)]]></type> <type><![CDATA[VARCHAR(255)]]></type>
<uid><![CDATA[556ABA45-BC63-444D-8CB1-973EFCCF9FE7]]></uid> <uid><![CDATA[556ABA45-BC63-444D-8CB1-973EFCCF9FE7]]></uid>
</SQLField> </SQLField>
<SQLField>
<name><![CDATA[trunk_type]]></name>
<type><![CDATA[ENUM('static_ip','auth','reg')]]></type>
<defaultValue><![CDATA[static_ip]]></defaultValue>
<notNull><![CDATA[1]]></notNull>
<uid><![CDATA[CCF1560C-349E-4DB9-91E5-120F1EDB7CDE]]></uid>
</SQLField>
<labelWindowIndex><![CDATA[28]]></labelWindowIndex> <labelWindowIndex><![CDATA[28]]></labelWindowIndex>
<objectComment><![CDATA[A Carrier or customer PBX that can send or receive calls]]></objectComment> <objectComment><![CDATA[A Carrier or customer PBX that can send or receive calls]]></objectComment>
<ui.treeExpanded><![CDATA[1]]></ui.treeExpanded> <ui.treeExpanded><![CDATA[1]]></ui.treeExpanded>
@@ -1293,7 +1300,7 @@
<comment><![CDATA[a regex-based pattern match for call routing]]></comment> <comment><![CDATA[a regex-based pattern match for call routing]]></comment>
<location> <location>
<x>16.00</x> <x>16.00</x>
<y>1007.00</y> <y>1039.00</y>
</location> </location>
<size> <size>
<width>254.00</width> <width>254.00</width>
@@ -2165,8 +2172,8 @@
<schema><![CDATA[]]></schema> <schema><![CDATA[]]></schema>
<comment><![CDATA[A phone number that has been assigned to an account]]></comment> <comment><![CDATA[A phone number that has been assigned to an account]]></comment>
<location> <location>
<x>16.00</x> <x>11.00</x>
<y>1128.00</y> <y>1162.00</y>
</location> </location>
<size> <size>
<width>522.00</width> <width>522.00</width>
@@ -2608,6 +2615,7 @@
<SQLField> <SQLField>
<name><![CDATA[speech_synthesis_voice]]></name> <name><![CDATA[speech_synthesis_voice]]></name>
<type><![CDATA[VARCHAR(256)]]></type> <type><![CDATA[VARCHAR(256)]]></type>
<defaultValue><![CDATA[en-US-Standard-C]]></defaultValue>
<notNull><![CDATA[0]]></notNull> <notNull><![CDATA[0]]></notNull>
<uid><![CDATA[929D66F0-64B9-4D7C-AB4B-24F131E1178F]]></uid> <uid><![CDATA[929D66F0-64B9-4D7C-AB4B-24F131E1178F]]></uid>
</SQLField> </SQLField>
@@ -3161,17 +3169,17 @@
<overviewPanelHidden><![CDATA[0]]></overviewPanelHidden> <overviewPanelHidden><![CDATA[0]]></overviewPanelHidden>
<pageBoundariesVisible><![CDATA[0]]></pageBoundariesVisible> <pageBoundariesVisible><![CDATA[0]]></pageBoundariesVisible>
<PageGridVisible><![CDATA[0]]></PageGridVisible> <PageGridVisible><![CDATA[0]]></PageGridVisible>
<RightSidebarWidth><![CDATA[1393.000000]]></RightSidebarWidth> <RightSidebarWidth><![CDATA[1643.000000]]></RightSidebarWidth>
<sidebarIndex><![CDATA[2]]></sidebarIndex> <sidebarIndex><![CDATA[2]]></sidebarIndex>
<snapToGrid><![CDATA[0]]></snapToGrid> <snapToGrid><![CDATA[0]]></snapToGrid>
<SourceSidebarWidth><![CDATA[0.000000]]></SourceSidebarWidth> <SourceSidebarWidth><![CDATA[312.000000]]></SourceSidebarWidth>
<SQLEditorFileFormatVersion><![CDATA[4]]></SQLEditorFileFormatVersion> <SQLEditorFileFormatVersion><![CDATA[4]]></SQLEditorFileFormatVersion>
<uid><![CDATA[58C99A00-06C9-478C-A667-C63842E088F3]]></uid> <uid><![CDATA[58C99A00-06C9-478C-A667-C63842E088F3]]></uid>
<windowHeight><![CDATA[1055.000000]]></windowHeight> <windowHeight><![CDATA[1055.000000]]></windowHeight>
<windowLocationX><![CDATA[1845.000000]]></windowLocationX> <windowLocationX><![CDATA[1728.000000]]></windowLocationX>
<windowLocationY><![CDATA[37.000000]]></windowLocationY> <windowLocationY><![CDATA[37.000000]]></windowLocationY>
<windowScrollOrigin><![CDATA[{0, 544}]]></windowScrollOrigin> <windowScrollOrigin><![CDATA[{0, 376}]]></windowScrollOrigin>
<windowWidth><![CDATA[1670.000000]]></windowWidth> <windowWidth><![CDATA[1920.000000]]></windowWidth>
</SQLDocumentInfo> </SQLDocumentInfo>
<AllowsIndexRenamingOnInsert><![CDATA[1]]></AllowsIndexRenamingOnInsert> <AllowsIndexRenamingOnInsert><![CDATA[1]]></AllowsIndexRenamingOnInsert>
<defaultLabelExpanded><![CDATA[1]]></defaultLabelExpanded> <defaultLabelExpanded><![CDATA[1]]></defaultLabelExpanded>
+2 -1
View File
@@ -231,7 +231,8 @@ const sql = {
], ],
9005: [ 9005: [
'UPDATE applications SET speech_synthesis_voice = \'en-US-Standard-C\' WHERE speech_synthesis_voice IS NULL AND speech_synthesis_vendor = \'google\' AND speech_synthesis_language = \'en-US\'', 'UPDATE applications SET speech_synthesis_voice = \'en-US-Standard-C\' WHERE speech_synthesis_voice IS NULL AND speech_synthesis_vendor = \'google\' AND speech_synthesis_language = \'en-US\'',
'ALTER TABLE applications MODIFY COLUMN speech_synthesis_voice VARCHAR(255) DEFAULT \'en-US-Standard-C\'' 'ALTER TABLE applications MODIFY COLUMN speech_synthesis_voice VARCHAR(255) DEFAULT \'en-US-Standard-C\'',
'ALTER TABLE voip_carriers ADD COLUMN trunk_type ENUM(\'static_ip\',\'auth\',\'reg\') NOT NULL DEFAULT \'static_ip\'',
] ]
}; };