1
0

asterisk-voice.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "")
  6. serveremail = voicegeneral:option(Value, "serveremail", "From Email address of server", "")
  7. voicemail = cbimap:section(TypedSection, "voicemail", "Voice Mail boxes", "")
  8. voicemail.addremove = true
  9. attach = voicemail:option(Flag, "attach", "Email contains attachment", "")
  10. attach.rmempty = true
  11. email = voicemail:option(Value, "email", "Email", "")
  12. email.rmempty = true
  13. name = voicemail:option(Value, "name", "Display Name", "")
  14. name.rmempty = true
  15. password = voicemail:option(Value, "password", "Password", "")
  16. password.rmempty = true
  17. zone = voicemail:option(ListValue, "zone", "Voice Zone", "")
  18. cbimap.uci:foreach( "asterisk", "voicezone", function(s) zone:value(s['.name']) end )
  19. voicezone = cbimap:section(TypedSection, "voicezone", "Voice Zone settings", "")
  20. voicezone.addremove = true
  21. message = voicezone:option(Value, "message", "Message Format", "")
  22. message.rmempty = true
  23. zone = voicezone:option(Value, "zone", "Time Zone", "")
  24. zone.rmempty = true
  25. return cbimap