1
0

asterisk-mod-pbx.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. pbx_ael = module:option(ListValue, "pbx_ael", "Asterisk Extension Language Compiler", "")
  8. pbx_ael:value("yes", "Load")
  9. pbx_ael:value("no", "Do Not Load")
  10. pbx_ael:value("auto", "Load as Required")
  11. pbx_ael.rmempty = true
  12. pbx_config = module:option(ListValue, "pbx_config", "Text Extension Configuration", "")
  13. pbx_config:value("yes", "Load")
  14. pbx_config:value("no", "Do Not Load")
  15. pbx_config:value("auto", "Load as Required")
  16. pbx_config.rmempty = true
  17. pbx_functions = module:option(ListValue, "pbx_functions", "load => .so ; Builtin dialplan functions", "")
  18. pbx_functions:value("yes", "Load")
  19. pbx_functions:value("no", "Do Not Load")
  20. pbx_functions:value("auto", "Load as Required")
  21. pbx_functions.rmempty = true
  22. pbx_loopback = module:option(ListValue, "pbx_loopback", "Loopback Switch", "")
  23. pbx_loopback:value("yes", "Load")
  24. pbx_loopback:value("no", "Do Not Load")
  25. pbx_loopback:value("auto", "Load as Required")
  26. pbx_loopback.rmempty = true
  27. pbx_realtime = module:option(ListValue, "pbx_realtime", "Realtime Switch", "")
  28. pbx_realtime:value("yes", "Load")
  29. pbx_realtime:value("no", "Do Not Load")
  30. pbx_realtime:value("auto", "Load as Required")
  31. pbx_realtime.rmempty = true
  32. pbx_spool = module:option(ListValue, "pbx_spool", "Outgoing Spool Support", "")
  33. pbx_spool:value("yes", "Load")
  34. pbx_spool:value("no", "Do Not Load")
  35. pbx_spool:value("auto", "Load as Required")
  36. pbx_spool.rmempty = true
  37. pbx_wilcalu = module:option(ListValue, "pbx_wilcalu", "Wil Cal U (Auto Dialer)", "")
  38. pbx_wilcalu:value("yes", "Load")
  39. pbx_wilcalu:value("no", "Do Not Load")
  40. pbx_wilcalu:value("auto", "Load as Required")
  41. pbx_wilcalu.rmempty = true
  42. return cbimap