m
 
(Configuration)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
'''Warning!''' Be careful with network bridging to avoid looping on the bridged network side. Please discuss it with BrandMeister Steering Team before configuring.
 
'''Warning!''' Be careful with network bridging to avoid looping on the bridged network side. Please discuss it with BrandMeister Steering Team before configuring.
 
== Configuration ==
 
 
== Registry.lua ==
 
 
If you have customized Registry.lua you need to add following lines:
 
<syntaxhighlight lang="lua">
 
 
local json = require("dkjson")
 
local bridges = json.decode(readFile("Data/bridge.json"))
 
 
  -- Somewhere in handleCallSession(..)
 
  makeBridgedNetworkRouteForGroup(kind, name, number, destination, bridges)
 
 
</syntaxhighlight>
 
 
== bridge.json ==
 
 
<syntaxhighlight lang="javascript">
 
{
 
  // Syntax:
 
  // <Group ID> : { "network" : <Network ID>, "slot" : <Slot Number> }
 
 
  // Bridged groups for CBridge2228
 
  3182    : { "network" : 2228, "slot" : 0 },  // DCI-FU-3182
 
  8952    : { "network" : 2228, "slot" : 0 },  // DCI-iCall
 
  3100    : { "network" : 2228, "slot" : 0 },  // DMRX-3100
 
  3777215 : { "network" : 2228, "slot" : 0 },  // DMRX-Comm1-3777215
 
  3777216 : { "network" : 2228, "slot" : 0 },  // DMRX-Comm1-3777216
 
  8951    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC1-8951
 
  9310    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC310
 
  9311    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC311
 
  9312    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC312
 
  1776    : { "network" : 2228, "slot" : 0 }  // MIT-1776
 
}
 
</syntaxhighlight>
 

Latest revision as of 16:07, 20 December 2021

Network Bridging is a feature of BrandMeister DMR Server that is implemented by LUA scripts to allow forward calls from cBridge, SmartPTT Bridge or other kind of network links to BrandMeister Network via FastForward and back.

Warning! Be careful with network bridging to avoid looping on the bridged network side. Please discuss it with BrandMeister Steering Team before configuring.

Network Bridging is a feature of BrandMeister DMR Server that is implemented by LUA scripts to allow forward calls from cBridge, SmartPTT Bridge or other kind of network links to BrandMeister Network via FastForward and back.

Warning! Be careful with network bridging to avoid looping on the bridged network side. Please discuss it with BrandMeister Steering Team before configuring.

Configuration[edit]

Registry.lua[edit]

If you have customized Registry.lua you need to add following lines: <syntaxhighlight lang="lua">

local json = require("dkjson") local bridges = json.decode(readFile("Data/bridge.json"))

 -- Somewhere in handleCallSession(..)
 makeBridgedNetworkRouteForGroup(kind, name, number, destination, bridges)

</syntaxhighlight>

bridge.json[edit]

<syntaxhighlight lang="javascript"> {

 // Syntax:
 // <Group ID> : { "network" : <Network ID>, "slot" : <Slot Number> }
 // Bridged groups for CBridge2228
 3182    : { "network" : 2228, "slot" : 0 },  // DCI-FU-3182
 8952    : { "network" : 2228, "slot" : 0 },  // DCI-iCall
 3100    : { "network" : 2228, "slot" : 0 },  // DMRX-3100
 3777215 : { "network" : 2228, "slot" : 0 },  // DMRX-Comm1-3777215
 3777216 : { "network" : 2228, "slot" : 0 },  // DMRX-Comm1-3777216
 8951    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC1-8951
 9310    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC310
 9311    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC311
 9312    : { "network" : 2228, "slot" : 0 },  // DMRX-TAC312
 1776    : { "network" : 2228, "slot" : 0 }   // MIT-1776

} </syntaxhighlight>