forked from mitchmitchell/allowlist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.xml
More file actions
147 lines (142 loc) · 4.5 KB
/
Copy pathmodule.xml
File metadata and controls
147 lines (142 loc) · 4.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<module>
<rawname>allowlist</rawname>
<repo>unsupported</repo>
<name>Allow List</name>
<version>15.0.9</version>
<publisher>Sangoma Technologies Corporation</publisher>
<license>GPLv3+</license>
<licenselink>http://www.gnu.org/licenses/gpl-3.0.txt</licenselink>
<category>Admin</category>
<description>
This module is used to manage a system wide list of allowlisted callers.
</description>
<changelog>
*15.0.9* Allow user to specify leading digits to remove and length of number to store when autoadding numbers to allowlist
*15.0.8* Fix crash when outbound route exists but no trunks defined
*15.0.7* Fix issues with backup and restore not saving settings information
*15.0.6* Add sorting, feature code pause, transfer number to blacklist action
*15.0.5* Fix i18n files
*15.0.4* Release/15.0
*15.0.3* FREEPBX-FC-345 fix outroute splice failure if no outroutes defined
*15.0.2* Packaging of ver 15.0.2
*15.0.1* Initial
</changelog>
<hooks>
<bulkhandler class="Bulkhandler" namespace="FreePBX\modules">
<method callingMethod="getHeaders" class="Allowlist" namespace="FreePBX\modules">bulkhandlerGetHeaders</method>
<method callingMethod="getTypes" class="Allowlist" namespace="FreePBX\modules">bulkhandlerGetTypes</method>
<method callingMethod="import" class="Allowlist" namespace="FreePBX\modules">bulkhandlerImport</method>
<method callingMethod="export" class="Allowlist" namespace="FreePBX\modules">bulkhandlerExport</method>
</bulkhandler>
</hooks>
<depends>
<module>core ge 15.0.12</module>
</depends>
<menuitems>
<allowlist needsenginedb="yes">Allowlist</allowlist>
</menuitems>
<supported>
<version>15.0</version>
</supported>
<console>
<command>
<name>allowlist</name>
</command>
</console>
<database>
<table>
<name>allowlist</name>
<field>
<name>id</name>
<type>INT</type>
<null>false</null>
<default>auto_increment</default>
<key>primary</key>
</field>
<field>
<name>number</name>
<type>VARCHAR(20)</type>
<null>false</null>
</field>
<field>
<name>description</name>
<type>VARCHAR(255)</type>
<null>true</null>
</field>
<field>
<name>created_at</name>
<type>TIMESTAMP</type>
<null>false</null>
<default>CURRENT_TIMESTAMP</default>
</field>
</table>
<!-- Table for storing configuration settings (e.g., destination, pause, etc.) -->
<table>
<name>allowlist_config</name>
<field>
<name>id</name>
<type>INT</type>
<null>false</null>
<default>auto_increment</default>
<key>primary</key>
</field>
<field>
<name>name</name>
<type>VARCHAR(255)</type>
<null>false</null>
</field>
<field>
<name>value</name>
<type>VARCHAR(255)</type>
<null>false</null>
</field>
</table>
<!-- Table for storing routes -->
<table>
<name>allowlist_routes</name>
<field>
<name>id</name>
<type>INT</type>
<null>false</null>
<default>auto_increment</default>
<key>primary</key>
</field>
<field>
<name>routeid</name>
<type>VARCHAR(255)</type>
<null>false</null>
</field>
<field>
<name>digits_remove</name>
<type>INT</type>
<null>false</null>
</field>
<field>
<name>digits_store</name>
<type>INT</type>
<null>false</null>
</field>
</table>
<!-- Table for storing DIDs -->
<table>
<name>allowlist_dids</name>
<field>
<name>id</name>
<type>INT</type>
<null>false</null>
<default>auto_increment</default>
<key>primary</key>
</field>
<field>
<name>DID</name>
<type>VARCHAR(255)</type>
<null>false</null>
</field>
<field>
<name>CID</name>
<type>INT</type>
<null>true</null>
</field>
</table>
</database>
</module>