Add Fallback Outgoing SIP Profile

This commit is contained in:
Keith Whyte 2021-11-12 04:30:21 +01:00
parent 765196882d
commit e73425ed2e
2 changed files with 17 additions and 1 deletions

View file

@ -189,7 +189,7 @@ class rhizo_base::freeswitch::common {
content => template('rhizo_base/rhizoextrtp.xml.erb'),
require =>
[ Package['freeswitch'],
File['/etc/freeswitch/sip_profiles/outgoing'] ],
File['/etc/freeswitch/sip_profiles/extrtp'] ],
}
file {'/etc/freeswitch/sip_profiles/external':
@ -218,6 +218,13 @@ class rhizo_base::freeswitch::common {
File['/etc/freeswitch/sip_profiles/outgoing'] ],
}
file { '/etc/freeswitch/sip_profiles/outgoing/rhizoalt.xml':
content => template('rhizo_base/rhizoalt.xml.erb'),
require =>
[ Package['freeswitch'],
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'],

View file

@ -0,0 +1,9 @@
<include>
<gateway name="rhizoalt">
<param name="username" value="rhizomatica"/>
<param name="from-user" value="<%= @voip_fromuser %>"/>
<param name="password" value="<%= @voip_password %>"/>
<param name="proxy" value="<%= @sip_central_ip_address[1] %>"/>
<param name="register" value="false"/>
</gateway>
</include>