voicemail.conf.sample 9.4 KB

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