asterisk-mod-chan.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. chan_agent = module:option(ListValue, "chan_agent", "Agent Proxy Channel", "")
  8. chan_agent:value("yes", "Load")
  9. chan_agent:value("no", "Do Not Load")
  10. chan_agent:value("auto", "Load as Required")
  11. chan_agent.rmempty = true
  12. chan_alsa = module:option(ListValue, "chan_alsa", "Channel driver for GTalk", "")
  13. chan_alsa:value("yes", "Load")
  14. chan_alsa:value("no", "Do Not Load")
  15. chan_alsa:value("auto", "Load as Required")
  16. chan_alsa.rmempty = true
  17. chan_gtalk = module:option(ListValue, "chan_gtalk", "Channel driver for GTalk", "")
  18. chan_gtalk:value("yes", "Load")
  19. chan_gtalk:value("no", "Do Not Load")
  20. chan_gtalk:value("auto", "Load as Required")
  21. chan_gtalk.rmempty = true
  22. chan_iax2 = module:option(Flag, "chan_iax2", "Option chan_iax2", "")
  23. chan_iax2.rmempty = true
  24. chan_local = module:option(ListValue, "chan_local", "Local Proxy Channel", "")
  25. chan_local:value("yes", "Load")
  26. chan_local:value("no", "Do Not Load")
  27. chan_local:value("auto", "Load as Required")
  28. chan_local.rmempty = true
  29. chan_sip = module:option(ListValue, "chan_sip", "Session Initiation Protocol (SIP)", "")
  30. chan_sip:value("yes", "Load")
  31. chan_sip:value("no", "Do Not Load")
  32. chan_sip:value("auto", "Load as Required")
  33. chan_sip.rmempty = true
  34. return cbimap