From e1581b5a88e8c3da538d923f12d81cc4564af72a Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Fri, 22 May 2020 05:46:41 +0200 Subject: [PATCH] Add gateway to Ext RTP profile --- modules/rhizo_base/manifests/freeswitch.pp | 11 +++++++++++ modules/rhizo_base/templates/rhizoextrtp.xml.erb | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 modules/rhizo_base/templates/rhizoextrtp.xml.erb diff --git a/modules/rhizo_base/manifests/freeswitch.pp b/modules/rhizo_base/manifests/freeswitch.pp index e34e9de..854f07d 100644 --- a/modules/rhizo_base/manifests/freeswitch.pp +++ b/modules/rhizo_base/manifests/freeswitch.pp @@ -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, } diff --git a/modules/rhizo_base/templates/rhizoextrtp.xml.erb b/modules/rhizo_base/templates/rhizoextrtp.xml.erb new file mode 100644 index 0000000..f5355d1 --- /dev/null +++ b/modules/rhizo_base/templates/rhizoextrtp.xml.erb @@ -0,0 +1,10 @@ + + + + + + + + + +