Add gateway to Ext RTP profile
This commit is contained in:
parent
85b3ab856c
commit
e1581b5a88
2 changed files with 21 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
10
modules/rhizo_base/templates/rhizoextrtp.xml.erb
Normal file
10
modules/rhizo_base/templates/rhizoextrtp.xml.erb
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue