Add gateway to Ext RTP profile

This commit is contained in:
Keith Whyte 2020-05-22 05:46:41 +02:00
parent 85b3ab856c
commit e1581b5a88
2 changed files with 21 additions and 0 deletions

View file

@ -172,6 +172,17 @@ class rhizo_base::freeswitch::common {
require => Package['freeswitch'],
}
file {'/etc/freeswitch/sip_profiles/extrtp':
ensure => directory,
}
file { '/etc/freeswitch/sip_profiles/extrtp/rhizoextrtp.xml':
content => template('rhizo_base/rhizoextrtp.xml.erb'),
require =>
[ Package['freeswitch'],
File['/etc/freeswitch/sip_profiles/outgoing'] ],
}
file {'/etc/freeswitch/sip_profiles/external':
ensure => directory,
}

View file

@ -0,0 +1,10 @@
<include>
<gateway name="rhizoextrtp">
<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[0] %>"/>
<param name="register" value="false"/>
<param name="caller-id-in-from" value="true"/>
</gateway>
</include>