1
0

asterisk-mod-codec.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. codec_a_mu = module:option(ListValue, "codec_a_mu", "A-law and Mulaw direct Coder/Decoder", "")
  8. codec_a_mu:value("yes", "Load")
  9. codec_a_mu:value("no", "Do Not Load")
  10. codec_a_mu:value("auto", "Load as Required")
  11. codec_a_mu.rmempty = true
  12. codec_adpcm = module:option(ListValue, "codec_adpcm", "Adaptive Differential PCM Coder/Decoder", "")
  13. codec_adpcm:value("yes", "Load")
  14. codec_adpcm:value("no", "Do Not Load")
  15. codec_adpcm:value("auto", "Load as Required")
  16. codec_adpcm.rmempty = true
  17. codec_alaw = module:option(ListValue, "codec_alaw", "A-law Coder/Decoder", "")
  18. codec_alaw:value("yes", "Load")
  19. codec_alaw:value("no", "Do Not Load")
  20. codec_alaw:value("auto", "Load as Required")
  21. codec_alaw.rmempty = true
  22. codec_g726 = module:option(ListValue, "codec_g726", "ITU G.726-32kbps G726 Transcoder", "")
  23. codec_g726:value("yes", "Load")
  24. codec_g726:value("no", "Do Not Load")
  25. codec_g726:value("auto", "Load as Required")
  26. codec_g726.rmempty = true
  27. codec_gsm = module:option(ListValue, "codec_gsm", "GSM/PCM16 (signed linear) Codec Translation", "")
  28. codec_gsm:value("yes", "Load")
  29. codec_gsm:value("no", "Do Not Load")
  30. codec_gsm:value("auto", "Load as Required")
  31. codec_gsm.rmempty = true
  32. codec_speex = module:option(ListValue, "codec_speex", "Speex/PCM16 (signed linear) Codec Translator", "")
  33. codec_speex:value("yes", "Load")
  34. codec_speex:value("no", "Do Not Load")
  35. codec_speex:value("auto", "Load as Required")
  36. codec_speex.rmempty = true
  37. codec_ulaw = module:option(ListValue, "codec_ulaw", "Mu-law Coder/Decoder", "")
  38. codec_ulaw:value("yes", "Load")
  39. codec_ulaw:value("no", "Do Not Load")
  40. codec_ulaw:value("auto", "Load as Required")
  41. codec_ulaw.rmempty = true
  42. return cbimap