* key up an idle P25 voice channel holding an SNDCP data permit so subscribers waiting for outbound frame sync can transmit their packet;
A subscriber granted an SNDCP data channel listens for outbound frame sync
before it sends its packet. A non-authoritative voice channel that only
holds the data permit stays unkeyed, so some subscribers (EFJ) never
transmit and the grant expires.
While a data permit is held and the channel is otherwise idle (no RF or
network traffic and no frame already queued), the voice channel now fills
the air with TDUs, checked every 15 ms. A TDU carries frame sync and
all-idle status symbols, advertising the inbound channel as free. The
normal control channel unpermit ends it; a 30 second permit hold (twice
the CC grant timer) stops it if that unpermit is lost.
* end the SNDCP data channel keep-alive once the SU transmits on the grant and never fill the native-modem PDU pacing guard;
The keep-alive only checked the frame queue, so while an outbound PDU was
held by the native-modem pacing guard it kept writing TDUs ahead of it, and
it kept the channel keyed after the SU had already started its exchange.
With the keep-alive running this way an 8-block outbound PDU drew repeated
ACK RETRY responses until it was declared undeliverable.
The keep-alive now stops for the rest of the grant as soon as the RF state
leaves listening (the SU no longer needs outbound frame sync), and it skips
any tick while a PDU is held or the pacing guard is still running. A new
data grant starts it again.
* forward the data block of an SU response packet to the network along with its header, so an ACK RETRY (selective retry) reaches the FNE as the complete transaction its blocks-to-follow announces;
The network PDU frame carries the response header's blocks to follow, but
only the header block was written. The FNE then waited for a block that
never arrived and rejected every later PDU from the voice channel as a
conflicting duplicate header, dropping SU uplinks (including KMM Hello)
and SU link ACKs. The block extraction lives in
Data::getResponseDataBlock().
* Renamed functions to not use the term 'clock'
* Removed m_permittedData and restored the original SNDCP permit check, but keep state
* add P25 telephone interconnect TSBKs (TELE_INT_VCH_GRANT, TELE_INT_PSTN_REQ, TELE_INT_ANS) and decode them in TSBKFactory;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* add telephoneInterconnect control channel option; forward P25 telephone interconnect PSTN requests, answer responses and interconnect cancels to the network, and only transmit network answer requests for units registered to the site;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* add contributor copyright for P25 telephone interconnect control channel changes;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* add telephone interconnect gateway peer flag (peer list, REST API, peered); route P25 telephone interconnect voice and signalling only between gateway peers and the peer the unit is registered to, and validate interconnect calls against the RID ACL instead of talkgroup rules;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* route gateway telephone interconnect traffic to the voice channel peers of the site the unit is registered to;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* add P25 telephone interconnect channel grants; grant interconnect calls on network grant demand, hold the grant for the whole call (message trunking) with grant demand keepalives, release it on the terminating TDULC or a unit cancel, and deny on network grant denial;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* handle P25 telephone interconnect calls on voice channels; decode the TEL_INT_VCH_USER address as the call dstId and encode dstId as the address, correct the TEL_INT_VCH_USER LC and TDULC encoders, hold telephone interconnect permits through TG hang, and attribute talkgroup-less HDUs to the permitted unit;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* add the explicit channel form of the P25 telephone interconnect channel grant (MBT_OSP_TELE_INT_VCH_GRANT, AMBT); grant telephone interconnect calls on explicit channel sites with the AMBT grant instead of refusing them;
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>