1
0

asterisk-mod-format.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. format_au = module:option(ListValue, "format_au", "Sun Microsystems AU format (signed linear)", "")
  8. format_au:value("yes", "Load")
  9. format_au:value("no", "Do Not Load")
  10. format_au:value("auto", "Load as Required")
  11. format_au.rmempty = true
  12. format_g723 = module:option(ListValue, "format_g723", "G.723.1 Simple Timestamp File Format", "")
  13. format_g723:value("yes", "Load")
  14. format_g723:value("no", "Do Not Load")
  15. format_g723:value("auto", "Load as Required")
  16. format_g723.rmempty = true
  17. format_g726 = module:option(ListValue, "format_g726", "Raw G.726 (16/24/32/40kbps) data", "")
  18. format_g726:value("yes", "Load")
  19. format_g726:value("no", "Do Not Load")
  20. format_g726:value("auto", "Load as Required")
  21. format_g726.rmempty = true
  22. format_g729 = module:option(ListValue, "format_g729", "Raw G729 data", "")
  23. format_g729:value("yes", "Load")
  24. format_g729:value("no", "Do Not Load")
  25. format_g729:value("auto", "Load as Required")
  26. format_g729.rmempty = true
  27. format_gsm = module:option(ListValue, "format_gsm", "Raw GSM data", "")
  28. format_gsm:value("yes", "Load")
  29. format_gsm:value("no", "Do Not Load")
  30. format_gsm:value("auto", "Load as Required")
  31. format_gsm.rmempty = true
  32. format_h263 = module:option(ListValue, "format_h263", "Raw h263 data", "")
  33. format_h263:value("yes", "Load")
  34. format_h263:value("no", "Do Not Load")
  35. format_h263:value("auto", "Load as Required")
  36. format_h263.rmempty = true
  37. format_jpeg = module:option(ListValue, "format_jpeg", "JPEG (Joint Picture Experts Group) Image", "")
  38. format_jpeg:value("yes", "Load")
  39. format_jpeg:value("no", "Do Not Load")
  40. format_jpeg:value("auto", "Load as Required")
  41. format_jpeg.rmempty = true
  42. format_pcm = module:option(ListValue, "format_pcm", "Raw uLaw 8khz Audio support (PCM)", "")
  43. format_pcm:value("yes", "Load")
  44. format_pcm:value("no", "Do Not Load")
  45. format_pcm:value("auto", "Load as Required")
  46. format_pcm.rmempty = true
  47. format_pcm_alaw = module:option(ListValue, "format_pcm_alaw", "load => .so ; Raw aLaw 8khz PCM Audio support", "")
  48. format_pcm_alaw:value("yes", "Load")
  49. format_pcm_alaw:value("no", "Do Not Load")
  50. format_pcm_alaw:value("auto", "Load as Required")
  51. format_pcm_alaw.rmempty = true
  52. format_sln = module:option(ListValue, "format_sln", "Raw Signed Linear Audio support (SLN)", "")
  53. format_sln:value("yes", "Load")
  54. format_sln:value("no", "Do Not Load")
  55. format_sln:value("auto", "Load as Required")
  56. format_sln.rmempty = true
  57. format_vox = module:option(ListValue, "format_vox", "Dialogic VOX (ADPCM) File Format", "")
  58. format_vox:value("yes", "Load")
  59. format_vox:value("no", "Do Not Load")
  60. format_vox:value("auto", "Load as Required")
  61. format_vox.rmempty = true
  62. format_wav = module:option(ListValue, "format_wav", "Microsoft WAV format (8000hz Signed Line", "")
  63. format_wav:value("yes", "Load")
  64. format_wav:value("no", "Do Not Load")
  65. format_wav:value("auto", "Load as Required")
  66. format_wav.rmempty = true
  67. format_wav_gsm = module:option(ListValue, "format_wav_gsm", "Microsoft WAV format (Proprietary GSM)", "")
  68. format_wav_gsm:value("yes", "Load")
  69. format_wav_gsm:value("no", "Do Not Load")
  70. format_wav_gsm:value("auto", "Load as Required")
  71. format_wav_gsm.rmempty = true
  72. return cbimap