Defined Type: asterisk::iax
- Defined in:
- manifests/iax.pp
Summary
Configure an IAX2 context and its optionsOverview
A context named after $name
will be created. You can configure
iax2 users, peers or the special context callnumberlimits
that
lets you override limits to call numbers per IP address range.
TODO:
list all options as parameters instead of using textual contents
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'manifests/iax.pp', line 21
define asterisk::iax (
$ensure = present,
$source = undef,
# Only enforcing type for this param since we're using its value
Optional[String] $content = undef
) {
if $content !~ Undef {
$real_content = "[${name}]\n${content}"
}
else {
$real_content = $content
}
asterisk::dotd::file { "iax_${name}.conf":
ensure => $ensure,
dotd_dir => 'iax.d',
source => $source,
content => $real_content,
filename => "${name}.conf",
}
}
|