FreeSwitch, make use of the mncc_ip_address variable

This commit is contained in:
Monocots 2019-08-10 07:11:27 +00:00
parent 32256fb66f
commit b179f58489
5 changed files with 21 additions and 6 deletions

View file

@ -92,6 +92,7 @@ class rhizo_base::freeswitch::common {
$voip_proxy = $rhizo_base::voip_proxy
$sip_central_ip_address = $rhizo_base::sip_central_ip_address
$reg_provider = $rhizo_base::reg_provider
$mncc_ip_address = $rhizo_base::mncc_ip_address
package {
['freeswitch', 'freeswitch-lang-en',
@ -149,6 +150,10 @@ class rhizo_base::freeswitch::common {
File['/etc/freeswitch/sip_profiles/external'] ],
}
file { '/etc/freeswitch/sip_profiles/internal.xml':
content => template('rhizo_base/internal.xml.erb'),
}
file {'/etc/freeswitch/sip_profiles/outgoing':
ensure => directory,
}
@ -160,6 +165,11 @@ class rhizo_base::freeswitch::common {
File['/etc/freeswitch/sip_profiles/outgoing'] ],
}
file { '/etc/freeswitch/autoload_configs/acl.conf.xml':
content => template('rhizo_base/acl.conf.xml.erb'),
require => Package['freeswitch'],
}
file { '/etc/freeswitch/autoload_configs/cdr_pg_csv.conf.xml':
content => template('rhizo_base/cdr_pg_csv.conf.xml.erb'),
require => Package['freeswitch'],

View file

@ -252,6 +252,11 @@ schedule { 'repo':
purge => false,
}
file { '/home/rhizomatica/bin/monitor_freeswitch.sh':
ensure => present,
content => template('rhizo_base/monitor_freeswitch.sh.erb'),
}
file { '/home/rhizomatica/bin/vars.sh':
ensure => present,
content => template('rhizo_base/vars.sh.erb'),