Add option to specify codecs on "outgoing" profile
This commit is contained in:
parent
020284bf96
commit
f709539b0b
3 changed files with 15 additions and 0 deletions
|
@ -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 =>
|
||||
|
|
|
@ -67,6 +67,7 @@ class rhizo_base {
|
|||
$max_power_red = hiera('rhizo::max_power_red', '24')
|
||||
$mncc_codec = hiera('rhizo::mncc_codec', 'GSM')
|
||||
$inter_codec = hiera('rhizo::inter_codec', 'G729')
|
||||
$upstream_codec = hiera('rhizo::upstream_codec', 'G729')
|
||||
$dids = hiera('rhizo::dids', '')
|
||||
|
||||
$lcls = $osmo_stack ? {
|
||||
|
|
|
@ -33,8 +33,13 @@
|
|||
<param name="dialplan" value="XML"/>
|
||||
<param name="context" value="public"/>
|
||||
<param name="dtmf-duration" value="2000"/>
|
||||
<%if @upstream_codec == "AMR" %>
|
||||
<param name="inbound-codec-prefs" value="AMR,OPUS@8000h@20i,G729,PCMA,PCMU"/>
|
||||
<param name="outbound-codec-prefs" value="AMR,OPUS@8000h@20i,G729,PCMA,PCMU"/>
|
||||
<% else %>
|
||||
<param name="inbound-codec-prefs" value="OPUS@8000h@20i,G729,PCMA,PCMU"/>
|
||||
<param name="outbound-codec-prefs" value="OPUS@8000h@20i,G729,PCMA,PCMU"/>
|
||||
<% end %>
|
||||
<!--<param name="hold-music" value="$${hold_music}"/>-->
|
||||
<param name="rtp-timer-name" value="soft"/>
|
||||
<!--<param name="enable-100rel" value="true"/>-->
|
Loading…
Add table
Add a link
Reference in a new issue