diff --git a/CHANGELOG.md b/CHANGELOG.md index 545a49b..3480c33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,38 +2,25 @@ ## Unreleased -Parity with Python LXST 0.6.0. Several experimental APIs change. +## 0.4.0 - 2026-11-13 -- Call modes: full and half duplex are signalled with the profile when the - callee rings, can be switched during a call, and squelch transmit in half - duplex. `TelephonyControl::Call` takes a `mode`. -- The callee is established as soon as it answers. The answer retry and its - timeout are removed (`retry_answer`, `answer_retry_interval`, - `answer_timeout`). -- Outgoing calls end unless the callee rings within `connect_timeout` - (5 seconds by default), and the 70 second wait runs from the call request, - path discovery included. -- The line is busy while an outgoing call discovers its path. -- A call to a peer with a known path sends no path request. -- The first announce follows 5 seconds after start; the startup announce burst - is off by default. -- Received audio is decoded by the codec of each frame, and a bad frame is - skipped instead of dropping its packet. -- `Profile::buffer_frames` gives the receive buffer depth of each profile. -- Raw float128 samples use IEEE binary128. -- `opus-rs` moves from 0.1.29 to 0.1.42, which fixes a decoder panic on a - crafted SILK frame. A decoder panic on a peer's packet now rejects the - packet and resets the decoder. -- The Medium voice profile stays wideband SILK at its 8 kbps ceiling, now by - an explicit bandwidth setting; the encoder takes the profile's own sample - rate. (libopus 1.5 picks wideband there and libopus 1.6 narrowband.) -- `lxst-embedded` sessions default to the 60, 70, and 5 second ring, wait, - and connect times; `SessionConfig::times` (`CallTimes`) changes them. -- A caller is established once it has handled CONNECTING, so a lost - ESTABLISHED no longer ends the call at the wait time. Its audio, and media - sent or received, still start only on the callee's ESTABLISHED - (`audio_started`). -- The media vector generator moved to `tools/fixtures/lxst_media_fixtures.py`. +### Added + +- **Call modes**: calls can be full or half duplex, as in LXST 0.6.0, and switch during a call. `TelephonyControl::Call` takes a `mode`; `None` is full duplex. +- **Stamped calls**: call announces and link requests carry stamps when Reticulum's `[stamps]` settings ask for them, and call links use Link MTU discovery. + +### Fixed and improved + +- Calls connect as in LXST 0.6.0: the callee is established as soon as it answers, and a lost setup packet no longer ends a call. Check `audio_started` to know when audio is running. +- An outgoing call ends if the callee doesn't ring within `connect_timeout` (5 seconds by default), and the line is busy while a call looks for its path. +- `lxst-embedded` sessions use LXST 0.6.0's ring, wait, and connect times; change them with `SessionConfig::times`. +- The first announce goes out 5 seconds after start, with no startup burst by default. +- `opus-rs` 0.1.42 fixes a decoder crash on a crafted packet, and a damaged frame is now skipped instead of dropping its whole packet. + +### Build and compatibility + +- rsLXST now uses rsReticulum `~1.5.0`, whose default storage builds a bundled SQLite and needs a C compiler. +- API changes, including the removed answer retry, call modes, and async outgoing link calls, are listed in the [migration guide](api/migrations/next.md). ## 0.3.1 - 2026-11-08 diff --git a/README.md b/README.md index 989d9ac..ff59fef 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![License: LXST license](https://img.shields.io/badge/license-LXST%20license-blue.svg)](LICENSE) [![Rust 1.89+](https://img.shields.io/badge/rust-1.89%2B-orange.svg)](https://www.rust-lang.org) -[![LXST 0.4.5](https://img.shields.io/badge/target-LXST%200.4.5-success.svg)](https://github.com/markqvist/LXST) +[![LXST 0.6.0](https://img.shields.io/badge/target-LXST%200.6.0-success.svg)](https://github.com/markqvist/LXST) [![Status](https://img.shields.io/badge/status-experimental-yellow.svg)](#release-scope) [rsLXMF](https://github.com/ratspeak/rsLXMF) | @@ -21,24 +21,13 @@ rsLXST is a Rust port of [LXST](https://github.com/markqvist/LXST), Mark Qvist's Lightweight Extensible Signal Transport for real-time voice calls and other media streams over Reticulum. It was written from the reference source with -interoperability as the primary focus. Python LXST remains the source-of-truth -implementation; do not treat this repository as one. +interoperability as the primary focus. rsLXST is Ratspeak's voice component. The LXST author licenses this port for use in Ratspeak only, for non-commercial use, with no derivatives or use outside Ratspeak; see [License](#license). The build, test, and API notes below document the code for Ratspeak development. -The current rsLXST is experimental and incomplete. It provides LXST wire codecs, -Reticulum link media packet boundaries, a telephony runtime, and Opus stream -integration for Ratspeak. - -This README describes the 0.3.1 release, `v0.3.1`, declaring version **0.3.1** -and using rsReticulum **1.4.0** (`v1.4.0`); it is the source line Ratspeak -builds from. The earlier `v0.3.0` release uses the **1.3.0** Reticulum -dependency line. Keep the dependency set associated with the source you build; -a matching rsLXST package version alone is not enough. - ## Contents - [Release Scope](#release-scope) @@ -47,23 +36,16 @@ a matching rsLXST package version alone is not enough. - [Crate Layout](#crate-layout) - [Using Telephony](#using-telephony) - [Rust API](api/README.md) -- [Contributing](#contributing) - [License](#license) - [Third-party licenses](#third-party-licenses) ## Release Scope -The implemented application path covers telephony signalling and negotiated -Opus or native Codec2 media over Reticulum Links. It does not provide a -`rnphone-rs` client, a general platform microphone/speaker backend, or complete -parity with the Python reference's audio graph and non-telephony features. - -`lxst-core::Codec2PacketCodec` provides bounded, fixed-profile packet processing -over a `Codec2Backend`. The workspace supplies native 700C, 1600 and 3200 modes, -plus host stream and embedded integration. Caller-owned buffers and complete -packet validation bound the codec work; a backend error requires replacement -of that packet-codec instance. Board audio, timing, memory and transport still -require qualification. Its mode header belongs to LXST, not LXMF audio fields. +The implemented application path covers telephony signalling, full- and +half-duplex call modes, and negotiated Opus or native Codec2 media over +Reticulum Links. It does not provide a +`rnphone-rs` client, a general platform microphone/speaker backend, or LXST's +non-telephony features. ## Build It @@ -83,13 +65,12 @@ mkdir ratspeak-src cd ratspeak-src git clone https://github.com/ratspeak/rsReticulum git clone https://github.com/ratspeak/rsLXST -git -C rsReticulum checkout --detach v1.4.0 -git -C rsLXST checkout --detach v0.3.1 +git -C rsReticulum checkout --detach v1.5.0 +git -C rsLXST checkout --detach v0.4.0 cd rsLXST ``` -The commands below run from that `rsLXST` directory. For the earlier 0.3.0 -release, use `v0.3.0` with its rsReticulum `v1.3.0` sibling instead. +The commands below run from that `rsLXST` directory. ### macOS @@ -161,11 +142,8 @@ cargo clippy --workspace --all-targets --all-features --locked -- -D warnings cargo test --workspace --locked ``` -The test gate covers wire codecs, telephony state, profile metadata, Opus -stream boundaries, malformed-input handling, the local service runtime, Python -LXST wire parity, and Reticulum destination parity. Live headless Telephone -interop is intentionally excluded from ordinary `cargo test` runs because it -starts Python processes and TCP interfaces. Run that suite explicitly with: +The live call tests against Python LXST are not part of ordinary runs. Run +them explicitly with: ```bash cargo test -p lxst-telephony --test python_telephone_live_interop -- --ignored @@ -237,20 +215,6 @@ The compiled [`service` example](crates/lxst-telephony/examples/service.rs) checks construction and types. It does not run a transport or place a call. The lower-level endpoint and runtime types remain available for compatible specialist use, but are experimental SPI. -An initial Reticulum `LINKREQUEST` still follows normal destination routing. -After proof validation, rsLXST binds the call to the exact interface that -established the Link. Signalling, identification, keepalives, media, and close -traffic never reroute through a newly learned path, and packets arriving on a -different interface are rejected before decryption or call accounting. -Interface loss terminates that exact call. - -Control and teardown traffic use an ordered, bounded Link endpoint queue. Final -teardown waits for the ordered close-send attempt to drain or fail terminally -before transport removes the endpoint and temporary Link destination. Realtime media uses exact-interface best-effort -delivery instead: it never enters the lossless control queue, reports drops -under backpressure, and intentionally does not request Reticulum delivery -receipts. - For Opus calls, the host app supplies and receives `RawAudioFrame` values through `StartOpusStream` and `StartOpusReceiveStream`. rsLXST enforces the negotiated LXST profile and reports profile changes, source/sink closure, frame drops, and @@ -286,13 +250,6 @@ VLBW and LBW profiles. Device timing, stack and audio qualification remain required before use on hardware. This backend does not implement Opus voice memo containers. -## Contributing - -If the issue or contribution belongs upstream as well, start there. Python LXST -and Reticulum remain the reference implementations. - -PRs are closed for now until I have time to catch up on everything. - ## License rsLXST is used under the license in [LICENSE](LICENSE), reproduced here: