Defined Type: asterisk::registry::iax

Defined in:
manifests/registry/iax.pp

Summary

Configure an IAX2 registry

Overview

This makes it possible to register to an IAX2 peer for authenticated connections.

Parameters:

  • server (Stdlib::Host)

    Hostname or IP address of the server to which Asterisk should register.

  • user (String[1])

    User name used for authenticating with the distant server.

  • password (Sensitive[String[1]])

    Password used for authenticating.

  • ensure (Any) (defaults to: present)

    Set to absent in order to remove the registry.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/registry/iax.pp', line 15

define asterisk::registry::iax (
  Stdlib::Host         $server,
  String[1]            $user,
  Sensitive[String[1]] $password,
  $ensure = present,
) {

  asterisk::dotd::file { "registry__iax_${name}.conf":
    ensure   => $ensure,
    dotd_dir => 'iax.registry.d',
    content  => template('asterisk/registry/iax.erb'),
    filename => "${name}.conf",
  }

}