- DMRHub
- Admin guides
- OpenBridge peers
OpenBridge peers
On this page
OpenBridge links DMRHub to another network server, such as another DMRHub, HBlink or FreeDMR. Each link is a peer. You must be an admin to add a peer.
Turn on OpenBridge
- Go to Admin, then Setup, and open the OpenBridge tab.
- Turn on Accept OpenBridge peers. Set the Port (default 62035, UDP) and, for FreeDMR peers, the Server ID (see Enhanced peers).
- Click Save.
The configuration keys are dmr.openbridge.enabled, dmr.openbridge.bind, dmr.openbridge.port and dmr.openbridge.server-id. Open the UDP port in your firewall.
Add a peer
Go to Admin, then Peers (
<siteurl>/admin/peers). The Peers item shows only when OpenBridge is on.Click Enroll New Peer.
Fill in the form:
Field What to enter Owner The user who owns the peer. The owner can see and change the peer on the Peers page in the main menu. Peer ID The network ID of the link. Both ends of the link use the same ID. IP Address and Port Where the other server listens for OpenBridge. DMRHub sends to this address. To refuse the packets of other addresses, see IP lists. Receive DMR traffic from this peer Turn on to take calls from the peer. Transmit DMR traffic to this peer Turn on to send calls to the peer. Use FreeDMR enhanced OpenBridge with this peer See Enhanced peers. This peer carries Codec2 Turn on when the peer can take calls in Codec2. Off, DMRHub sends the peer AMBE only, and converts Codec2 calls when transcoding is on (see Transcoding). Click Save. DMRHub opens the page of the peer. It shows the password once, the connection details, and the configuration of the other server: FreeDMR for an enhanced peer, else HBlink3 or the settings of any other OpenBridge server. Copy the password now: DMRHub does not show it again. Put it in the configuration of the other server as the passphrase of the link.
An older peer password can have a
%. FreeDMR and HBlink3 read%as the start of a variable, so write each%as%%inPASSPHRASE.
To change a peer later, click its ID on the Peers page.
Rotate the password of a peer
If you lose the password, open the page of the peer and click Rotate password, then Rotate password again in the dialog. The owner of the peer or an admin can do this. DMRHub makes a new password and shows it once. The old password stops working at once on every replica, so the link stays down until you put the new password in the other server.

Add the rules of a peer
A peer carries only the traffic that its rules allow. A new peer has no rules, so it carries nothing, even with Receive and Transmit on.
Open the page of the peer. The Rules card has a Receive group for calls from the peer and a Transmit group for calls to the peer. The top of the card sums up what each direction carries. To add a rule, click Add rule in a group, then:
- Under Calls, pick To to match the destination of a call (the talkgroup of a group call, the radio ID of a private call), or From to match the radio ID of the caller.
- Enter the First ID and, for a range, the Last ID.
- Click Add.
To delete a rule, click Delete on its row, then Delete again. The owner of the peer or an admin can change the rules. They take effect at once, on every replica.

A call passes the rules of a direction when one To rule covers its destination and one From rule covers its caller. When a direction has rules of only one kind, the other kind does not restrict. This follows the TGID_ACL and SUB_ACL of an HBlink3 or FreeDMR OpenBridge system. A transmit rule for talkgroup 3100 sends the peer the calls to talkgroup 3100 and no private calls.
Turn on Private calls in a group to let private calls skip the To rules of that direction. A private call then needs only the From rules. The switch covers private data too, such as SMS. It is off by default. The page does not show it for a direction with only From rules, where it changes nothing.
Rules in the API
A rule has a direction (true for receive, false for transmit), a match ("destination" for To, "source" for From) and a range of IDs from subject_id_min to subject_id_max. With no match, a receive rule matches the destination and a transmit rule the source. The private call switches are ingress_private and egress_private, set with PATCH <siteurl>/api/v1/peers/<peer ID>.
For example, to take the calls to talkgroups 1 to 999999 from peer 3000900, and to send it the calls to talkgroups 3100 and 31665:
curl -c cookies -H 'Content-Type: application/json' \
-d '{"username":"<admin username>","password":"<password>"}' \
<siteurl>/api/v1/auth/login
curl -b cookies -H 'Content-Type: application/json' \
-d '{"direction":true,"match":"destination","subject_id_min":1,"subject_id_max":999999}' \
<siteurl>/api/v1/peers/3000900/rules
for tg in 3100 31665; do
curl -b cookies -H 'Content-Type: application/json' \
-d '{"direction":false,"match":"destination","subject_id_min":'$tg',"subject_id_max":'$tg'}' \
<siteurl>/api/v1/peers/3000900/rules
doneGET <siteurl>/api/v1/peers/<peer ID>/rules lists the rules, and DELETE <siteurl>/api/v1/peers/<peer ID>/rules/<rule ID> deletes one.
Enhanced peers for FreeDMR
Turn on Use FreeDMR enhanced OpenBridge with this peer for a FreeDMR server whose link to this hub has ENHANCED_OBP: True. Only an admin can change it. For an enhanced peer, DMRHub does what FreeDMR's hblink.py does on such a link:
- It sends DMRE version 5 packets in place of the 73-octet DMRD packets. Each packet carries the send time, the source server, the source repeater and the hop count.
- It keeps the source server and the source repeater of a call that came in from another enhanced peer, and adds one to the hop count.
- It drops a call that already crossed 20 links (FreeDMR's
MAX_FBP_HOPS) and asks the sender with a BCSQ to stop that stream. - It sends a BCKA keepalive every 10 seconds. FreeDMR stops sending to a peer that sent no keepalive for 60 seconds.
The source server of a call from a local repeater is the Server ID in the OpenBridge settings, or the network ID of the peer when the server ID is 0. The server ID must be 0, or 4 to 7 digits. FreeDMR checks a 4 or 5-digit server ID against its list of server IDs. Other peers keep getting OpenBridge version 1.
Several replicas
With several replicas, one replica sends all OpenBridge traffic, so that the peers see one source address. That replica holds a lease in Redis. When it stops, another replica takes over at once. When it dies, another replica takes over within 2 seconds. DMRHub drops the traffic in that gap, and does not hold it. A BCSQ from a peer applies on every replica, whichever replica got it.