forked from rubyists/tiny_cdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.rb
36 lines (21 loc) · 1.24 KB
/
options.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'innate'
module TinyCdr
include Innate::Optioned
options.dsl do
o "Postgres Database Name", :pg_dbname, ENV["TinyCdr_PgDB"] || "tiny_cdr"
o "Couch Database URI", :couch_uri, ENV["TinyCdr_CouchURI"]
o "Log Level (DEBUG, INFO, WARN, ERROR, CRIT)", :log_level,
ENV["TinyCdr_LogLevel"] || "INFO"
o "Main Recording Path", :base_record_path, ENV["TinyCdr_BaseRecordPath"] || "/var/spool/freeswitch/recordings"
o "Archive Recording Paths (: separated, unix-style)", :archive_record_paths, ENV["TinyCdr_ArchiveRecordPaths"] || "/mnt/recordings"
o "Mounted Recording Path", :mounted_record_path, ENV["TinyCdr_MountedRecordPath"] || "/mnt/recordings"
o "Temporary Audio File Path", :tmp_file_path, ENV["TinyCdr_TmpFilePath"] || "/tmp"
o "Use Ldap?", :use_ldap, ENV["TinyCdr_UseLdap"] || false
o "Ldap Host", :ldap_host, ENV["TinyCdr_LdapHost"]
o "Ldap Port", :ldap_port, ENV["TinyCdr_LdapPort"] || 389
o "Ldap Domain", :ldap_domain, ENV["TinyCdr_LdapDomain"]
o "Ldap User Attribute", :ldap_user_attrib, ENV["TinyCdr_LdapUserAttrib"]
o "Ldap Phone Attribute", :ldap_phone_attrib, ENV["TinyCdr_LdapPhoneAttrib"] || "ipPhone"
o "Ldap Tree Base", :ldap_base, ENV["TinyCdr_LdapBase"]
end
end