An empty server list means its download failed; refusing every 4-5 digit source server on it cut off the whole mesh. A loaded list still refuses unknown servers.
The published checksum was written to disk before the lists were downloaded, so a list whose download failed no longer matched it and was refused at load, leaving it empty without a .bak. The checksum file on disk now describes the lists on disk; corrupt lists are still refused. The empty-tables warning also counts the fixed D-APRS and SC entries as empty.
Without cp_reconnect, adbapi keeps reusing connections closed by a MariaDB restart, so self-service send_opts failed with 2006 every 10 s until adn-server was restarted.
The Docker build received only the branch name, so the layer cache served the clone of an earlier build and :develop kept old code. docker.yml now resolves the commit (push sha, branch head or release tag) and passes it as a build argument, which the ADN-Install Dockerfile checks out.
Alias lists, checksums, the security server's key and passwords, and
the panel report all send adn-server/<version>, read from pyproject.toml
(set by each release).
- A silent stream is not resumed on its terminator: it stays silent, so
no END RX for a start the monitor never saw and no START/END TX pair on
every target just to carry one terminator (test from the review).
- One _emit_group_voice_rx_start() for the VHEAD and the resume paths, so
the peer id is resolved the same way in both.
- _obp_grp already implies source_is_obp; shorter comments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hi9GtvT6gMy8uqjNwYrW84
actions/checkout@v5, github-script@v8, docker/setup-qemu-action@v4, setup-buildx-action@v4, login-action@v4, build-push-action@v7: the first majors on Node 24 (Node 20 is deprecated on the runners). The inputs used are unchanged.
push to develop -> :develop + :develop-<sha>; release -> :X.Y.Z + :latest (job in release.yml); manual run for any branch or vX.Y.Z tag. Built from the public Docker files in ce5rpy/ADN-Install. Secrets (organization): DOCKERHUB_USERNAME, DOCKERHUB_TOKEN.
Send Accept-Encoding: gzip and decompress before the blake2b check, so
the 44MB subscriber list travels as ~6.6MB and the file on disk stays
plain JSON. In age mode, send If-Modified-Since and touch the file on a
304.
A TX onto a TG with an active QSO is activated silently: the peer gets the
downlink and its uplink is not forwarded. That decision was taken on the
first frame and held to the terminator. A reply keyed a fraction of a
second after the other station's last frame (still inside STREAM_TO on
some leg) was therefore muted for its whole length: nobody heard it, the
sender saw a normal transmission and found the other station talking when
it released PTT.
On every frame of a silent stream, check again whether the TG is still
held (tg_has_active_conversation, plus the other caller's leg on the same
slot, which RX_STREAM_ID no longer points to). When it is free, clear the
suppression, report the call START and open it on every target like a
late entry (LC, TX state), so it is forwarded from that frame on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hi9GtwUEB6mDD5pfhaJoKB
With SUBSCRIBERS_FILE empty, as in the example, the gateway sends the RPTC
with no callsign and a MASTER with ALLOW_UNREG_ID: false refuses every
terminal with MSTNAK. The example now points SUBSCRIBERS_FILE at
subscriber_ids.json, the docs say it is required in that case (local and
peer IDs are not resolved), the gateway warns at startup when the file is
missing, and the refusal log says the ID has no callsign in it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hi9GtwTdD7JhnkuDpZmGw8
Without LOG_HANDLERS the logger defaults to console-timed, so the
example's LOG_FILE was never used and the gateway logged to the journal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
- ENDPOINT must be https:// (http only for localhost); a 3xx is a
failure and is never followed, so the bearer token cannot travel in
cleartext or reach another host.
- The loop follows REPORT_INTERVAL after a config reload (the
LoopingCall's interval is updated on each tick).
- adn-server.example.yaml: the section, commented out, with
placeholders.
- Without the integrated proxy, hbp_ports skips MASTERs bound to
loopback (internal, e.g. a local gateway's master).
- Tests: reload (new token and interval, removing the section stops the
reports), https rule, redirect not followed, loopback masters, peers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
Optional section ADN_PANEL in adn-server.yaml, added by hand by the
sysop with the token generated for the server in the ADN panel; it is
not part of the config template. Without ENDPOINT and TOKEN nothing is
sent.
Every REPORT_INTERVAL (default 300 s, minimum 60; first one a minute
after start) the server POSTs to <ENDPOINT>/ingest/server-report:
version, server ID, uptime, the HBP port hotspots connect to, the ODTP
port (ODTP_PORT, since the gateway is its own service), the OBP proxy
port, connected peers, OpenBridge links with their keepalive state and
the plugins loaded. No IP addresses, passphrases or user IDs.
- The payload is built on the reactor from the dashboard state; the
POST runs in a thread with a 10 s timeout, so a slow or unreachable
panel never delays traffic.
- A failure is logged once (401/403 hint at the token) and again when
it recovers; the token is never logged.
- Settings are read on every tick and ADN_PANEL follows config reloads,
so a new token or removing the section applies without a restart.
- Config validation for the section; docs in en/es (monitoring guide).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
glibc gives every thread its own malloc arena; reloads spread over the
reactor pool left each arena holding the fragmented peak of one reload,
so the RSS climbed with every list change. A tick that finds a reload
still running is skipped (the superseded-generation logic is gone). The
thread starts with the reactor and stops before shutdown.
Closes#167
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
Each terminal logs in to the MASTER as one HBP peer with OPTIONS TERMINAL=1,
relaying the MASTER's salt as its challenge. Voice, embedded data, text
messages and locations go both ways; a call without a terminator ends 1 s
after its last frame, on its own timer. A terminal always talks as its
session's DMR ID (a 9-digit login as login // 100). Sessions are capped in
total, per IP and per minute; only a login that opens a MASTER link counts.
Tests run against a real HBPProtocol MASTER.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
A peer whose OPTIONS carry TERMINAL=1 (an app behind the ODTP gateway) gets
only the statics in its own OPTIONS, never the MASTER's TS1/TS2_STATIC. A
radio behind a hotspot mutes the MASTER's statics with its RX group list; an
app has none and plays everything it receives, so a user on TG 666 heard the
TG 214 beacon of a MASTER with TS2_STATIC 666,214.
cached_peer_static_tgs is the one place the downlink gate, the downlink index
and the reports read a peer's statics from, so the flag is checked there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
Data header, rate 1/2 and rate 3/4 blocks (trellis with hard-decision
Viterbi), CSBK preambles, the packet CRCs (CRC-16 header/CSBK, CRC-32,
CRC-9), IPv4/UDP with MOTOTRBO TMS and "DMR standard" SMS, and Hytera
HDAP/TMP, next to bptc, crc and rs129. bptc gains decode_19696 (the 96
data bits, beside encode_19696); the slot types come from const. DMRD
framing is one dmrd_frame() in frames.py, shared with DmrdStream.
Tested against on-air Hytera captures (location report, registration,
SACK) as well as round trips.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
parse_dmrd_header and DmrdHeader move from the plugin package to
domain/dmrd.py so other layers can use them; plugins/domain/send.py
re-exports them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
The Talker Alias path reassembled the embedded LC of bursts B-E inline.
collect_embedded_lc() (domain/dmr/embedded_lc.py) does it for any LC,
with the same fragments, decode and errors, and the Talker Alias uses it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
pkt_gen built the header, the A-F bursts and the terminator in one
generator. DmrdStream (domain/dmr/frames.py) builds them one at a time
and pkt_gen now uses it; its output is byte for byte the same
(test_pkt_gen_golden pins the old digest). voice_bits() takes the 216
voice bits of a burst, as the recorder did inline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
Moves the RPTL/RPTK/RPTC/RPTO exchange and the RPTPING keepalive out of
the PEER mode of HBPProtocol into application/hbp_peer_login.py, with
the same states, stats and log lines. The MASTER's salt goes to an
on_salt hook, so a caller can relay it and send_key() later. The PEER
mode builds its PeerLogin with the system, and again on a hot reload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
The application layer needs them for the PEER login; hbp_constants
re-exports them, as it already does with the frame types.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jYm3g9skKGroRdrfwJsCG
On the inject-only proxy MASTER (or any MASTER with MAX_PEERS > 1) the hourly
voice ident never played. Now VOICE_IDENT in the YAML allows it and each
hotspot that asks with VOICE=1 (or IDENT=1) in its OPTIONS gets its own ident
on TS2, sent to that hotspot only, with its callsign, LANG and VOICETG/IDENTTG,
once it has been quiet for 30 s. On a shared MASTER a hotspot's OPTIONS no
longer change VOICE_IDENT or the ident TG for the others. An empty
OVERRIDE_IDENT_TG now means all-call instead of failing the ident.