1
0

asterisk-mod-res.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. -- Copyright 2008 Steven Barth <steven@midlink.org>
  2. -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  3. -- Licensed to the public under the Apache License 2.0.
  4. cbimap = Map("asterisk", "asterisk", "")
  5. module = cbimap:section(TypedSection, "module", "Modules", "")
  6. module.anonymous = true
  7. res_config_mysql = module:option(ListValue, "res_config_mysql", "MySQL Config Resource", "")
  8. res_config_mysql:value("yes", "Load")
  9. res_config_mysql:value("no", "Do Not Load")
  10. res_config_mysql:value("auto", "Load as Required")
  11. res_config_mysql.rmempty = true
  12. res_config_odbc = module:option(ListValue, "res_config_odbc", "ODBC Config Resource", "")
  13. res_config_odbc:value("yes", "Load")
  14. res_config_odbc:value("no", "Do Not Load")
  15. res_config_odbc:value("auto", "Load as Required")
  16. res_config_odbc.rmempty = true
  17. res_config_pgsql = module:option(ListValue, "res_config_pgsql", "PGSQL Module", "")
  18. res_config_pgsql:value("yes", "Load")
  19. res_config_pgsql:value("no", "Do Not Load")
  20. res_config_pgsql:value("auto", "Load as Required")
  21. res_config_pgsql.rmempty = true
  22. res_crypto = module:option(ListValue, "res_crypto", "Cryptographic Digital Signatures", "")
  23. res_crypto:value("yes", "Load")
  24. res_crypto:value("no", "Do Not Load")
  25. res_crypto:value("auto", "Load as Required")
  26. res_crypto.rmempty = true
  27. res_features = module:option(ListValue, "res_features", "Call Parking Resource", "")
  28. res_features:value("yes", "Load")
  29. res_features:value("no", "Do Not Load")
  30. res_features:value("auto", "Load as Required")
  31. res_features.rmempty = true
  32. res_indications = module:option(ListValue, "res_indications", "Indications Configuration", "")
  33. res_indications:value("yes", "Load")
  34. res_indications:value("no", "Do Not Load")
  35. res_indications:value("auto", "Load as Required")
  36. res_indications.rmempty = true
  37. res_monitor = module:option(ListValue, "res_monitor", "Call Monitoring Resource", "")
  38. res_monitor:value("yes", "Load")
  39. res_monitor:value("no", "Do Not Load")
  40. res_monitor:value("auto", "Load as Required")
  41. res_monitor.rmempty = true
  42. res_musiconhold = module:option(ListValue, "res_musiconhold", "Music On Hold Resource", "")
  43. res_musiconhold:value("yes", "Load")
  44. res_musiconhold:value("no", "Do Not Load")
  45. res_musiconhold:value("auto", "Load as Required")
  46. res_musiconhold.rmempty = true
  47. res_odbc = module:option(ListValue, "res_odbc", "ODBC Resource", "")
  48. res_odbc:value("yes", "Load")
  49. res_odbc:value("no", "Do Not Load")
  50. res_odbc:value("auto", "Load as Required")
  51. res_odbc.rmempty = true
  52. res_smdi = module:option(ListValue, "res_smdi", "SMDI Module", "")
  53. res_smdi:value("yes", "Load")
  54. res_smdi:value("no", "Do Not Load")
  55. res_smdi:value("auto", "Load as Required")
  56. res_smdi.rmempty = true
  57. res_snmp = module:option(ListValue, "res_snmp", "SNMP Module", "")
  58. res_snmp:value("yes", "Load")
  59. res_snmp:value("no", "Do Not Load")
  60. res_snmp:value("auto", "Load as Required")
  61. res_snmp.rmempty = true
  62. return cbimap