Add dids to config and vars

This commit is contained in:
Keith Whyte 2020-05-20 02:55:58 +02:00
parent 6c834a2c01
commit ec6278278b
3 changed files with 6 additions and 0 deletions

View file

@ -70,6 +70,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')
$dids = hiera('rhizo::dids', '')
$lcls = hiera('rhizo::lcls', '0')
$jb_in = hiera('rhizo::jb_in', '')

View file

@ -80,6 +80,7 @@ voip_cli = "<%= @voip_cli %>"
unlimit_chans_max = 5
voip_chans_max = <%= @voip_chans_max %>
voip_mod = <%= @voip_mod %>
dids = [<% @dids.each do |did| -%>"<%= did -%>", <% end -%>]
# Subscription SMS notification
notice_msg = '<%= @notice_msg %>'

View file

@ -8,6 +8,10 @@ function logc() {
SITE=<%= @site_name %>
<% @dids.each_with_index do |did, index| -%>
DID[<%= index %>]=<%= did %>
<% end -%>
#BTSs IP addresses (for amps etc)
declare -a BTS
declare -a BTS_MASTER