@@ -12,6 +12,8 @@ local app_list = {
12
12
"luci",
13
13
"aria2",
14
14
"transmission",
15
+ "voipblock_for_mmpbx",
16
+ "voipblock_for_asterisk",
15
17
"blacklist",
16
18
"xupnp",
17
19
"telstra",
@@ -54,6 +56,8 @@ if marketing_version >= 16.3 then
54
56
mapParams.luci_webui = "uci.modgui.app.luci_webui"
55
57
mapParams.blacklist_application = "uci.modgui.app.blacklist_app"
56
58
end
59
+ mapParams.voipblock_for_mmpbx = "uci.modgui.app.voipblock_for_mmpbx"
60
+ mapParams.voipblock_for_asterisk = "uci.modgui.app.voipblock_for_asterisk"
57
61
if cputype:match("mips") then
58
62
mapParams.amule_webui = "uci.modgui.app.amule_webui"
59
63
end
@@ -203,6 +207,44 @@ if StateParams["transmission_webui"] ~= nil then
203
207
html[#html+1] = "</div>"
204
208
end
205
209
210
+ if StateParams["voipblock_for_mmpbx"] ~= nil then
211
+ html[#html+1] = '<div class="span3" style="margin-right:.5rem;margin-left:.5rem;">'
212
+ html[#html+1] = "<fieldset>"
213
+ html[#html+1] = '<legend>' .. T"Voipblock for mmpbx" .. '</legend>'
214
+ html[#html+1] = ui_helper.createAlertBlock(T"This will install Voipblock for mmpbx", info_box)
215
+ html[#html+1] = T"State: "
216
+ html[#html+1] = "<strong>" .. T"The Voipblock for mmpbx is " .. StateParams["voipblock_for_mmpbx"] .. T" installed" .. "</strong><br/>"
217
+ html[#html+1] = "<br/>"
218
+ html[#html+1] = "<br/>"
219
+ if mapParams["voipblock_for_mmpbx"] and mapParams["voipblock_for_mmpbx"] == "1" then
220
+ html[#html+1] = ui_helper.createSimpleButton(T"Remove".." Voipblock for mmpbx", "fa fa-times-circle", btn_table.voipblock_for_mmpbx.remove)
221
+ else
222
+ html[#html+1] = ui_helper.createSimpleButton(T"Install".." Voipblock for mmpbx", "fa fa-download", btn_table.voipblock_for_mmpbx.install)
223
+ end
224
+ html[#html+1] = "</fieldset>"
225
+ html[#html+1] = "<br/>"
226
+ html[#html+1] = "</div>"
227
+ end
228
+
229
+ if StateParams["voipblock_for_asterisk"] ~= nil then
230
+ html[#html+1] = '<div class="span3" style="margin-right:.5rem;margin-left:.5rem;">'
231
+ html[#html+1] = "<fieldset>"
232
+ html[#html+1] = '<legend>' .. T"Voipblock for asterisk" .. '</legend>'
233
+ html[#html+1] = ui_helper.createAlertBlock(T"This will install Voipblock for asterisk", info_box)
234
+ html[#html+1] = T"State: "
235
+ html[#html+1] = "<strong>" .. T"The Voipblock for asterisk is " .. StateParams["voipblock_for_asterisk"] .. T" installed" .. "</strong><br/>"
236
+ html[#html+1] = "<br/>"
237
+ html[#html+1] = "<br/>"
238
+ if mapParams["voipblock_for_asterisk"] and mapParams["voipblock_for_asterisk"] == "1" then
239
+ html[#html+1] = ui_helper.createSimpleButton(T"Remove".." Voipblock for asterisk", "fa fa-times-circle", btn_table.voipblock_for_asterisk.remove)
240
+ else
241
+ html[#html+1] = ui_helper.createSimpleButton(T"Install".." Voipblock for asterisk", "fa fa-download", btn_table.voipblock_for_asterisk.install)
242
+ end
243
+ html[#html+1] = "</fieldset>"
244
+ html[#html+1] = "<br/>"
245
+ html[#html+1] = "</div>"
246
+ end
247
+
206
248
if StateParams["blacklist_application"] ~= nil then
207
249
btn_table.blacklist.installempty = {
208
250
button = {
0 commit comments