re-implement realtime support in app_directory
[asterisk/asterisk.git] / configs / voicemail.conf.sample
1 ;
2 ; Voicemail Configuration
3 ;
4 [general]
5 ; Default formats for writing Voicemail
6 ;format=g723sf|wav49|wav
7 format=wav49|gsm|wav
8 ; Who the e-mail notification should appear to come from
9 serveremail=asterisk
10 ;serveremail=asterisk@linux-support.net
11 ; Should the email contain the voicemail as an attachment
12 attach=yes
13 ; Maximum length of a voicemail message in seconds
14 ;maxmessage=180
15 ; Minimum length of a voicemail message in seconds
16 ;minmessage=3
17 ; Maximum length of greetings in seconds
18 ;maxgreet=60
19 ; How many miliseconds to skip forward/back when rew/ff in message playback
20 skipms=3000
21 ; How many seconds of silence before we end the recording
22 maxsilence=10
23 ; Silence threshold (what we consider silence, the lower, the more sensitive)
24 silencethreshold=128
25 ; Max number of failed login attempts
26 maxlogins=3
27 ; If you need to have an external program, i.e. /usr/bin/myapp
28 ; called when a voicemail is left, delivered, or your voicemailbox 
29 ; is checked, uncomment this:
30 ;externnotify=/usr/bin/myapp
31 ; If you need to have an external program, i.e. /usr/bin/myapp
32 ; called when a voicemail password is changed,
33 ; uncomment this:
34 ;externpass=/usr/bin/myapp
35 ; For the directory, you can override the intro file if you want
36 ;directoryintro=dir-intro
37 ; The character set for voicemail messages can be specified here
38 ;charset=ISO-8859-1
39 ; The ADSI feature descriptor number to download to 
40 ;adsifdn=0000000F
41 ; The ADSI security lock code
42 ;adsisec=9BDBF7AC
43 ; The ADSI voicemail application version number.
44 ;adsiver=1
45 ; Skip the "[PBX]:" string from the message title
46 ;pbxskip=yes
47 ; Change the From: string
48 ;fromstring=The Asterisk PBX
49 ; Permit finding entries for forward/compose from the directory
50 ;usedirectory=yes
51 ;
52 ;Change the From: string for pager messages
53 ;pagerfromstring=The Asterisk PBX
54 ;
55 ; Change the email body and/or subject, variables: 
56 ;     VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_CIDNUM, VM_CIDNAME, VM_DATE
57 ;
58 ; Note: The emailbody config row can be up to 512 characters due to a limitation in 
59 ;       asterisk config files.
60 ;emailsubject=[PBX]: New message ${VM_MSGNUM} in mailbox ${VM_MAILBOX}
61 ; The following definition is very close to the default, but the default shows just 
62 ; the CIDNAME, if it is not null, else just the CIDNUM, or "an unknown caller" if they are both null.
63 ;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE}, so you might\nwant to check it when you get a chance.  Thanks!\n\n\t\t\t\t--Asterisk\n
64
65 ;
66 ; You can override the default program to send e-mail if you wish, too
67 ;
68 ;mailcmd=/usr/sbin/sendmail -t
69
70 ; Users may be located in different timezones, or may have different 
71 ; message announcements for their introductory message when they enter 
72 ; the voicemail system. Set the message and the timezone each user 
73 ; hears here. Set the user into one of these zones with the tz= attribute 
74 ; in the options field of the mailbox. Of course, language substitution 
75 ; still applies here so you may have several directory trees that have 
76 ; alternate language choices. 
77
78 ; Look in /usr/share/zoneinfo/ for names of timezones. 
79 ; Look at the manual page for strftime for a quick tutorial on how the 
80 ; variable substitution is done on the values below. 
81
82 ; Supported values: 
83 ; 'filename'    filename of a soundfile (single ticks around the filename required)
84 ; ${VAR}        variable substitution 
85 ; A or a        Day of week (Saturday, Sunday, ...) 
86 ; B or b or h   Month name (January, February, ...) 
87 ; d or e        numeric day of month (first, second, ..., thirty-first) 
88 ; Y             Year 
89 ; I or l        Hour, 12 hour clock 
90 ; H             Hour, 24 hour clock (single digit hours preceded by "oh") 
91 ; k             Hour, 24 hour clock (single digit hours NOT preceded by "oh") 
92 ; M             Minute 
93 ; P or p        AM or PM 
94 ; Q             "today", "yesterday" or ABdY (*note: not standard strftime value) 
95 ; q             "" (for today), "yesterday", weekday, or ABdY (*note: not standard strftime value) 
96 ; R             24 hour time, including minute 
97
98
99
100 ;
101 ; Each mailbox is listed in the form <mailbox>=<password>,<name>,<email>,<pager_email>,<options>
102 ; if the e-mail is specified, a message will be sent when a message is
103 ; received, to the given mailbox. If pager is specified, a message will be sent there as well. If the password is prefixed by '-' then it is considered to be unchangable
104 ;
105 ; Advanced options example is extension 4069
106 ; NOTE: All options can be expressed globally in the general section, and overriden in the per-mailbox 
107 ; settings, unless listed otherwise.
108
109 ; tz=central            ; Timezone from zonemessages above.  Irrelevant if envelope=no.
110 ; attach=yes            ; Attach the voicemail to the notification email *NOT* the pager email
111 ; saycid=yes            ; Say the caller id information before the message. If not described, 
112                         ;     or set to no, it will be in the envelope
113 ; cidinternalcontexts=intern    ; Internal Context for Name Playback instead of extension digits when saying caller id.
114 ; sayduration=no        ; Turn on/off the duration information before the message. [ON by default]
115 ; saydurationm=2        ; Specify the minimum duration to say. Default is 2 minutes
116 ; dialout=fromvm        ; Context to dial out from [option 4 from the advanced menu]
117                         ;     if not listed, dialing out will not be permitted
118 sendvoicemail=yes       ; Context to Send voicemail from [option 5 from the advanced menu]
119                         ; if not listed, sending messages from inside voicemail will not be 
120                         ; permitted
121 ; callback=fromvm       ; Context to call back from  
122                         ;     if not listed, calling the sender back will not be permitted
123 ; review=yes            ; Allow sender to review/rerecord their message before saving it [OFF by default
124 ; operator=yes          ; Allow sender to hit 0 before/after/during  leaving a voicemail to 
125                         ;     reach an operator  [OFF by default]
126 ; envelope=no           ; Turn on/off envelope playback before message playback. [ON by default] 
127                         ;     This does NOT affect option 3,3 from the advanced options menu
128 ; delete=yes            ; After notification, the voicemail is deleted from the server. [per-mailbox only]
129                         ;     This is intended for use with users who wish to receive their voicemail ONLY by email.
130 ; nextaftercmd=yes      ; Skips to the next message after hitting 7 or 9 to delete/save current message.
131                         ;     [global option only at this time] 
132 ; forcename=yes         ; Forces a new user to record their name.  A new user is
133                         ;     determined by the password being the same as
134                         ;     the mailbox number.  The default is "no".
135 ; forcegreetings=no     ; This is the same as forcename, except for recording
136                         ;     greetings.  The default is "no".
137 ; hidefromdir=yes       ; Hide this mailbox from the directory produced by app_directory
138                         ;     The default is "no".
139
140 [zonemessages]
141 eastern=America/New_York|'vm-received' Q 'digits/at' IMp
142 central=America/Chicago|'vm-received' Q 'digits/at' IMp
143 central24=America/Chicago|'vm-received' q 'digits/at' H 'digits/hundred' M 'hours'
144
145 [default]
146 1234 => 4242,Example Mailbox,root@localhost
147 ;4200 => 9855,Mark Spencer,markster@linux-support.net,mypager@digium.com,attach=no|serveremail=myaddy@digium.com|tz=central
148 ;4300 => 3456,Ben Rigas,ben@american-computer.net
149 ;4310 => -5432,Sales,sales@marko.net
150 ;4069 => 6522,Matt Brooks,matt@marko.net,,|tz=central|attach=yes|saycid=yes|dialout=fromvm|callback=fromvm|review=yes|operator=yes|envelope=yes|sayduration=yes|saydurationm=1
151 ;4073 => 1099,Bianca Paige,bianca@biancapaige.com,,delete=1
152 ;4110 => 3443,Rob Flynn,rflynn@blueridge.net
153
154
155 ;
156 ; Mailboxes may be organized into multiple contexts for
157 ; voicemail virtualhosting
158 ;
159
160 [other]
161 ;The intro can be customized on a per-context basis
162 ;directoryintro=dir-company2
163 1234 => 5678,Company2 User,root@localhost