asterisk-mod-cdr.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. cdr_csv = module:option(ListValue, "cdr_csv", "Comma Separated Values CDR Backend", "")
  8. cdr_csv:value("yes", "Load")
  9. cdr_csv:value("no", "Do Not Load")
  10. cdr_csv:value("auto", "Load as Required")
  11. cdr_csv.rmempty = true
  12. cdr_custom = module:option(ListValue, "cdr_custom", "Customizable Comma Separated Values CDR Backend", "")
  13. cdr_custom:value("yes", "Load")
  14. cdr_custom:value("no", "Do Not Load")
  15. cdr_custom:value("auto", "Load as Required")
  16. cdr_custom.rmempty = true
  17. cdr_manager = module:option(ListValue, "cdr_manager", "Asterisk Call Manager CDR Backend", "")
  18. cdr_manager:value("yes", "Load")
  19. cdr_manager:value("no", "Do Not Load")
  20. cdr_manager:value("auto", "Load as Required")
  21. cdr_manager.rmempty = true
  22. cdr_mysql = module:option(ListValue, "cdr_mysql", "MySQL CDR Backend", "")
  23. cdr_mysql:value("yes", "Load")
  24. cdr_mysql:value("no", "Do Not Load")
  25. cdr_mysql:value("auto", "Load as Required")
  26. cdr_mysql.rmempty = true
  27. cdr_pgsql = module:option(ListValue, "cdr_pgsql", "PostgreSQL CDR Backend", "")
  28. cdr_pgsql:value("yes", "Load")
  29. cdr_pgsql:value("no", "Do Not Load")
  30. cdr_pgsql:value("auto", "Load as Required")
  31. cdr_pgsql.rmempty = true
  32. cdr_sqlite = module:option(ListValue, "cdr_sqlite", "SQLite CDR Backend", "")
  33. cdr_sqlite:value("yes", "Load")
  34. cdr_sqlite:value("no", "Do Not Load")
  35. cdr_sqlite:value("auto", "Load as Required")
  36. cdr_sqlite.rmempty = true
  37. return cbimap