2 ; Mini-Voicemail Configuration
3 ; for the MiniVM set of applications
5 ; MiniVM consists of the following dialplan applications
6 ; MinivmGreet Play personal prompts for busy/unavailable/temporary messages or default prompts
7 ; MinivmRecord Record voice prompts to account directory or default directory
8 ; MinivmNotify Notify via e-mail or pager - with or without attachment
9 ; MinivmDelete Delete voice prompt (filename as argument or channel variable set by MinivmRecord)
11 ; MiniVM works without accounts (just give e-mail address as argument) or with accounts in
12 ; this configuration file or realtime. The idea is to build voicemail as building blocks so that
13 ; a complete and adaptive voicemail system can be built in the dialplan
15 ;------------------------------ Variables to use in subject, from and message body ------------------
16 ; Change the from, body and/or subject, variables:
17 ; MVM_NAME, MVM_DUR, MVM_MSGNUM, VM_MAILBOX, MVM_CALLERID, MVM_CIDNUM,
18 ; MVM_CIDNAME, MVM_DATE
20 ; In addition to these, you can set the MVM_COUNTER channel variable in the
21 ; dial plan and use that as a counter. It will also be used in the file name
22 ; of the media file attached to the message
24 ; Note: The emailbody config row can only be up to 512 characters due to a
25 ; limitation in the Asterisk configuration subsystem.
26 ; To create longer mails, use the templatefile option when creating the template
27 ;----------------------------------------------------------------------------------------------------
30 ; Default format for storing and sending voicemail
31 ; (only one format. Can also be set on a per-mailbox level)
35 ;Turn on logfile with the following syntax. One line per voicemail received
37 ; Mailbox:domain:macrocontext:exten:priority:callerchan:callerid:origdate:origtime:duration:durationstatus:accountcode
38 ;logfile=/var/log/asterisk/minivm.log
39 ; Who the e-mail notification should appear to come from
41 ;serveremail=asterisk@asterisk.example.com
42 ; Minimum length of a voicemail message in seconds for the message to be kept
43 ; The default is no minimum.
45 ; How many seconds of silence before we end the recording
47 ; Silence threshold (what we consider silence: the lower, the more sensitive)
49 ; How long greeting messages (busy/unavailable/temp/name) are allowed to be, in seconds
51 ; If you need to have an external program, i.e. /usr/bin/myapp called when a
52 ; voicemail is received by the server. The arguments are
54 ; <app> <username@domain> <callerid-number> <callerid-name>
56 ;externnotify=/usr/bin/myapp
57 ; The character set for voicemail messages can be specified here
59 ; Skip the "[PBX]:" string from the message title
61 ; Change the From: string
63 ; You can override the default program to send e-mail if you wish, too
64 ; This is used both for e-mail and pager messages
65 ;mailcmd=/usr/sbin/sendmail -t
67 ;--------------Default e-mail message template (used if no templates are used) ------
68 ;fromstring=The Asterisk PBX
71 ;emailsubject=[PBX]: New message ${MVM_COUNER} in mailbox ${VM_MAILBOX}
72 ; The following definition is very close to the default, but the default shows
73 ; just the CIDNAME, if it is not null, otherwise just the CIDNUM, or "an unknown
74 ; caller", if they are both null.
75 ;emailbody=Dear ${MVM_NAME}:\n\n\tjust wanted to let you know you were just left a ${MVM_DUR} long message (number ${MVM_COUNTER})\nin mailbox ${MVM_MAILBOX} from ${MVM_CALLERID}, on ${MVM_DATE}, so you might\nwant to check it when you get a chance. Thanks!\n\n\t\t\t\t--Asterisk\n
77 ; Set the date format on outgoing mails. Valid arguments can be found on the
78 ; strftime(3) man page
81 emaildateformat=%A, %B %d, %Y at %r
83 ;emaildateformat=%A, %d %B %Y at %H:%M:%S
85 ;--------------Default pager message template (used if no templates are used) ------
86 ; You can also change the Pager From: string, the pager body and/or subject.
87 ; The above defined variables also can be used here
88 ;pagerfromstring=The Asterisk PBX
89 ;pagersubject=New VM ${MVM_COUNTER}
90 ;pagerbody=New ${MVM_DUR} long msg in box ${MVM_MAILBOX}\nfrom ${MVM_CALLERID}, on ${MVM_DATE}
93 ;--------------Timezone definitions (used in voicemail accounts) -------------------
95 ; Users may be located in different timezones, or may have different
96 ; message announcements for their introductory message when they enter
97 ; the voicemail system. Set the message and the timezone each user
98 ; hears here. Set the user into one of these zones with the tz= attribute
99 ; in the options field of the mailbox. Of course, language substitution
100 ; still applies here so you may have several directory trees that have
101 ; alternate language choices.
103 ; Look in /usr/share/zoneinfo/ for names of timezones.
104 ; Look at the manual page for strftime for a quick tutorial on how the
105 ; variable substitution is done on the values below.
108 ; 'filename' filename of a soundfile (single ticks around the filename
110 ; ${VAR} variable substitution
111 ; A or a Day of week (Saturday, Sunday, ...)
112 ; B or b or h Month name (January, February, ...)
113 ; d or e numeric day of month (first, second, ..., thirty-first)
115 ; I or l Hour, 12 hour clock
116 ; H Hour, 24 hour clock (single digit hours preceded by "oh")
117 ; k Hour, 24 hour clock (single digit hours NOT preceded by "oh")
118 ; M Minute, with 00 pronounced as "o'clock"
119 ; N Minute, with 00 pronounced as "hundred" (US military time)
121 ; Q "today", "yesterday" or ABdY
122 ; (*note: not standard strftime value)
123 ; q "" (for today), "yesterday", weekday, or ABdY
124 ; (*note: not standard strftime value)
125 ; R 24 hour time, including minute
127 ; The message here is not used in mini-voicemail, but stays for
128 ; backwards compatibility
131 eastern=America/New_York|'vm-received' Q 'digits/at' IMp
132 central=America/Chicago|'vm-received' Q 'digits/at' IMp
133 central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
134 military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
136 ;----------------------- Message body templates---------------------
137 ; [template-name] ; "template-" is a verbatim marker
138 ; fromaddress = Your Friendly Asterisk Server
139 ; fromemail = asteriskvm@digium.com
141 ; attachmedia = yes | no ; Add media file as attachment?
142 ; dateformat = <formatstring> ; See above
143 ; charset = <charset> ; Mime charset definition for e-mail messages
144 ; locale = <locale> ; Locale for LC_TIME - to get weekdays in local language
145 ; ; See your O/S documentation for proper settings for setlocale()
146 ; templatefile = <filename> ; File name (relative to Asterisk configuration directory,
148 ; messagebody = Format ; Message body definition with variables
150 [template-sv_SE_email]
151 messagebody=Hej ${MVM_NAME}:\n\n\tDu har fått ett röstbrevlåde-meddelande från ${MVM_CALLERID}.\nLängd: ${MVM_DUR}\nMailbox ${MVM_MAILBOX}\nDatum: ${MVM_DATE}. \nMeddelandet bifogas det här brevet. Om du inte kan läsa det, kontakta intern support. \nHälsningar\n\n\t\t\t\t--Asterisk\n
152 subject = Du har fått röstmeddelande (se bilaga)
153 fromemail = swedish-voicemail-service@stockholm.example.com
154 fromaddress = Asterisk Röstbrevlåda
157 dateformat=%A, %d %B %Y at %H:%M:%S
160 [template-en_US_email]
161 messagebody=Dear ${MVM_NAME}:\n\n\tjust wanted to let you know you were just left a ${MVM_DUR} long message \nin mailbox ${MVM_MAILBOX} from ${MVM_CALLERID}, on ${MVM_DATE}, so you might\nwant to check it when you get a chance. Thanks!\n\n\t\t\t\t--Asterisk\n
162 subject = New voicemail
165 dateformat=%A, %B %d, %Y at %r
167 ;[template-sv_SE_pager]
168 ;templatefile = templates/pager_sv_se.txt
169 ;subject = Du har fått voicemail
174 ;[template-nb_NO_email]
175 ;templatefile = templates/email_nb_NO.txt
176 ;subject = Du har fått voicemail
180 ;[template-en_US_email_southern]
181 ;templatefile = templates/email_en_US.txt
182 ;subject = Y'all got voicemail, honey!
185 ;[template-en_UK_email]
186 ;templatefile = templates/email_en_us.txt
187 ;subject = Dear old chap, you've got an electronic communique
190 ;----------------------- Mailbox accounts --------------------------
191 ;Template for mailbox definition - all options
193 ; [username@domain] ; Has to be unique within domain (MWM_USERNAME, MWM_DOMAIN)
194 ; etemplate = sv_SE ; Email template from [templates]
195 ; ptemplate = en_US ; Pager template from [templates]
196 ; email = userpart@domain ; Extra e-mail address (overrides mailbox name)
197 ; pager = pageremail@domain ; E-mail address for pager messages
198 ; fullname = Mark Spencer ; Full name (MWM_NAME)
199 ; options = ; E-mail options, se below
200 ; accountcode = ; Account code (read in dialplan function MINIVMACCOUNT)
201 ; pincode = ; Numeric pin code (read in dialplan function MINIVMACCOUNT)
202 ; timezone=se ; Time zone
203 ; serveremail = asterisk@digium.com ; Who to send email from (overrides template if set)
204 ; externnotify = <application> ; External application for this account
205 ; volgain = ; Volume gain setting (requires "sox")
206 ; setvar=SERVICENAME=Voop.com Networks ; Extra variables to use in template
208 ; Remember that you can use Asterisk Configuration Templates (ACT)
210 ; [template@example.com](!) ; Declare template
211 ; setvar=customerdomain=example.com
212 ; setvar=customerclass=gold
213 ; etemplate = sv_se_email
214 ; serveremail = voicemail@example.com
216 ; [user2@example.com](template@example.com) ; Declare user2 account using template
217 ; fullname = Olle E. Johansson
218 ; ; User inherits everything from template