2 ; Voicemail Configuration
6 ; NOTE: Asterisk has to edit this file to change a user's password. This does
7 ; not currently work with the "#include <file>" directive for Asterisk
8 ; configuration files, nor when using realtime static configuration.
9 ; Do not use them with this configuration file.
13 ; Formats for writing Voicemail. Note that when using IMAP storage for
14 ; voicemail, only the first format specified will be used.
15 ;format=g723sf|wav49|wav
19 ; If you change the list of formats that you record voicemail in
20 ; when you have mailboxes that contain messages, you _MUST_ absolutely
21 ; manually go through those mailboxes and convert/delete/add the
22 ; the message files so that they appear to have been stored using
23 ; your new format list. If you don't do this, very unpleasant
24 ; things may happen to your users while they are retrieving and
25 ; manipulating their voicemail.
27 ; In other words: don't change the format list on a production system
28 ; unless you are _VERY_ sure that you know what you are doing and are
29 ; prepared for the consequences.
31 ; Who the e-mail notification should appear to come from
32 serveremail=assistance-informatique@auf.org
33 ;serveremail=asterisk@linux-support.net
34 ; Should the email contain the voicemail as an attachment
36 ; Maximum number of messages per folder. If not specified, a default value
37 ; (100) is used. Maximum value for this option is 9999. If set to 0, a
38 ; mailbox will be greetings-only.
40 ; Maximum length of a voicemail message in seconds
42 ; Minimum length of a voicemail message in seconds for the message to be kept
43 ; The default is no minimum.
45 ; Maximum length of greetings in seconds
47 ; How many milliseconds to skip forward/back when rew/ff in message playback
49 ; How many seconds of silence before we end the recording
51 ; Silence threshold (what we consider silence: the lower, the more sensitive)
53 ; Max number of failed login attempts
56 ; Move heard messages to the 'Old' folder automagically. Defaults to on.
59 ; Forward an urgent message as an urgent message. Defaults to no so
60 ; sender can set the urgency on the envelope of the forwarded message.
61 ;forward_urgent_auto=no
63 ; User context is where entries from users.conf are registered. The
64 ; default value is 'default'
68 ; If you need to have an external program, i.e. /usr/bin/myapp
69 ; called when a voicemail is left, delivered, or your voicemailbox
70 ; is checked, uncomment this.
71 ;externnotify=/usr/bin/myapp
73 ; If you would also like to enable SMDI notification then set smdienable to yes.
74 ; You will also need to make sure smdiport is set to a valid port as specified in
79 ; If you need to have an external program, i.e. /usr/bin/myapp
80 ; called when a voicemail password is changed, uncomment this. The
81 ; arguments passed to the application are: <context> <mailbox> <newpassword>
82 ; Note: If this is set, the password will NOT be changed in voicemail.conf
83 ; If you would like to also change the password in voicemail.conf, use
84 ; the externpassnotify option below instead.
85 ;externpass=/usr/bin/myapp
86 ;externpassnotify=/usr/bin/myapp
88 ; If you would like to have an external program called when a user changes the
89 ; voicemail password for the purpose of doing validation on the new password,
90 ; then use this option. The script can decide whether or not the new password
91 ; meets minimum password strength requirements before the Voicemail application
92 ; accepts the password. If the script decides that the password is not acceptable,
93 ; the user will be informed that the new password does not meet minimum password
94 ; requirements, and they will be asked to enter another password.
96 ; The arguments passed to this script are <mailbox> <context> <old pw> <new pw>.
98 ; The script should print "VALID" to stdout to indicate that the new password
99 ; is acceptable. If the password is considered too weak, the script should print
100 ; "INVALID" to stdout.
102 ; There is an example script in the contrib/scripts/ directory, voicemailpwcheck.py,
103 ; which implements some basic password checking, and can be used as a starting point
104 ; for use with this option.
106 ;externpasscheck=/usr/local/bin/voicemailpwcheck.py
108 ; For the directory, you can override the intro file if you want
109 ;directoryintro=dir-intro
110 ; The character set for voicemail messages can be specified here
111 ; default: ISO-8859-1
113 ; The ADSI feature descriptor number to download to
115 ; The ADSI security lock code
117 ; The ADSI voicemail application version number.
119 ; Skip the "[PBX]:" string from the message title
121 ; Change the From: string
122 fromstring=Systeme VoIP
123 ; Permit finding entries for forward/compose from the directory
125 ; Voicemail can be stored in a database using the ODBC driver.
126 ; The value of odbcstorage is the database connection configured
128 ;odbcstorage=asterisk
129 ; The default table for ODBC voicemail storage is voicemessages.
130 ;odbctable=voicemessages
132 ; Change the from, body and/or subject, variables:
133 ; VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_CIDNUM,
134 ; VM_CIDNAME, VM_DATE
135 ; Additionally, on forwarded messages, you have the variables:
136 ; ORIG_VM_CALLERID, ORIG_VM_CIDNUM, ORIG_VM_CIDNAME, ORIG_VM_DATE
137 ; You can select between two variables by using dialplan functions, e.g.
138 ; ${IF(${ISNULL(${ORIG_VM_DATE})}?${VM_DATE}:${ORIG_VM_DATE})}
140 ; Note: The emailbody config row can only be up to 512 characters due to a
141 ; limitation in the Asterisk configuration subsystem.
142 ;emailsubject=[PBX]: New message ${VM_MSGNUM} in mailbox ${VM_MAILBOX}
143 emailsubject=[BoiteVocale ${VM_MAILBOX}] Nouveau message ${VM_MSGNUM} dans la boite vocale ${VM_MAILBOX}
145 ; The following definition is very close to the default, but the default shows
146 ; just the CIDNAME, if it is not null, otherwise just the CIDNUM, or "an unknown
147 ; caller", if they are both null.
148 ;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
150 emailbody=\nCher-ère ${VM_NAME},\n\nNous vous informons qu'un message vient d'être ajouté dans\nvotre messagerie vocale ${VM_MAILBOX}.\n\n\tExpéditeur : ${VM_CALLERID} (${VM_CIDNUM})\n\tDate : ${VM_DATE}\n\tDurée : ${VM_DUR}\n\tNuméro du message : ${{VM_MSGNUM}\n\nPour consulter votre messagerie vocale, composez *66\n\n--\nSystème Voix-sur-IP de l'AUF <assistance-informatique@auf.org>\n
153 ; Note: ${IF()} strips spacing at the beginning and end of its true and false
154 ; values, so a newline cannot be placed at either location. The word 'so' is
155 ; therefore duplicated, in order for the newline to be interpreted correctly.
156 ;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just ${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?left:forwarded)} a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE},\n${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?so:(originally sent by ${ORIG_VM_CALLERID} on ${ORIG_VM_DATE})\nso)} you might want to check it when you get a chance. Thanks!\n\n\t\t\t\t--Asterisk\n
158 ; You can also change the Pager From: string, the pager body and/or subject.
159 ; The above defined variables also can be used here
160 ;pagerfromstring=The Asterisk PBX
162 ;pagerbody=New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE}
164 ; Set the date format on outgoing mails. Valid arguments can be found on the
165 ; strftime(3) man page
168 emaildateformat=%A, %B %d, %Y at %r
170 ;emaildateformat=%A, %d %B %Y at %H:%M:%S
171 emaildateformat = le %d %B %Y à %H:%M:%S
173 ; Default for pager use
174 ; pagerdateformat=%A, %B %d, %Y at %r
175 pagerdateformat=le %d %B %Y à %H:%M:%S
176 ; Short 24h date format for pager use
177 ;pagerdateformat=%T %D
179 ; You can override the default program to send e-mail if you wish, too
181 ;mailcmd=/usr/sbin/sendmail -t
183 ;pollmailboxes=no ; If mailboxes are changed anywhere outside of app_voicemail,
184 ; ; then this option must be enabled for MWI to work. This
185 ; ; enables polling mailboxes for changes. Normally, it will
186 ; ; expect that changes are only made when someone called in
187 ; ; to one of the voicemail applications.
188 ; ; Examples of situations that would require this option are
189 ; ; web interfaces to voicemail or an email client in the case
190 ; ; of using IMAP storage.
192 ;pollfreq=30 ; If the "pollmailboxes" option is enabled, this option
193 ; ; sets the polling frequency. The default is once every
195 ; If using IMAP storage, specify whether voicemail greetings should be stored
196 ; via IMAP. If no, then greetings are stored as if IMAP storage were not enabled
198 ; If imapgreetings=yes, then specify which folder to store your greetings in. If
199 ; you do not specify a folder, then INBOX will be used
200 ;greetingsfolder=INBOX
201 ; Some IMAP server implementations store folders under INBOX instead of
202 ; using a top level folder (ex. INBOX/Friends). In this case, user
203 ; imapparentfolder to set the parent folder. For example, Cyrus IMAP does
204 ; NOT use INBOX as the parent. Default is to have no parent folder set.
205 ;imapparentfolder=INBOX
209 ; Each mailbox is listed in the form <mailbox>=<password>,<name>,<email>,<pager_email>,<options>
210 ; if the e-mail is specified, a message will be sent when a message is
211 ; received, to the given mailbox. If pager is specified, a message will be
212 ; sent there as well. If the password is prefixed by '-', then it is
213 ; considered to be unchangeable.
215 ; Advanced options example is extension 4069
216 ; NOTE: All options can be expressed globally in the general section, and
217 ; overridden in the per-mailbox settings, unless listed otherwise.
220 ; tz=central ; Timezone from zonemessages below. Irrelevant if envelope=no.
221 ; locale=de_DE.UTF-8 ; set the locale for generation of the date/time strings (make
222 ; sure the locales are installed in your operating system; e.g
223 ; on Debian Linux you can use "dpkg-reconfigure locales").
224 ; If you use UTF-8 locales, make sure to set the "charset" option
225 ; to UTF-8 too. If you mix different locales for different users
226 ; you should avoid words in the emaildateformat specification, e.g.:
227 ; emaildateformat=%A, %d %B %Y, %H:%M:%S
228 ; attach=yes ; Attach the voicemail to the notification email *NOT* the pager email
229 ; attachfmt=wav49 ; Which format to attach to the email. Normally this is the
230 ; first format specified in the format parameter above, but this
231 ; option lets you customize the format sent to particular mailboxes.
232 ; Useful if Windows users want wav49, but Linux users want gsm.
234 ; saycid=yes ; Say the caller id information before the message. If not described,
235 ; or set to no, it will be in the envelope
236 ; cidinternalcontexts=intern ; Internal Context for Name Playback instead of
237 ; extension digits when saying caller id.
238 ; sayduration=no ; Turn on/off the duration information before the message. [ON by default]
239 ; saydurationm=2 ; Specify the minimum duration to say. Default is 2 minutes
240 ; dialout=fromvm ; Context to dial out from [option 4 from mailbox's advanced menu].
241 ; If not specified, option 4 will not be listed and dialing out
242 ; from within VoiceMailMain() will not be permitted.
243 sendvoicemail=yes ; Allow the user to compose and send a voicemail while inside
244 ; VoiceMailMain() [option 5 from mailbox's advanced menu].
245 ; If set to 'no', option 5 will not be listed.
246 ; searchcontexts=yes ; Current default behavior is to search only the default context
247 ; if one is not specified. The older behavior was to search all contexts.
248 ; This option restores the old behavior [DEFAULT=no]
249 ; Note: If you have this option enabled, then you will be required to have
250 ; unique mailbox names across all contexts. Otherwise, an ambiguity is created
251 ; since it is impossible to know which mailbox to retrieve when one is requested.
252 callback=fromvm ; Context to call back from
253 ; if not listed, calling the sender back will not be permitted
254 ; exitcontext=fromvm ; Context to go to on user exit such as * or 0
255 ; The default is the current context.
256 ; review=yes ; Allow sender to review/rerecord their message before saving it [OFF by default
257 ; operator=yes ; Allow sender to hit 0 before/after/during leaving a voicemail to
258 ; reach an operator. This option REQUIRES an 'o' extension in the
259 ; same context (or in exitcontext, if set), as that is where the
260 ; 0 key will send you. [OFF by default]
261 ; envelope=no ; Turn on/off envelope playback before message playback. [ON by default]
262 ; This does NOT affect option 3,3 from the advanced options menu
263 ; delete=yes ; After notification, the voicemail is deleted from the server. [per-mailbox only]
264 ; This is intended for use with users who wish to receive their
265 ; voicemail ONLY by email. Note: "deletevoicemail" is provided as an
266 ; equivalent option for Realtime configuration.
267 ; volgain=0.0 ; Emails bearing the voicemail may arrive in a volume too
268 ; quiet to be heard. This parameter allows you to specify how
269 ; much gain to add to the message when sending a voicemail.
270 ; NOTE: sox must be installed for this option to work.
271 ; nextaftercmd=yes ; Skips to the next message after hitting 7 or 9 to delete/save current message.
272 ; forcename=yes ; Forces a new user to record their name. A new user is
273 ; determined by the password being the same as
274 ; the mailbox number. The default is "no".
275 ; forcegreetings=no ; This is the same as forcename, except for recording
276 ; greetings. The default is "no".
277 ; hidefromdir=yes ; Hide this mailbox from the directory produced by app_directory
278 ; The default is "no".
279 ; tempgreetwarn=yes ; Remind the user that their temporary greeting is set
281 ; passwordlocation=spooldir
282 ; Usually the voicemail password (vmsecret) is stored in
283 ; this configuration file. By setting this option you can
284 ; specify where Asterisk should read/write the vmsecret.
287 ; This is the default option. The secret is read from
288 ; and written to voicemail.conf (or users.conf).
290 ; The secret is stored in a separate file in the user's
291 ; voicemail spool directory in a file named secret.conf.
292 ; Please ensure that normal Linux users are not
293 ; permitted to access Asterisk's spool directory as the
294 ; secret is stored in plain text. If a secret is not
295 ; found in this directory, the password in
296 ; voicemail.conf (or users.conf) will be used.
297 ; Note that this option does not affect password storage for
298 ; realtime users, which are still stored in the realtime
300 ; messagewrap=no ; Enable next/last message to wrap around to
301 ; first (from last) and last (from first) message
302 ; The default is "no".
303 ; minpassword=0 ; Enforce minimum password length
305 ; vm-password=custom_sound
306 ; Customize which sound file is used instead of the default
307 ; prompt that says: "password"
308 ; vm-newpassword=custom_sound
309 ; Customize which sound file is used instead of the default
310 ; prompt that says: "Please enter your new password followed by
312 ; vm-passchanged=custom_sound
313 ; Customize which sound file is used instead of the default
314 ; prompt that says: "Your password has been changed."
315 ; vm-reenterpassword=custom_sound
316 ; Customize which sound file is used instead of the default
317 ; prompt that says: "Please re-enter your password followed by
319 ; vm-mismatch=custom_sound
320 ; Customize which sound file is used instead of the default
321 ; prompt that says: "The passwords you entered and re-entered
323 ; vm-invalid-password=custom_sound
324 ; Customize which sound file is used instead of the default
325 ; prompt that says: ...
326 ; vm-pls-try-again=custom_sound
327 ; Customize which sound file is used instead of the
328 ; default prompt that says "Please try again."
329 ; vm-prepend-timeout=custom_sound
330 ; Customize which sound file is used when the user
331 ; times out while recording a prepend message instead
332 ; of the default prompt that says "then press pound"
333 ; note that this will currently follow vm-pls-try-again.
334 ; this behavior is subject to change in the near future.
335 ; listen-control-forward-key=# ; Customize the key that fast-forwards message playback
336 ; listen-control-reverse-key=* ; Customize the key that rewinds message playback
337 ; listen-control-pause-key=0 ; Customize the key that pauses/unpauses message playback
338 ; listen-control-restart-key=2 ; Customize the key that restarts message playback
339 ; listen-control-stop-key=13456789 ; Customize the keys that interrupt message playback, probably all keys not set above
341 ; Maximum number of messages allowed in the 'Deleted' folder. If set to 0
342 ; or no then no deleted messages will be moved. If non-zero (max 9999) then up
343 ; to this number of messages will be automagically saved when they are
344 ; 'deleted' on a FIFO basis.
345 ; defaults to being off
350 ; Users may be located in different timezones, or may have different
351 ; message announcements for their introductory message when they enter
352 ; the voicemail system. Set the message and the timezone each user
353 ; hears here. Set the user into one of these zones with the tz= attribute
354 ; in the options field of the mailbox. Of course, language substitution
355 ; still applies here so you may have several directory trees that have
356 ; alternate language choices.
358 ; Look in /usr/share/zoneinfo/ for names of timezones.
359 ; Look at the manual page for strftime for a quick tutorial on how the
360 ; variable substitution is done on the values below.
363 ; 'filename' filename of a soundfile (single ticks around the filename
365 ; ${VAR} variable substitution
366 ; A or a Day of week (Saturday, Sunday, ...)
367 ; B or b or h Month name (January, February, ...)
368 ; d or e numeric day of month (first, second, ..., thirty-first)
370 ; I or l Hour, 12 hour clock
371 ; H Hour, 24 hour clock (single digit hours preceded by "oh")
372 ; k Hour, 24 hour clock (single digit hours NOT preceded by "oh")
373 ; M Minute, with 00 pronounced as "o'clock"
374 ; N Minute, with 00 pronounced as "hundred" (US military time)
376 ; Q "today", "yesterday" or ABdY
377 ; (*note: not standard strftime value)
378 ; q "" (for today), "yesterday", weekday, or ABdY
379 ; (*note: not standard strftime value)
380 ; R 24 hour time, including minute
382 eastern=America/New_York|'vm-received' Q 'digits/at' IMp
383 central=America/Chicago|'vm-received' Q 'digits/at' IMp
384 central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
385 military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
386 european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
387 gmt=GMT|'vm-received' Q 'digits/at' kM
392 ; surcharge AUF locale (pour le contexte [AUF] surtout)
393 #include "auf/voicemail.local"