Defined Type: asterisk::registry::sip
- Defined in:
- manifests/registry/sip.pp
Summary
Configure a SIP registryOverview
This makes it possible to register to a SIP peer for authenticated connections.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'manifests/registry/sip.pp', line 25
define asterisk::registry::sip (
Stdlib::Host $server,
String[1] $user,
$ensure = present,
Optional[Sensitive[String[1]]] $password = undef,
Optional[String[1]] $authuser = undef,
Optional[Integer] $port = undef,
Optional[String[1]] $extension = undef
) {
if $password =~ Undef and $authuser !~ Undef {
fail('authuser was specified but no value was given for password. You need both to authenticate.')
}
asterisk::dotd::file { "registry__sip_${name}.conf":
ensure => $ensure,
dotd_dir => 'sip.registry.d',
content => template('asterisk/registry/sip.erb'),
filename => "${name}.conf",
}
}
|