Defined Type: asterisk::voicemail

Defined in:
manifests/voicemail.pp

Summary

Configure a voicemail

Overview

Examples:

voicemail with email address

asterisk::voicemail { 'taro':
  context  => 'support2',
  password => Sensitive.new('557722981749'),
  email    => 'taro.suupaa@support.com',
}

Parameters:

  • context (String[1])

    Name of the context in which the voicemail is assigned.

  • password (Sensitive[String[1]])

    Authentication password set for accessing the voicemail. This is usually a series of numbers so that phones can dial the password, but it can be a textual password as well.

  • ensure (Any) (defaults to: present)

    Set to absent to remove the voicemail.

  • user_name (Optional[String[1]]) (defaults to: undef)

    Name assigned to the voicemail, usually the name of the person using it.

  • email (Optional[String[1]]) (defaults to: undef)

    Email address to which voicemail message sounds will be sent.

  • pager_email (Optional[String[1]]) (defaults to: undef)

    Email address to which a page will be sent upon receiving a voicemail.

  • options (Hash[String,String]) (defaults to: {})

    Hash containing options that are set for the voicemail. For example, a specific timezone can be set on individual voicemails with the 'tz' option. Options are set in the file as key = value.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'manifests/voicemail.pp', line 29

define asterisk::voicemail (
  String[1]            $context,
  Sensitive[String[1]] $password,
  $ensure                           = present,
  Optional[String[1]]  $user_name   = undef,
  Optional[String[1]]  $email       = undef,
  Optional[String[1]]  $pager_email = undef,
  Hash[String,String]  $options     = {}
) {

  asterisk::dotd::file{ "${context}-${name}.conf":
    ensure   => $ensure,
    content  => template('asterisk/snippet/voicemail.erb'),
    dotd_dir => 'voicemail.d',
  }

}