Add option to specify codecs on "outgoing" profile

This commit is contained in:
Monocots 2022-11-18 23:17:46 +00:00
parent 020284bf96
commit f709539b0b
3 changed files with 15 additions and 0 deletions

View file

@ -118,6 +118,7 @@ class rhizo_base::freeswitch::common {
$sip_central_ip_address = $rhizo_base::sip_central_ip_address
$reg_provider = $rhizo_base::reg_provider
$mncc_ip_address = $rhizo_base::mncc_ip_address
$upstream_codec = $rhizo_base::upstream_codec
$fs_version = "${lsbdistcodename}" ? {
'buster' => '1.8.6',
@ -185,6 +186,14 @@ class rhizo_base::freeswitch::common {
ensure => directory,
}
file { '/etc/freeswitch/sip_profiles/outgoing.xml':
content => template('rhizo_base/outgoing.xml.erb'),
require =>
[ Package[ 'freeswitch' ],
File[ '/etc/freeswitch/' ] ],
}
file { '/etc/freeswitch/sip_profiles/extrtp/rhizoextrtp.xml':
content => template('rhizo_base/rhizoextrtp.xml.erb'),
require =>