Expand description
Call signaling codecs, authenticated host routes and media packet transforms.
Call lifecycle and session state machines live in wechat-calls, which depends on this crate. NativeClient owns authenticated account state. Embedding hosts retain authorization, operation journals and device policy. Decoding a packet or preparing a request starts no call. Media key lifetime and broader peer interoperability still require separate validation.
Modules§
- app_
frame - Selected call-app task framing. Only the explicitly negotiated crypto0 app session is supported. Host transport authentication and media AEAD are separate. These functions prepare/parse bytes; they do not send or retry an operation.
- app_
session - Generic call-app authentication messages and the negotiated unencrypted app session. Host MMTLS authentication remains required. No socket or credential persistence is performed here; app encryption is distinct from media AEAD.
- audio_
packet - Selected Live96 envelope and ordinary95 Opus-primary framing. Encoding these bytes does not establish negotiated capabilities, room ownership or permission to send. Media transmission requires a separately admitted generation/scope.
- conference
- Voice conference creation and additional invitation codecs. These builders perform no I/O, allocate no task/intent IDs and never retry.
- host_
policy - Inspect the active authentication response before selecting a call host RPC. A selected Ax route must not silently fall back to ordinary host packing. This module selects no keys, prepares no request and performs no transport.
- host_
transport - Call-specific ordinary reply policy and non-sensitive transport diagnostics. A verified host transport may return either owned ordinary key mode. This does not change request selection or authorize Ax/app/media key substitution.
- incoming
- Offline incoming call carriers and conference notification envelopes.
- personal
- Personal-call request codecs. Preparation performs no transport or account I/O.
- relay
- Selected IPv4 personal relay setup: one initial check-in, at most one learned continuation and explicit Ready. CRC/TEA structural checks are not media AEAD. The host owns sockets, current account/key generations, time and randomness.
- signaling
- Experimental offline call-signaling codecs.
- voice_
offer - Local voice advertisements are distinct from returned selected capabilities. A fresh offer advertises only the supported Opus17 bit. The server’s selected codec number, packet format and channel flags require separate admission.